Commit 3ca80fe1 by 墨竹

feat:审核展示修改

parent cd895823
...@@ -2,6 +2,8 @@ package com.gic.haoban.manage.web.controller; ...@@ -2,6 +2,8 @@ package com.gic.haoban.manage.web.controller;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.gic.api.base.commons.Page; import com.gic.api.base.commons.Page;
import com.gic.clerk.api.dto.ClerkDTO;
import com.gic.clerk.api.service.ClerkService;
import com.gic.enterprise.api.dto.StoreDTO; import com.gic.enterprise.api.dto.StoreDTO;
import com.gic.enterprise.api.service.StoreService; import com.gic.enterprise.api.service.StoreService;
import com.gic.haoban.base.api.common.BasePageInfo; import com.gic.haoban.base.api.common.BasePageInfo;
...@@ -42,6 +44,8 @@ public class AuditController extends WebBaseController { ...@@ -42,6 +44,8 @@ public class AuditController extends WebBaseController {
private StaffApiService staffApiService; private StaffApiService staffApiService;
@Autowired @Autowired
private StoreService storeService; private StoreService storeService;
@Autowired
private ClerkService clerkService;
//设置保存 //设置保存
@HttpLimit @HttpLimit
...@@ -130,7 +134,14 @@ public class AuditController extends WebBaseController { ...@@ -130,7 +134,14 @@ public class AuditController extends WebBaseController {
AuditStaffDTO oldAuditStaffDTO = JSONObject.parseObject(oldValue, AuditStaffDTO.class); AuditStaffDTO oldAuditStaffDTO = JSONObject.parseObject(oldValue, AuditStaffDTO.class);
String staffName = oldAuditStaffDTO.getStaffName(); String staffName = oldAuditStaffDTO.getStaffName();
String clerkCode = oldAuditStaffDTO.getClerkCode(); String clerkCode = oldAuditStaffDTO.getClerkCode();
ClerkDTO clerkDTO = clerkService.getClerkByClerkId(oldAuditStaffDTO.getClerkId());
String detail = staffName + "申请关联导购code:" + clerkCode; String detail = staffName + "申请关联导购code:" + clerkCode;
if (clerkDTO != null) {
Integer clerkType = clerkDTO.getClerkType();
if (clerkType == 2) {
detail = staffName + "申请关联区经code:" + clerkCode;
}
}
dto.setDetail(detail); dto.setDetail(detail);
} else if (dto.getAuditType() != null && dto.getAuditType() == 5) { } else if (dto.getAuditType() != null && dto.getAuditType() == 5) {
//门店导购解绑 //门店导购解绑
......
...@@ -59,12 +59,12 @@ public class AuditController extends WebBaseController { ...@@ -59,12 +59,12 @@ public class AuditController extends WebBaseController {
//关联记录列表 //关联记录列表
@RequestMapping("clerk-apply-list") @RequestMapping("clerk-apply-list")
public HaobanResponse staffStoreList(String staffId, Integer auditType, Integer auditStatus, String wxEnterpriseId, BasePageInfo pageInfo) { public HaobanResponse staffStoreList(String staffId, Integer auditType, Integer auditStatus, String enterpriseId, String wxEnterpriseId, BasePageInfo pageInfo) {
if (StringUtils.isAnyBlank(staffId, wxEnterpriseId)) { if (StringUtils.isAnyBlank(staffId, wxEnterpriseId)) {
return resultResponse(HaoBanErrCode.ERR_2); return resultResponse(HaoBanErrCode.ERR_2);
} }
Page<AuditDTO> page = auditApiService.listByStaffId(staffId, auditType, auditStatus, pageInfo); Page<AuditDTO> page = auditApiService.listByStaffId(staffId, auditType, auditStatus, enterpriseId, pageInfo);
List<AuditDTO> list = page.getResult(); List<AuditDTO> list = page.getResult();
List<AuditVO> voList = new ArrayList<AuditVO>(); List<AuditVO> voList = new ArrayList<AuditVO>();
for (AuditDTO auditDTO : list) { for (AuditDTO auditDTO : list) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment