功能优化
This commit is contained in:
parent
43c5f53816
commit
d53020f434
|
|
@ -118,7 +118,7 @@ public class BackReceiveServiceImpl implements BackReceiveService {
|
|||
List<BackApplyInfo> wxList = backReceiveMapper.getWxList(record);
|
||||
if(wxList!=null && wxList.size()>0){
|
||||
//插入任务表tm_task
|
||||
int newTaskId = insertTT(wxList,41);
|
||||
int newTaskId = insertTT(wxList,41,record.getCreateBy());
|
||||
//插入协议任务表tm_task_agreement
|
||||
res = insertTTA(newTaskId,wxList);
|
||||
//插入维修记录表repair_apply_details
|
||||
|
|
@ -129,7 +129,7 @@ public class BackReceiveServiceImpl implements BackReceiveService {
|
|||
List<BackApplyInfo> bfList = backReceiveMapper.getBfList(record);
|
||||
if(bfList!=null && bfList.size()>0){
|
||||
//插入任务表tm_task
|
||||
int newTaskId = insertTT(bfList,57);
|
||||
int newTaskId = insertTT(bfList,57,record.getCreateBy());
|
||||
//插入协议任务表tm_task_agreement
|
||||
res = insertTTA(newTaskId,bfList);
|
||||
//插入维修记录表scrap_apply_details
|
||||
|
|
@ -185,7 +185,7 @@ public class BackReceiveServiceImpl implements BackReceiveService {
|
|||
return res;
|
||||
}
|
||||
|
||||
private int insertTT(List<BackApplyInfo> hgList, int taskType) {
|
||||
private int insertTT(List<BackApplyInfo> hgList, int taskType,String createBy) {
|
||||
int newTask = 0;
|
||||
//生成单号
|
||||
String code = genCodeRule(taskType);
|
||||
|
|
@ -201,6 +201,7 @@ public class BackReceiveServiceImpl implements BackReceiveService {
|
|||
applyInfo.setTaskStatus(taskStatus);
|
||||
applyInfo.setCode(code);
|
||||
//创建人
|
||||
applyInfo.setCreateBy(createBy);
|
||||
newTask = backReceiveMapper.insertTT(applyInfo);
|
||||
if (newTask>0 && applyInfo.getTaskId()>0){
|
||||
newTask=applyInfo.getTaskId();
|
||||
|
|
|
|||
Loading…
Reference in New Issue