| | |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import com.zy.asrs.entity.WrkMast; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | import java.util.List; |
| | |
| | | @Repository |
| | | public interface WrkMastMapper extends BaseMapper<WrkMast> { |
| | | |
| | | WrkMast selectByLocNo(@Param("sourceLocNo") String sourceLocNo); |
| | | |
| | | // @Select("select * from asr_wrk_mast where ((wrk_sts = 4 Or wrk_sts = 14 ) and io_type <> 103 and io_type <> 104 and io_type <> 107 ) or (wrk_sts = 2 and io_type=6) order by upd_mk,io_time,wrk_no") |
| | | List<WrkMast> selectToBeCompleteData(); |
| | | |
| | |
| | | } |
| | | int workNo = commonService.getWorkNo(rok); |
| | | |
| | | // 当深库位出库时,查找对应的浅库位是否也有出库任务,如果有,就增加其优先级 |
| | | boolean reduce = false; |
| | | if (Utils.isDeepLoc(slaveProperties, dto.getLocNo())) { |
| | | String shallowLoc = Utils.getShallowLoc(slaveProperties, dto.getLocNo()); |
| | | if (locNos.contains(shallowLoc)) { |
| | | reduce = true; |
| | | if(locMast.getCrnNo().equals(1) && dto.getLocNo().substring(0,2).equals("01")) {//1号货架才判断 |
| | | // 当深库位出库时,查找对应的浅库位是否也有出库任务,如果有,就增加其优先级 |
| | | boolean reduce = false; |
| | | if (Utils.isDeepLoc(slaveProperties, dto.getLocNo())) { |
| | | String shallowLoc = Utils.getShallowLoc(slaveProperties, dto.getLocNo()); |
| | | if (locNos.contains(shallowLoc)) { |
| | | reduce = true; |
| | | } |
| | | } |
| | | } |
| | | |
| | | // 深库位移库 |
| | | if (!reduce) { |
| | | moveLocForDeepLoc(locMast.getCrnNo(), dto.getLocNo()); |
| | | // 深库位移库 |
| | | if (!reduce) { |
| | | moveLocForDeepLoc(locMast.getCrnNo(), dto.getLocNo()); |
| | | } |
| | | } |
| | | |
| | | // 生成工作档 |
| | |
| | | |
| | | </resultMap> |
| | | |
| | | <select id="selectByLocNo" resultMap="BaseResultMap"> |
| | | select top 1 * from asr_wrk_mast where source_loc_no = #{sourceLocNo} |
| | | </select> |
| | | |
| | | <select id="selectToBeCompleteData" resultMap="BaseResultMap"> |
| | | select * from asr_wrk_mast where ((wrk_sts = 4 Or wrk_sts = 14 ) and io_type != 103 and io_type != 104 and io_type != 107 ) or (wrk_sts = 2 and io_type=6) order by upd_mk,io_time,wrk_no |
| | | </select> |