获取领料申请-详情列表
This commit is contained in:
parent
1666636cab
commit
621fe5a27a
|
|
@ -80,5 +80,7 @@ public interface TmTaskMapper {
|
|||
|
||||
TmTask getLeaseListTmTask(TmTask task);
|
||||
|
||||
LeaseApplyInfo getLeaseListByLeaseInfo(TmTask task);
|
||||
List<LeaseApplyInfo> getLeaseListByLeaseInfo(TmTask task);
|
||||
|
||||
// LeaseApplyInfo getLeaseListByLeaseInfo(TmTask task);
|
||||
}
|
||||
|
|
@ -225,11 +225,17 @@ public class TmTaskServiceImpl implements TmTaskService{
|
|||
List<TmTask> tmTaskList = new ArrayList<>();
|
||||
TmTask tmTask = tmTaskMapper.getLeaseListTmTask(task);
|
||||
if(tmTask != null){
|
||||
LeaseApplyInfo leaseApplyInfo = tmTaskMapper.getLeaseListByLeaseInfo(task);
|
||||
tmTask.setLeaseApplyInfo(leaseApplyInfo);
|
||||
if(leaseApplyInfo !=null){
|
||||
List<LeaseApplyDetails> leaseApplyDetails = tmTaskMapper.getLeaseApplyDetails(leaseApplyInfo);
|
||||
tmTask.setLeaseApplyDetails(leaseApplyDetails);
|
||||
List<LeaseApplyInfo> leaseApplyInfoList = tmTaskMapper.getLeaseListByLeaseInfo(task);
|
||||
tmTask.setLeaseApplyInfoList(leaseApplyInfoList);
|
||||
for (LeaseApplyInfo leaseApplyInfo : leaseApplyInfoList) {
|
||||
if (leaseApplyInfo != null) {
|
||||
// 去查询领料任务详情表
|
||||
List<LeaseApplyDetails> leaseApplyDetails = tmTaskMapper.getLeaseApplyDetails(leaseApplyInfo);
|
||||
if (leaseApplyDetails != null && !leaseApplyDetails.isEmpty()) {
|
||||
// 塞入领料任务详情的集合中
|
||||
tmTask.setLeaseApplyDetails(leaseApplyDetails);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tmTaskList.add(tmTask);
|
||||
|
|
|
|||
|
|
@ -32,12 +32,12 @@
|
|||
select count(*) from tm_task where DATE_FORMAT(create_time,'%y%m') = DATE_FORMAT(#{date},'%y%m') and task_type = #{taskType}
|
||||
</select>
|
||||
|
||||
<update id="deleteTaskByPrimaryKey" parameterType="java.lang.Long">
|
||||
<update id="deleteTaskByPrimaryKey" >
|
||||
update tm_task set `status` = '0'
|
||||
where task_id = #{taskId,jdbcType=BIGINT}
|
||||
where task_id = #{taskId}
|
||||
</update>
|
||||
|
||||
<update id="deleteTaskInfoByTaskId" parameterType="java.lang.Long">
|
||||
<update id="deleteTaskInfoByTaskId" >
|
||||
update lease_apply_info set `status` = '0'
|
||||
where task_id = #{taskId}
|
||||
</update>
|
||||
|
|
@ -541,14 +541,15 @@
|
|||
WHERE tt.task_id = #{taskId}
|
||||
</select>
|
||||
|
||||
<select id="getLeaseListByLeaseInfo" resultType="com.bonus.sgzb.base.api.domain.LeaseApplyInfo">
|
||||
SELECT
|
||||
lai.*
|
||||
FROM
|
||||
lease_apply_info lai
|
||||
WHERE
|
||||
lai.task_id = #{taskId}
|
||||
</select>
|
||||
<select id="getLeaseListByLeaseInfo" resultType="com.bonus.sgzb.base.api.domain.LeaseApplyInfo">
|
||||
SELECT
|
||||
lai.*
|
||||
FROM
|
||||
lease_apply_info lai
|
||||
WHERE
|
||||
lai.task_id = #{taskId}
|
||||
</select>
|
||||
|
||||
|
||||
<update id="updateTmTaskAuditStatus">
|
||||
UPDATE tm_task SET task_status = #{record.taskStatus} WHERE task_id = #{record.taskId}
|
||||
|
|
|
|||
Loading…
Reference in New Issue