|
@@ -4,12 +4,15 @@ import java.util.LinkedHashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
+import org.apache.poi.util.StringUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.util.StringUtils;
|
|
|
|
|
|
import com.fuzamei.dao.CapitalTransferDao;
|
|
|
import com.fuzamei.entity.CapitalTransfer;
|
|
|
import com.fuzamei.entity.CapitalTransferCheck;
|
|
|
+import com.fuzamei.entity.User;
|
|
|
import com.fuzamei.utils.PageDTO;
|
|
|
|
|
|
@Service
|
|
@@ -29,7 +32,9 @@ public class CapitalTransferService {
|
|
|
String status_name="";//状态名称
|
|
|
long startTime = 0; // 开始时间默认0
|
|
|
long endTime = Long.MAX_VALUE; // 结束时间默认Long最大值
|
|
|
-
|
|
|
+
|
|
|
+ StringUtils.isEmpty(map);
|
|
|
+
|
|
|
if (!"".equals(map.get("page")) && map.get("page") != null) { // 等于空就直接取第一页
|
|
|
try {
|
|
|
page = Integer.parseInt((String) map.get("page"));
|
|
@@ -73,6 +78,7 @@ public class CapitalTransferService {
|
|
|
mapToDao.put("startTime", startTime);
|
|
|
mapToDao.put("endTime", Long.MAX_VALUE);
|
|
|
}
|
|
|
+
|
|
|
mapToDao.put("rowNum", ROW_NUM); // 默认每页显示数据是10条,可根据需求修改分页数量
|
|
|
int countPage=capitalTransferDao.selectCapitalTransferPage();//资金划转表 总得信息数量页数
|
|
|
List<CapitalTransfer> CapitalTransferList=capitalTransferDao.selectCapitalTransferTable(mapToDao);
|
|
@@ -84,19 +90,25 @@ public class CapitalTransferService {
|
|
|
//资金划转 点击查看 详情
|
|
|
public Map<String, Object> selectChaKanZiJinHuaZhuan(Map<String, Object> map){
|
|
|
int fund_id=0;
|
|
|
+ //int user_id=0;
|
|
|
if (!"".equals(map.get("fund_id")) && map.get("fund_id") != null) {
|
|
|
fund_id = Integer.parseInt((String)map.get("fund_id"));
|
|
|
}
|
|
|
+ /*if (!"".equals(map.get("user_id")) && map.get("user_id") != null) {
|
|
|
+ user_id = Integer.parseInt((String)map.get("user_id"));
|
|
|
+ }*/
|
|
|
|
|
|
|
|
|
Map<String, Object> mapToDao = new LinkedHashMap<String, Object>();
|
|
|
mapToDao.put("fund_id", fund_id);//附件名称 暂时没写
|
|
|
-
|
|
|
+ //mapToDao.put("user_id", user_id);
|
|
|
List<CapitalTransfer> list=capitalTransferDao.selectChaKanZiJinHuaZhuan(mapToDao);
|
|
|
List<CapitalTransferCheck> lis= capitalTransferDao.selectCapitalTransferRecord(mapToDao);
|
|
|
+ //List<User> user=capitalTransferDao.selectByPersonName(mapToDao);
|
|
|
Map<String, Object> map1=new LinkedHashMap<String, Object>();
|
|
|
- map1.put("CapitalTransfer", list);
|
|
|
+ map1.put("CapitalTransfer", list);//管理人取不到值 稍做修改 persont_name
|
|
|
map1.put("CapitalTransferCheck", lis);
|
|
|
+ // map1.put("user", user);
|
|
|
return map1;
|
|
|
}
|
|
|
|