优化BUG

dev
xiepeng 2024-05-21 17:56:31 +08:00
parent 29929b8882
commit 17370942ee
11 changed files with 53 additions and 12 deletions

View File

@ -60,7 +60,6 @@ public class TrafficSecurityWaybillRegistrationController extends BaseController
varList.forEach(data -> {
data.put("TRANSPORTVEHICLE", data.getString("PLATE_NUMBER"));
});
System.out.println("varList = " + varList);
map.put("varList", varList);
map.put("page", page);
map.put("result", errInfo);

View File

@ -180,7 +180,6 @@ public class InspectAnnuallyController extends BaseController {
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业ID
page.setPd(pd);
List<PageData> varList = inspectAnnuallyService.list(page); //列出年检列表
System.out.println("varList = " + varList);
varList.stream().anyMatch(data -> {
if ("1".equals(data.getString("OPEAR_ISSCRAP")) || "1".equals(data.getString("FREIGHT_ISSCRAP"))) {
data.put("ARCHIVES_TYPE", "2");

View File

@ -221,6 +221,9 @@ public class OperatingVehiclesController extends BaseController {
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //企业ID
page.setPd(pd);
List<PageData> varList = operatingVehiclesService.list(page); //列出Question列表
List<PageData> dataInfo = new ArrayList<>();
map.put("varList", varList);
map.put("page", page);
map.put("result", errInfo);

View File

@ -307,8 +307,7 @@ public class OperationsController extends BaseController {
map.put("list", varList);
map.put("result", errInfo);
return map;
}
if ("2".equals(pd.getString("TRAFFIC_TYPE"))) {
}else if ("2".equals(pd.getString("TRAFFIC_TYPE"))) {
// 货运挂车
List<PageData> freightList = freightTrailerService.trailerList(pd.getString("CORPINFO_ID"));
page.setPd(pd);

View File

@ -196,18 +196,19 @@ public class RiskWarningController extends BaseController {
@ResponseBody
@LogAnno(menuType= "双重预控",menuServer= "风险提示",instructionsOperate = "风险四色图",instructionsType = "下载")
public void goDownload(HttpServletResponse response) throws Exception{
PageData pd = new PageData();
pd = this.getPageData();
PageData pd2 = new PageData();
pd2.put("FOREIGN_KEY", pd.getString("RISKWARNING_ID"));
//pd2.put("TYPE",pd.get("TYPE"));
List<PageData> imgs = imgfilesService.listAll(pd2);//营业执照图片
pd = riskwarningService.findById(pd);
String zipName = pd.getString("NAME")+".zip";
String zipName;
if(!pd.getString("NAME").toString().matches("[a-zA-Z]+")) {
zipName = new String(pd.getString("NAME").getBytes("GBK"),"ISO-8859-1") + ".zip";
}else{
zipName = pd.getString("NAME")+".zip";
}
try {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
ZipOutputStream zos = new ZipOutputStream(bos);

View File

@ -1,5 +1,7 @@
package com.zcloud.controller.system;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.ObjectUtil;
import com.alibaba.fastjson.JSON;
import com.zcloud.controller.base.BaseController;
import com.zcloud.entity.EmployeeData;
@ -17,6 +19,7 @@ import com.zcloud.service.system.*;
import com.zcloud.util.*;
import net.sf.json.JSONArray;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.ObjectUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.apache.shiro.crypto.hash.SimpleHash;
@ -84,6 +87,9 @@ public class UsersController extends BaseController {
@Autowired
private Smb smb;
@Autowired
private UserCorpReviewService userCorpReviewService;
/**
*
*
@ -739,7 +745,7 @@ public class UsersController extends BaseController {
pd = this.getPageData();
// pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
pd = userInfoService.getUserCardId(pd);
if (pd != null) {
if (pd != null && !StringUtils.isEmpty(pd.getString("ENTRY_DATE"))) {
map.put("pd", pd);
}
map.put("result", errInfo); //返回结果
@ -2532,7 +2538,7 @@ public class UsersController extends BaseController {
}
}
}
c.put("ALLOW_QUALIFICATION", ALLOW_QUALIFICATION.length() < 1 ? "" : ALLOW_QUALIFICATION.substring(0, ALLOW_QUALIFICATION.length()-1));
c.put("ALLOW_QUALIFICATION", (ALLOW_QUALIFICATION.length() < 1 ? "" : ALLOW_QUALIFICATION.substring(0, ALLOW_QUALIFICATION.length()-1)));
}
if (Tools.notEmpty(pd.getString("CORPINFO_ID"))) {
PageData dept = new PageData();
@ -2546,9 +2552,14 @@ public class UsersController extends BaseController {
map.put("period", shiftDutyPeriod);
map.put("periodStr", shiftDutyPeriod.getString("DURATION") + ',' + shiftDutyPeriod.getString("WORKSTATUS") + ',' + shiftDutyPeriod.getString("WORKPERIOD"));
}
PageData data = new PageData();
data.put("USER_ID", pd.getString("USER_ID"));
data.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
PageData userReviewInfo = userCorpReviewService.findByUserId(data);
map.put("pd", pd);
map.put("userCerList", userCerList);
map.put("certificateList", certificateList);
map.put("statusInfo", userReviewInfo);
map.put("result", errInfo);
return map;
}
@ -2999,6 +3010,16 @@ public class UsersController extends BaseController {
qualificationCertificateCategory.put("ALLOW_QUALIFICATION", QUALIFICATION_CERTIFICATE_CATEGORY[i]);
userCertificateAppendixService.save(qualificationCertificateCategory);
}
PageData data = new PageData();
data.put("USER_ID", pd.getString("USER_ID"));
data.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
List<PageData> userCorpList = userCorpService.listAll(data);
if(!CollectionUtil.isEmpty(userCorpList)) {
if(StringUtils.equals(userCorpList.get(0).getString("APPLY_STATUS"), "-1")) {
userCorpList.get(0).put("APPLY_STATUS", "0");
}
}
userCorpService.edit(userCorpList.get(0));
map.put("result", errInfo);
return map;
}

View File

@ -54,5 +54,7 @@ public interface UserCorpReviewMapper {
* @throws Exception
*/
void deleteAll(String[] ArrayDATA_IDS);
PageData findByUserId(PageData data);
}

View File

@ -54,5 +54,7 @@ public interface UserCorpReviewService {
* @throws Exception
*/
public void deleteAll(String[] ArrayDATA_IDS)throws Exception;
PageData findByUserId(PageData data);
}

View File

@ -81,5 +81,9 @@ public class UserCorpReviewServiceImpl implements UserCorpReviewService {
userCorpReviewMapper.deleteAll(ArrayDATA_IDS);
}
@Override
public PageData findByUserId(PageData data) {
return userCorpReviewMapper.findByUserId(data);
}
}

View File

@ -134,7 +134,7 @@ public class UserCorpServiceImpl implements UserCorpService {
review.put("USER_CORP_ID", pd.getString("USER_CORP_ID"));
review.put("USER_ID", pd.getString("USER_ID"));
review.put("REVIEW_RESULT", pd.getString("REVIEW_RESULT"));
review.put("REVIEW_COMMENTS", pd.getString("REVIEW_COMMENTS"));
review.put("REVIEW_COMMENTS", pd.getString("APPLY_CONTENT"));
userCorpReviewService.save(review);
if ("2".equals(pd.getString("APPLY_TYPE"))) { //入职确认
setPractitionerConfirmEntry(pd);

View File

@ -146,4 +146,15 @@
#{item}
</foreach>
</delete>
<select id="findByUserId" resultType="com.zcloud.entity.PageData">
SELECT
f.*,
suc.APPLY_TYPE
FROM
<include refid="tableName"/> f
LEFT JOIN SYS_USER_CORP suc on suc.USER_ID = f.USER_ID
WHERE f.USER_ID = #{USER_ID} AND f.ISDELETE = '0'
AND suc.ISDELETE = '0' AND suc.CORPINFO_ID = #{CORPINFO_ID}
</select>
</mapper>