1.修复养护等相关的bug

zhairh
x_z 2 years ago committed by wangwei
parent badf66be39
commit 95a2747c09

@ -116,9 +116,10 @@ public class InvMAOrderDetailServiceImpl implements InvMAOrderDetailService {
if (invMaintenanceOrderDetailEntity.getCount() > 1) {
invMaintenanceOrderDetailEntity.setCount(invMaintenanceOrderDetailEntity.getCount() - 1);
invMAOrderDetailDao.updateByPrimaryKey(invMaintenanceOrderDetailEntity);
} else {
//养护数量为1直接删除养护记录详情
invMAOrderDetailDao.deleteByPrimaryKey(id);
}
//养护数量为1直接删除养护记录详情
invMAOrderDetailDao.deleteByPrimaryKey(id);
return ResultVOUtils.success();
}

@ -192,7 +192,8 @@
inv_space.name invSpaceName
from inv_maintenance_order ma
left join inv_warehouse_sub on ma.invWarehouseCode = inv_warehouse_sub.code
left join inv_space on ma.invSpaceCode = inv_space.code
left join inv_space
on ma.invSpaceCode = inv_space.code and inv_warehouse_sub.code = inv_space.invWarehouseCode
<where>
<if test="id != null">
AND ma.id = #{id}

@ -241,7 +241,7 @@
mad.createTime,
mad.updateTime,
basic_products.cpmctymc productName,
ip.ggxh,
basic_products.ggxh,
basic_products.zczbhhzbapzbh,
basic_products.ylqxzcrbarmc
FROM inv_maintenance_order_detail mad

Loading…
Cancel
Save