|
@ -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)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|