后台代码提交
This commit is contained in:
parent
d2b5398d09
commit
1074e16aed
|
|
@ -6,6 +6,7 @@ import java.util.Date;
|
|||
import java.util.List;
|
||||
|
||||
import com.bonus.sgzb.base.api.domain.TmTask;
|
||||
import com.bonus.sgzb.common.core.exception.ServiceException;
|
||||
import com.bonus.sgzb.common.core.utils.DateUtils;
|
||||
import com.bonus.sgzb.common.security.utils.SecurityUtils;
|
||||
import com.bonus.sgzb.material.domain.*;
|
||||
|
|
@ -13,7 +14,6 @@ import com.bonus.sgzb.material.mapper.*;
|
|||
import com.bonus.sgzb.material.service.IRepairAuditDetailsService;
|
||||
import com.bonus.sgzb.material.vo.ScrapApplyDetailsVO;
|
||||
import com.bonus.sgzb.material.vo.ScrapAudit;
|
||||
import javafx.concurrent.Task;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
|
@ -183,7 +183,11 @@ public class RepairAuditDetailsServiceImpl implements IRepairAuditDetailsService
|
|||
// 添加协议信息表
|
||||
TmTaskAgreement taskAgreement = new TmTaskAgreement();
|
||||
taskAgreement.setTaskId(task.getTaskId());
|
||||
if (tmTaskAgreement.getAgreementId() == null){
|
||||
throw new ServiceException("缺少协议数据");
|
||||
}
|
||||
taskAgreement.setAgreementId(tmTaskAgreement.getAgreementId());
|
||||
taskAgreement.setCreateBy(SecurityUtils.getUsername());
|
||||
agreementMapper.insertTmTaskAgreement(taskAgreement);
|
||||
|
||||
// 添加修试后入库任务
|
||||
|
|
|
|||
Loading…
Reference in New Issue