不发货的逻辑修改
This commit is contained in:
parent
9466cb078d
commit
e9c3d097c0
|
|
@ -235,15 +235,21 @@
|
||||||
where spo.apply_id=#{id}
|
where spo.apply_id=#{id}
|
||||||
</select>
|
</select>
|
||||||
<select id="getOutApplyDetails" resultType="com.bonus.aqgqj.business.backstage.entity.OutPlanVo">
|
<select id="getOutApplyDetails" resultType="com.bonus.aqgqj.business.backstage.entity.OutPlanVo">
|
||||||
select spa.code planCode,spa.id planId,pro.bdname proName,spo.manager,spo.address,spo.out_time outTime, spo.remark,spo.apply_id,
|
select spo.id,
|
||||||
if(spo.apply_id is null ,0,1) outStatus
|
spa.code planCode,
|
||||||
|
spa.id planId,
|
||||||
|
pro.bdname proName,
|
||||||
|
spo.manager,
|
||||||
|
spo.address,
|
||||||
|
spo.out_time outTime,
|
||||||
|
spo.remark,
|
||||||
|
spo.apply_id,
|
||||||
|
if(spo.apply_id is null, 0, 1) outStatus
|
||||||
from st_plan_apply spa
|
from st_plan_apply spa
|
||||||
left join tb_bid_project pro on pro.id=spa.project_id
|
left join tb_bid_project pro on pro.id = spa.project_id
|
||||||
left join(
|
left join(SELECT spo.id, spo.manager, spo.address, spo.out_time, spo.remark, spo.apply_id
|
||||||
SELECT spo.manager,spo.address,spo.out_time,spo.remark,spo.apply_id
|
FROM st_plan_out spo) spo on spo.apply_id = spa.id
|
||||||
FROM st_plan_out spo
|
where spa.id = #{id}
|
||||||
)spo on spo.apply_id=spa.id
|
|
||||||
where spa.id=#{id}
|
|
||||||
</select>
|
</select>
|
||||||
<select id="getOutApplyDetailsList" resultType="com.bonus.aqgqj.business.backstage.entity.OutPlanVoDetails">
|
<select id="getOutApplyDetailsList" resultType="com.bonus.aqgqj.business.backstage.entity.OutPlanVoDetails">
|
||||||
select spd.id detailId,spd.apply_id planId ,spd.model_id modelid,spd.need_num needNum,
|
select spd.id detailId,spd.apply_id planId ,spd.model_id modelid,spd.need_num needNum,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue