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