feat: There is no way the, 企标审批完入库后,入库人应为流程发起人
This commit is contained in:
+2
@@ -232,6 +232,8 @@ public class SarBussionessStand extends BaseEntity {
|
||||
private String issueTimeStart;
|
||||
@TableField(exist = false)
|
||||
private String issueTimeEnd;
|
||||
@TableField(exist = false)
|
||||
private String prcCreateUser;
|
||||
|
||||
public static long getSerialVersionUID() {
|
||||
return serialVersionUID;
|
||||
|
||||
+2
-1
@@ -231,7 +231,8 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
||||
number += "-" + sarBussionessStandEO.getStandYear();
|
||||
}
|
||||
String content = "入库" + number + " 《" + sarBussionessStandEO.getStandName() + "》";
|
||||
sarUpdLogEOService.createBaseLog(sarBussionessStandEO.getId(),"BUSINESS",content);
|
||||
String prcCreateUser = StringUtils.isNotBlank(sarBussionessStandEO.getPrcCreateUser()) ? sarBussionessStandEO.getPrcCreateUser() : "";
|
||||
sarUpdLogEOService.createBaseProcessLog(sarBussionessStandEO.getId(),"BUSINESS",content,prcCreateUser);
|
||||
if(elasflag) {
|
||||
attrInfoShowSearchDetails(sarBussionessStandEO,"add");
|
||||
createStandMQService.sendBussStandMQ(sarBussionessStandEO,"add");
|
||||
|
||||
@@ -21,5 +21,7 @@ public interface ISarUpdLogService extends IService<SarUpdLog> {
|
||||
|
||||
void createBaseLog(String sarId, String sarType, String content) throws Exception;
|
||||
|
||||
void createBaseProcessLog(String sarId, String sarType, String content,String user) throws Exception;
|
||||
|
||||
void createUpdateLog(String sarType, String sarId, Map<String, Object> oldMap, Map<String, Object> newMap, String standContent) throws Exception;
|
||||
}
|
||||
|
||||
+11
@@ -266,4 +266,15 @@ public class SarUpdLogServiceImpl extends ServiceImpl<SarUpdLogDao, SarUpdLog> i
|
||||
dao.insert(sarUpdLogEO);
|
||||
}
|
||||
|
||||
public void createBaseProcessLog (String sarId,String sarType,String content,String user) throws Exception {
|
||||
SarUpdLog sarUpdLogEO = new SarUpdLog();
|
||||
sarUpdLogEO.setId(UUIDUtils.randomUUID20());
|
||||
sarUpdLogEO.setSarId(sarId);
|
||||
sarUpdLogEO.setSarType(sarType);
|
||||
sarUpdLogEO.setCreationTime(new Date());
|
||||
sarUpdLogEO.setCreationUser(StringUtils.isNotBlank(user) ? user : (LoginUserUtil.getUserId() == null ? "" : LoginUserUtil.getUserId()));
|
||||
sarUpdLogEO.setContent(content);
|
||||
dao.insert(sarUpdLogEO);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user