Commit b85eeabf by huangZW

111

parent 6d8928f2
...@@ -398,7 +398,9 @@ ...@@ -398,7 +398,9 @@
<if test="auditType != null and auditType != -1"> <if test="auditType != null and auditType != -1">
and audit_type = #{auditType} and audit_type = #{auditType}
</if> </if>
<if test="auditStatus != null and auditStatus != -1">
and audit_status = #{auditStatus} and audit_status = #{auditStatus}
</if>
order by create_time desc order by create_time desc
</select> </select>
......
...@@ -555,6 +555,32 @@ public class ClerkController extends WebBaseController{ ...@@ -555,6 +555,32 @@ public class ClerkController extends WebBaseController{
staffClerkRelation.setWxUserId(wxUserId); staffClerkRelation.setWxUserId(wxUserId);
staffClerkRelation.setStaffId(staffId); staffClerkRelation.setStaffId(staffId);
staffClerkRelationApiService.insert(staffClerkRelation); staffClerkRelationApiService.insert(staffClerkRelation);
//无需审核
AuditDTO audit = new AuditDTO();
audit.setCommitStaffName(clerk.getClerkName());
audit.setCommitStaffId(staffId);
audit.setCommitStaffImg(staff.getHeadImg());
audit.setCommitStoreId(clerk.getStoreId());
audit.setCommitStoreName(store.getStoreName());
audit.setAuditStatus(4);
audit.setWxEnterpriseId(wxEnterpriseId);
audit.setEnterpriseId(store.getEnterpriseId());
audit.setStatusFlag(1);
audit.setRelatedId(staffId);
JSONObject json = new JSONObject();
json.put("clerkId", clerkId);
json.put("clerkCode", clerkCode);
json.put("clerkName", clerk.getClerkName());
json.put("staffName", staff.getStaffName());
json.put("staffId", staffId);
json.put("wxUserId", wxUserId);
json.put("headPic", staff.getHeadImg());
audit.setOldValue(json.toJSONString());
audit.setCommitTime(new Date());
audit.setAuditType(2);
auditApiService.insert(audit);
return resultResponse(HaoBanErrCode.ERR_1); return resultResponse(HaoBanErrCode.ERR_1);
}else{ }else{
//需要审核 //需要审核
...@@ -568,6 +594,7 @@ public class ClerkController extends WebBaseController{ ...@@ -568,6 +594,7 @@ public class ClerkController extends WebBaseController{
audit.setWxEnterpriseId(wxEnterpriseId); audit.setWxEnterpriseId(wxEnterpriseId);
audit.setEnterpriseId(store.getEnterpriseId()); audit.setEnterpriseId(store.getEnterpriseId());
audit.setStatusFlag(1); audit.setStatusFlag(1);
audit.setRelatedId(staffId);
JSONObject json = new JSONObject(); JSONObject json = new JSONObject();
json.put("clerkId", clerkId); json.put("clerkId", clerkId);
...@@ -615,6 +642,7 @@ public class ClerkController extends WebBaseController{ ...@@ -615,6 +642,7 @@ public class ClerkController extends WebBaseController{
audit.setWxEnterpriseId(staffClerkRelation.getWxEnterpriseId()); audit.setWxEnterpriseId(staffClerkRelation.getWxEnterpriseId());
audit.setEnterpriseId(store.getEnterpriseId()); audit.setEnterpriseId(store.getEnterpriseId());
audit.setStatusFlag(1); audit.setStatusFlag(1);
audit.setRelatedId(staffId);
JSONObject json = new JSONObject(); JSONObject json = new JSONObject();
json.put("clerkId", clerkId); json.put("clerkId", clerkId);
......
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