工地直转退料领料信息中增加直转id
This commit is contained in:
parent
e835da5e30
commit
e8d6125f70
|
|
@ -374,6 +374,7 @@ public class DirectRotationImpl implements DirectRotationService {
|
|||
backApplyInfo.setCode(codes);
|
||||
backApplyInfo.setCreateBy(SecurityUtils.getUsername());
|
||||
backApplyInfo.setCreateTime(DateUtils.getNowDate());
|
||||
backApplyInfo.setDirectId(Long.valueOf(id));
|
||||
// 保存退料信息到 tm_task 表中
|
||||
int result = 0;
|
||||
result = taskMapper.insertTmTask(task);
|
||||
|
|
@ -408,6 +409,7 @@ public class DirectRotationImpl implements DirectRotationService {
|
|||
applyInfo.setPhone(info.getLeasePhone());
|
||||
applyInfo.setCreateBy(SecurityUtils.getUsername());
|
||||
applyInfo.setCreateTime(DateUtils.getNowDate());
|
||||
applyInfo.setDeptId(Long.valueOf(id));
|
||||
/** 设置审批人为默认的董班长 --防止代码冲突 **/
|
||||
int count = leaseApplyInfoMapper.insertLeaseApplyInfo(applyInfo);
|
||||
if (count > 0) {
|
||||
|
|
|
|||
|
|
@ -210,7 +210,7 @@
|
|||
direct_apply_info dai
|
||||
LEFT JOIN direct_apply_details dad ON dai.id = dad.direct_id
|
||||
LEFT JOIN slt_agreement_info sai ON dai.back_agreement_id = sai.agreement_id
|
||||
AND sai.type_id = dad.type_id and dad.ma_id = sai.ma_id
|
||||
AND sai.type_id = dad.type_id and IFNULL(dad.ma_id,0)=IFNULL(sai.ma_id,0)
|
||||
LEFT JOIN lease_apply_info lai on lai.id=sai.lease_id
|
||||
LEFT JOIN ma_type mt ON mt.type_id = dad.type_id
|
||||
LEFT JOIN ma_type mt2 ON mt2.type_id = mt.parent_id
|
||||
|
|
|
|||
Loading…
Reference in New Issue