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