领料接口优化
This commit is contained in:
parent
9ff5a9958c
commit
0fba5ce68e
|
|
@ -135,14 +135,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
bpl.pro_id as proId,bpl.pro_name as projectName,
|
bpl.pro_id as proId,bpl.pro_name as projectName,
|
||||||
bui.unit_id as unitId,bui.unit_name as unitName,
|
bui.unit_id as unitId,bui.unit_name as unitName,
|
||||||
lai.lease_person as leasePerson, lai.phone as leasePhone, tt.create_by as applyFor,d.`name` as taskName,lai.lease_type as leaseType,lai.estimate_lease_time as estimateLeaseTime,
|
lai.lease_person as leasePerson, lai.phone as leasePhone, tt.create_by as applyFor,d.`name` as taskName,lai.lease_type as leaseType,lai.estimate_lease_time as estimateLeaseTime,
|
||||||
case when d.id = '31' then lai.company_audit_remark
|
-- case when d.id = '31' then lai.company_audit_remark
|
||||||
when d.id = '32' then lai.dept_audit_remark
|
-- when d.id = '32' then lai.dept_audit_remark
|
||||||
when d.id = '33' then lai.direct_audit_remark
|
-- when d.id = '33' then lai.direct_audit_remark
|
||||||
when d.id = '98' then lai.company_audit_remark
|
-- when d.id = '98' then lai.company_audit_remark
|
||||||
when d.id = '99' then lai.dept_audit_remark
|
-- when d.id = '99' then lai.dept_audit_remark
|
||||||
when d.id = '100' then lai.direct_audit_remark
|
-- when d.id = '100' then lai.direct_audit_remark
|
||||||
end examineStatus,
|
-- end examineStatus,
|
||||||
d.id as examineStatusId,
|
-- d.id as examineStatusId,
|
||||||
bai.agreement_code as agreementCode,
|
bai.agreement_code as agreementCode,
|
||||||
tt.create_time as createTimes, tt.update_time as updateTimes
|
tt.create_time as createTimes, tt.update_time as updateTimes
|
||||||
FROM
|
FROM
|
||||||
|
|
@ -154,7 +154,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
LEFT JOIN bm_project bpl ON bpl.pro_id = bai.project_id
|
LEFT JOIN bm_project bpl ON bpl.pro_id = bai.project_id
|
||||||
LEFT JOIN bm_unit bui ON bui.unit_id = bai.unit_id
|
LEFT JOIN bm_unit bui ON bui.unit_id = bai.unit_id
|
||||||
LEFT JOIN lease_apply_info lai ON lai.task_id = tt.task_id
|
LEFT JOIN lease_apply_info lai ON lai.task_id = tt.task_id
|
||||||
LEFT JOIN sys_dic d ON d.id = tt.task_status
|
-- LEFT JOIN sys_dic d ON d.id = tt.task_status
|
||||||
WHERE
|
WHERE
|
||||||
tt.task_type = '29' and tt.status = '1'
|
tt.task_type = '29' and tt.status = '1'
|
||||||
<if test="record.taskId != null and record.taskId != '' ">
|
<if test="record.taskId != null and record.taskId != '' ">
|
||||||
|
|
@ -187,14 +187,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
bpl.pro_id as proId,bpl.pro_name as projectName,
|
bpl.pro_id as proId,bpl.pro_name as projectName,
|
||||||
bui.unit_id as unitId,bui.unit_name as unitName,
|
bui.unit_id as unitId,bui.unit_name as unitName,
|
||||||
lai.lease_person as leasePerson, lai.phone as leasePhone, tt.create_by as applyFor,d.`name` as taskName,lai.lease_type as leaseType,lai.estimate_lease_time as estimateLeaseTime,
|
lai.lease_person as leasePerson, lai.phone as leasePhone, tt.create_by as applyFor,d.`name` as taskName,lai.lease_type as leaseType,lai.estimate_lease_time as estimateLeaseTime,
|
||||||
case when d.id = '31' then lai.company_audit_remark
|
-- case when d.id = '31' then lai.company_audit_remark
|
||||||
when d.id = '32' then lai.dept_audit_remark
|
-- when d.id = '32' then lai.dept_audit_remark
|
||||||
when d.id = '33' then lai.direct_audit_remark
|
-- when d.id = '33' then lai.direct_audit_remark
|
||||||
when d.id = '98' then lai.company_audit_remark
|
-- when d.id = '98' then lai.company_audit_remark
|
||||||
when d.id = '99' then lai.dept_audit_remark
|
-- when d.id = '99' then lai.dept_audit_remark
|
||||||
when d.id = '100' then lai.direct_audit_remark
|
-- when d.id = '100' then lai.direct_audit_remark
|
||||||
end examineStatus ,
|
-- end examineStatus ,
|
||||||
d.id as examineStatusId,
|
-- d.id as examineStatusId,
|
||||||
bai.agreement_code as agreementCode,
|
bai.agreement_code as agreementCode,
|
||||||
tt.create_time as createTimes, tt.update_time as updateTimes
|
tt.create_time as createTimes, tt.update_time as updateTimes
|
||||||
FROM
|
FROM
|
||||||
|
|
@ -206,7 +206,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
LEFT JOIN bm_project bpl ON bpl.pro_id = bai.project_id
|
LEFT JOIN bm_project bpl ON bpl.pro_id = bai.project_id
|
||||||
LEFT JOIN bm_unit bui ON bui.unit_id = bai.unit_id
|
LEFT JOIN bm_unit bui ON bui.unit_id = bai.unit_id
|
||||||
LEFT JOIN lease_apply_info lai ON lai.task_id = tt.task_id
|
LEFT JOIN lease_apply_info lai ON lai.task_id = tt.task_id
|
||||||
LEFT JOIN sys_dic d ON d.id = tt.task_status
|
-- LEFT JOIN sys_dic d ON d.id = tt.task_status
|
||||||
WHERE
|
WHERE
|
||||||
tt.task_type = '29' and tt.status = '1' and tt.create_by = #{record.createBy}
|
tt.task_type = '29' and tt.status = '1' and tt.create_by = #{record.createBy}
|
||||||
<if test="record.taskId != null and record.taskId != '' ">
|
<if test="record.taskId != null and record.taskId != '' ">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue