| | |
| | | |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.baomidou.mybatisplus.extension.conditions.update.LambdaUpdateChainWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.mes.engineering.entity.Engineering; |
| | |
| | | .last("limit 1"); |
| | | return engineeringMapper.selectOne(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public Engineering selectInitiates(Integer state,Integer cell) { |
| | | //查询是否有开始上片的工程任务 |
| | |
| | | @Override |
| | | public boolean deleteTask(String engineerId) { |
| | | //删除工程表 |
| | | QueryWrapper<Engineering> wrapper = new QueryWrapper<>(); |
| | | wrapper.eq("engineer_id", engineerId); |
| | | return this.remove(wrapper); |
| | | // QueryWrapper<Engineering> wrapper = new QueryWrapper<>(); |
| | | // wrapper.eq("engineer_id", engineerId); |
| | | // return this.remove(wrapper); |
| | | //修改工程表状态 |
| | | return this.update( |
| | | new LambdaUpdateWrapper<Engineering>() |
| | | .eq(Engineering::getEngineerId, engineerId) |
| | | .set(Engineering::getState, 6) |
| | | ); |
| | | } |
| | | |
| | | @Override |