领料接口优化
This commit is contained in:
parent
278c94969f
commit
3ae13c1f3a
|
|
@ -223,7 +223,7 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService {
|
||||||
if (CollectionUtil.isNotEmpty(leaseApplyRequestVo.getLeaseApplyDetailsList())) {
|
if (CollectionUtil.isNotEmpty(leaseApplyRequestVo.getLeaseApplyDetailsList())) {
|
||||||
// 业务逻辑代码
|
// 业务逻辑代码
|
||||||
leaseApplyDetailsMapper.deleteLeaseApplyDetailsByParentIds(ids);
|
leaseApplyDetailsMapper.deleteLeaseApplyDetailsByParentIds(ids);
|
||||||
insertPurchaseCheckDetails(leaseApplyRequestVo.getLeaseApplyDetailsList(), leaseApplyInfo.getTaskId());
|
insertPurchaseCheckDetails(leaseApplyRequestVo.getLeaseApplyDetailsList(), leaseApplyInfo.getId());
|
||||||
}
|
}
|
||||||
// 修改外层info
|
// 修改外层info
|
||||||
leaseApplyInfoMapper.updateLeaseApplyInfo(leaseApplyInfo);
|
leaseApplyInfoMapper.updateLeaseApplyInfo(leaseApplyInfo);
|
||||||
|
|
|
||||||
|
|
@ -140,15 +140,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<delete id="deleteLeaseApplyDetailsByParentIds" parameterType="Long">
|
<delete id="deleteLeaseApplyDetailsByParentIds" parameterType="Long">
|
||||||
delete from lease_apply_details where parent_id in (
|
delete from lease_apply_details where parent_id in
|
||||||
select task_id
|
|
||||||
from lease_apply_info
|
|
||||||
where
|
|
||||||
id in
|
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
#{id}
|
#{id}
|
||||||
</foreach>
|
</foreach>
|
||||||
)
|
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<select id="getByParentId" resultType="com.bonus.material.lease.domain.LeaseApplyDetails">
|
<select id="getByParentId" resultType="com.bonus.material.lease.domain.LeaseApplyDetails">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue