add:喷涂需求单添加查看失效单据

This commit is contained in:
zhaoyf
2026-09-03 15:03:17 +08:00
parent 9f7fecefa0
commit 29d2b307cd
2 changed files with 8 additions and 1 deletions

View File

@@ -29,7 +29,13 @@
select d.*,g.qty pkInv
from pm_demand_plating d
left join md_pb_groupplate g on d.sku_code = g.material_code and g.storagevehicle_code = 'VTP0006'
where is_deleted = 0
where 1 = 1
<if test="query.status == 90">
and is_deleted = 1
</if>
<if test="query.status != 90">
and is_deleted = 0
</if>
<if test="query.id != null and query.id != ''">
and d.id = #{query.id}
</if>

View File

@@ -202,6 +202,7 @@ public class PmDemandPlatingServiceImpl extends ServiceImpl<PmDemandPlatingMappe
mesApi.delMesDemand(id);
this.update(new LambdaUpdateWrapper<PmDemandPlating>()
.eq(PmDemandPlating::getId,id)
.set(PmDemandPlating::getStatus, DemandStatus.CANCEL.getValue())
.set(PmDemandPlating::getIs_deleted,1));
}