Browse Source

重复工单不改状态直接删

master
psh 5 months ago
parent
commit
9c4d47a65f
  1. 13
      lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pdm/service/impl/PdmBdWorkorderServiceImpl.java
  2. BIN
      lms/nladmin-ui/public/favicon.ico

13
lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pdm/service/impl/PdmBdWorkorderServiceImpl.java

@ -112,12 +112,13 @@ public class PdmBdWorkorderServiceImpl extends ServiceImpl<PdmBdWorkorderMapper,
@Override @Override
public void updateState(String workorder_code,String workorder_status) { public void updateState(String workorder_code,String workorder_status) {
PdmBdWorkorder entity=getOne(new LambdaQueryWrapper<PdmBdWorkorder>() // PdmBdWorkorder entity=getOne(new LambdaQueryWrapper<PdmBdWorkorder>()
.eq(PdmBdWorkorder::getWorkorder_code, workorder_code)); // .eq(PdmBdWorkorder::getWorkorder_code, workorder_code));
if(ObjectUtil.isNotEmpty(entity)) { // if(ObjectUtil.isNotEmpty(entity)) {
entity.setWorkorder_status(workorder_status); // entity.setWorkorder_status(workorder_status);
pdmBdWorkorderMapper.updateById(entity); // pdmBdWorkorderMapper.updateById(entity);
} // }
pdmBdWorkorderMapper.delete(new LambdaQueryWrapper<PdmBdWorkorder>().eq(PdmBdWorkorder::getWorkorder_code, workorder_code));
pdmBdWorkorderDetailMapper.delete(new LambdaQueryWrapper<PdmBdWorkorderDetail>().eq(PdmBdWorkorderDetail::getWorkorder_code, workorder_code)); pdmBdWorkorderDetailMapper.delete(new LambdaQueryWrapper<PdmBdWorkorderDetail>().eq(PdmBdWorkorderDetail::getWorkorder_code, workorder_code));
} }
} }

BIN
lms/nladmin-ui/public/favicon.ico

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 622 B

Loading…
Cancel
Save