add:喷涂需求单添加查看失效单据
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user