|
|
|
@ -3,6 +3,7 @@ package com.dxhy.extend.controller; |
|
|
|
|
import com.dxhy.common.aspect.SysLog; |
|
|
|
|
import com.dxhy.common.constant.CommonConstants; |
|
|
|
|
import com.dxhy.common.controller.AbstractController; |
|
|
|
|
import com.dxhy.common.util.StringHelper; |
|
|
|
|
import com.dxhy.common.util.UserInfoUtil; |
|
|
|
|
import com.dxhy.common.utils.DateUtils; |
|
|
|
|
import com.dxhy.common.utils.R; |
|
|
|
@ -115,6 +116,25 @@ public class ExtFpzhcxController extends AbstractController { |
|
|
|
|
} |
|
|
|
|
pramsMap.put("gfsh", gfshList); |
|
|
|
|
|
|
|
|
|
boolean flag = checkList(gfshList); |
|
|
|
|
|
|
|
|
|
if (flag){ |
|
|
|
|
pramsMap.put("sign","88"); |
|
|
|
|
}else { |
|
|
|
|
pramsMap.put("sign","99"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String companyCode = (String) pramsMap.get("companyCode"); |
|
|
|
|
if (org.apache.commons.lang3.StringUtils.isNotBlank(companyCode) && "99".equals(companyCode)){ |
|
|
|
|
pramsMap.put("companyCodes",getUserInfo().getCompanyCodes()); |
|
|
|
|
log.info("组织机构====>{}",pramsMap.get("companyCodes")); |
|
|
|
|
} |
|
|
|
|
if (StringUtils.isNotBlank(companyCode)){ |
|
|
|
|
pramsMap.put("companyCode",companyCode); |
|
|
|
|
}else { |
|
|
|
|
return ResponseEntity.ok(R.error("所属组织不能为空")); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (pramsMap.get("kpksrq") != null && !"".equals(pramsMap.get("kpksrq"))) { |
|
|
|
|
pramsMap.put("kpksrq", DateUtils.getMorning(DateUtils.strToDate(pramsMap.get("kpksrq").toString()))); |
|
|
|
|
} |
|
|
|
@ -199,6 +219,25 @@ public class ExtFpzhcxController extends AbstractController { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean checkList(List<String> list) { |
|
|
|
|
boolean flag =false; |
|
|
|
|
if (list == null || list.isEmpty()){ |
|
|
|
|
flag = true; |
|
|
|
|
}else { |
|
|
|
|
String s = list.toString().replace("[","").replace("]",""); |
|
|
|
|
if (StringHelper.isBlank(s)){ |
|
|
|
|
flag = true; |
|
|
|
|
} |
|
|
|
|
if (StringHelper.isNotBlank(s) && s.contains(",")){ |
|
|
|
|
String replace = s.replace(",", ""); |
|
|
|
|
if (StringHelper.isBlank(replace)){ |
|
|
|
|
flag = true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return flag; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 报表异常发票查询 |
|
|
|
|
* |
|
|
|
|