领料接口优化
This commit is contained in:
parent
d4db651eec
commit
01d1b9b60e
|
|
@ -60,8 +60,19 @@ public class TmTaskRequestVo extends BaseEntity {
|
||||||
@ApiModelProperty(value = "往来单位id")
|
@ApiModelProperty(value = "往来单位id")
|
||||||
private Long unitId;
|
private Long unitId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "往来单位")
|
||||||
|
//@Excel(name = "领料单位", sort = 2)
|
||||||
|
private String unitName;
|
||||||
|
|
||||||
@ApiModelProperty(value = "工程id")
|
@ApiModelProperty(value = "工程id")
|
||||||
private Long projectId;
|
private Long proId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工程名称
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "工程名称")
|
||||||
|
@Excel(name = "领料工程", sort = 3)
|
||||||
|
private String proName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 预领料合计数
|
* 预领料合计数
|
||||||
|
|
@ -69,6 +80,15 @@ public class TmTaskRequestVo extends BaseEntity {
|
||||||
@ApiModelProperty(value = "预领料合计数")
|
@ApiModelProperty(value = "预领料合计数")
|
||||||
private Integer preCountNum;
|
private Integer preCountNum;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "开始时间")
|
||||||
|
private String startTime;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "结束时间")
|
||||||
|
private String endTime;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "关键字")
|
||||||
|
private String keyWord;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 领料任务实体集合
|
* 领料任务实体集合
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<select id="getAuditListByLeaseTmTask" resultType="com.bonus.material.task.domain.vo.TmTaskRequestVo">
|
<select id="getAuditListByLeaseTmTask" resultType="com.bonus.material.task.domain.vo.TmTaskRequestVo">
|
||||||
SELECT DISTINCT
|
SELECT DISTINCT
|
||||||
tt.*, su.phonenumber AS phoneNumber, sd.dept_name as deptName,
|
tt.*, su.phonenumber AS phoneNumber, sd.dept_name as deptName,
|
||||||
bpl.lot_id as proId,bpl.lot_name as proName,
|
bpl.pro_id as proId,bpl.pro_name as proName,
|
||||||
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
|
||||||
|
|
@ -151,8 +151,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
LEFT JOIN sys_dept sd ON su.dept_id = sd.dept_id
|
LEFT JOIN sys_dept sd ON su.dept_id = sd.dept_id
|
||||||
LEFT JOIN tm_task_agreement tta ON tt.task_id = tta.task_id
|
LEFT JOIN tm_task_agreement tta ON tt.task_id = tta.task_id
|
||||||
LEFT JOIN bm_agreement_info bai ON bai.agreement_id = tta.agreement_id
|
LEFT JOIN bm_agreement_info bai ON bai.agreement_id = tta.agreement_id
|
||||||
LEFT JOIN bm_project_lot bpl ON bpl.lot_id = bai.project_id
|
LEFT JOIN bm_project bpl ON bpl.pro_id = bai.project_id
|
||||||
LEFT JOIN bm_unit_info 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
|
||||||
|
|
@ -170,7 +170,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<if test="record.projectId != null and record.projectId != ''">
|
<if test="record.projectId != null and record.projectId != ''">
|
||||||
AND bpl.lot_id = #{record.projectId}
|
AND bpl.pro_id = #{record.projectId}
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<if test="record.keyWord != null and record.keyWord != ''">
|
<if test="record.keyWord != null and record.keyWord != ''">
|
||||||
|
|
@ -184,7 +184,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<select id="getAuditListByLeaseTmTaskByPeople" resultType="com.bonus.material.task.domain.vo.TmTaskRequestVo">
|
<select id="getAuditListByLeaseTmTaskByPeople" resultType="com.bonus.material.task.domain.vo.TmTaskRequestVo">
|
||||||
SELECT DISTINCT
|
SELECT DISTINCT
|
||||||
tt.*, su.phonenumber AS phoneNumber, sd.dept_name as deptName,
|
tt.*, su.phonenumber AS phoneNumber, sd.dept_name as deptName,
|
||||||
bpl.lot_id as proId,bpl.lot_name as proName,
|
bpl.pro_id as proId,bpl.pro_name as proName,
|
||||||
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
|
||||||
|
|
@ -203,8 +203,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
LEFT JOIN sys_dept sd ON su.dept_id = sd.dept_id
|
LEFT JOIN sys_dept sd ON su.dept_id = sd.dept_id
|
||||||
LEFT JOIN tm_task_agreement tta ON tt.task_id = tta.task_id
|
LEFT JOIN tm_task_agreement tta ON tt.task_id = tta.task_id
|
||||||
LEFT JOIN bm_agreement_info bai ON bai.agreement_id = tta.agreement_id
|
LEFT JOIN bm_agreement_info bai ON bai.agreement_id = tta.agreement_id
|
||||||
LEFT JOIN bm_project_lot bpl ON bpl.lot_id = bai.project_id
|
LEFT JOIN bm_project bpl ON bpl.pro_id = bai.project_id
|
||||||
LEFT JOIN bm_unit_info 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
|
||||||
|
|
@ -222,7 +222,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<if test="record.projectId != null and record.projectId != ''">
|
<if test="record.projectId != null and record.projectId != ''">
|
||||||
AND bpl.lot_id = #{record.projectId}
|
AND bpl.pro_id = #{record.projectId}
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<if test="record.keyWord != null and record.keyWord != ''">
|
<if test="record.keyWord != null and record.keyWord != ''">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue