| | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.core.common.Cools; |
| | |
| | | if (wrkMast == null || wrkMast.getWrkNo() == null || !Objects.equals(wrkMast.getWrkSts(), WrkStsType.INBOUND_STATION_RUN.sts)) { |
| | | return false; |
| | | } |
| | | WrkMast updateEntity = new WrkMast(); |
| | | updateEntity.setWrkNo(wrkMast.getWrkNo()); |
| | | updateEntity.setWrkSts(WrkStsType.INBOUND_STATION_RUN_COMPLETE.sts); |
| | | Date now = safeDate(operateTime); |
| | | updateEntity.setIoTime(now); |
| | | updateEntity.setModiTime(now); |
| | | boolean updated = wrkMast.getWrkNo() != null && wrkMastService.update(updateEntity, new QueryWrapper<WrkMast>() |
| | | boolean updated = wrkMast.getWrkNo() != null && wrkMastService.update(null, new UpdateWrapper<WrkMast>() |
| | | .set("wrk_sts", WrkStsType.INBOUND_STATION_RUN_COMPLETE.sts) |
| | | .set("io_time", now) |
| | | .set("modi_time", now) |
| | | .eq("wrk_no", wrkMast.getWrkNo()) |
| | | .eq("wrk_sts", WrkStsType.INBOUND_STATION_RUN.sts)); |
| | | if (!updated) { |