| | |
| | | |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.mes.temperingglass.entity.TemperingGlassInfo; |
| | | import com.mes.temperingglass.mapper.TemperingGlassInfoMapper; |
| | | import com.mes.temperingglass.service.TemperingGlassInfoService; |
| | |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | @Override |
| | | public boolean updateTemperingStateAll(TemperingGlassInfo glassinfo) { |
| | | UpdateWrapper<TemperingGlassInfo> wrapper = new UpdateWrapper<>(); |
| | | wrapper.eq("engineer_id", glassinfo.getEngineerId()) |
| | | .eq("tempering_layout_id", glassinfo.getTemperingLayoutId()) |
| | | .set("state", glassinfo.getState()); |
| | | return update(wrapper); |
| | | } |
| | | } |