Commit 9c5131db by huangZW

111

parent 2844f6f1
......@@ -263,7 +263,6 @@ public class AuditApiServiceImpl implements AuditApiService{
int auditType = tab2.getAuditType();
String oldValue = tab2.getOldValue();
String enterpriseId = tab2.getEnterpriseId();
AuditStaffDTO obj = JSONObject.parseObject(oldValue,AuditStaffDTO.class);
//发送消息
if(auditType == AuditType.STORE_CHANGE.getCode()){
String changeField = tab2.getChangeField();
......@@ -274,10 +273,13 @@ public class AuditApiServiceImpl implements AuditApiService{
String storeId = tab2.getCommitStoreId();
this.sendMessageByStaffId(staffId, storeId, title, content);
}else if(auditType == AuditType.CLERK_BIND.getCode()){
AuditStaffDTO obj = JSONObject.parseObject(oldValue,AuditStaffDTO.class);
staffDepartmentRelatedApiService.sendStaffBind(obj.getStaffId(), obj.getClerkCode(), tab2.getCommitStoreId(), 2, auditReason);
}else if(auditType == AuditType.CLERK_ADD.getCode()) {
AuditStaffDTO obj = JSONObject.parseObject(oldValue,AuditStaffDTO.class);
staffDepartmentRelatedApiService.sendClerkAdd(enterpriseId, obj.getClerkCode(), 2, auditReason);
}else if(auditType == AuditType.CLERK_DEL.getCode()) {
AuditStaffDTO obj = JSONObject.parseObject(oldValue,AuditStaffDTO.class);
staffDepartmentRelatedApiService.sendClerkDel(obj.getClerkName(), obj.getClerkCode(),tab.getCommitStoreId(), 2, auditReason);
}
}
......
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