| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.enums.SqlLike; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.AgvLocMast; |
| | | import com.zy.asrs.entity.AgvLocRule; |
| | | import com.zy.asrs.mapper.AgvLocMastMapper; |
| | |
| | | //2楼 1-25排 1-33列 1层 |
| | | this.insertBatch(getLocMastList(1, 25, 1, 33, 1, 1, 2)); |
| | | } |
| | | |
| | | public void initLocFloor3() { |
| | | //2楼 1-25排 1-33列 1层 |
| | | this.insertBatch(getLocMastList(1, 26, 1, 34, 1, 1, 3)); |
| | |
| | | |
| | | return true; |
| | | } |
| | | |
| | | private boolean checkLocExistFloor1_1(int row, int bay){ |
| | | if(row <= 2 && bay >= 20){ |
| | | return false; |
| | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | private boolean checkLocExistFloor3(int row, int bay){ |
| | | if(row == 1 && (bay <= 15 || bay >= 30)){ |
| | | return false; |
| | |
| | | @Override |
| | | public AgvLocMast selectEmptyZpallet(int type, int floor) { |
| | | |
| | | return this.selectOne(new EntityWrapper<AgvLocMast>().eq("loc_sts","D").eq("loc_type2",type).eq("floor",floor).orderBy("lev1",true)); |
| | | return this.selectOne(new EntityWrapper<AgvLocMast>().eq("loc_sts", "D").like("barcode", type + "", SqlLike.RIGHT).eq("floor", floor).orderBy("lev1", true)); |
| | | |
| | | } |
| | | |