| | |
| | | import com.core.common.Cools; |
| | | import com.core.common.R; |
| | | import com.core.exception.CoolException; |
| | | |
| | | import com.zy.asrs.entity.*; |
| | | import com.zy.asrs.entity.param.*; |
| | | import com.zy.asrs.entity.result.MobileAdjustResult; |
| | |
| | | import com.zy.common.service.CommonService; |
| | | import com.zy.common.utils.HttpHandler; |
| | | import com.zy.common.web.BaseController; |
| | | import com.zy.kingdee.utils.K3ApiUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | @RequestMapping("/ddd/ddd") |
| | | @ManagerAuth() |
| | | public R ddd() { |
| | | int w = 99999; |
| | | for (int i = 17; i <= 37; i++) { |
| | | for (int j = 8;j<=14;j++){ |
| | | LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", j).eq("lev1", 1)); |
| | | LocMast locMast2 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", j).eq("lev1", 2)); |
| | | LocMast locMast3 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", j).eq("lev1", 3)); |
| | | // LocMast locMast4 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", 26).eq("bay1", i).eq("lev1", 1)); |
| | | if (locMast.getGro1() == 999){ |
| | | continue; |
| | | } |
| | | // locMast.setGro1(w); |
| | | // locMast.setGro1(locMast.getGro1()+1000); |
| | | locMast2.setGro1(locMast.getGro1()+1000); |
| | | locMast3.setGro1(locMast.getGro1()+2000); |
| | | // locMast4.setGro1(w); |
| | | // locMastService.updateById(locMast); |
| | | locMastService.updateById(locMast2); |
| | | locMastService.updateById(locMast3); |
| | | // locMastService.updateById(locMast4); |
| | | w++; |
| | | } |
| | | } |
| | | // for (int i = 17; i <=37; i++) { |
| | | // LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", 3).eq("lev1", 1)); |
| | | // LocMast locMast2 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", 8).eq("lev1", 1)); |
| | | // LocMast locMast3 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", 13).eq("lev1", 1)); |
| | | //// LocMast locMast4 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", 12).eq("lev1", 1)); |
| | | // if (!Cools.isEmpty(locMast)) { |
| | | // locMast.setGro1(w); |
| | | // locMastService.updateById(locMast); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | // int w = 99999; |
| | | // for (int i = 17; i <= 37; i++) { |
| | | // for (int j = 8;j<=14;j++){ |
| | | // LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", j).eq("lev1", 1)); |
| | | // LocMast locMast2 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", j).eq("lev1", 2)); |
| | | // LocMast locMast3 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", j).eq("lev1", 3)); |
| | | //// LocMast locMast4 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", 26).eq("bay1", i).eq("lev1", 1)); |
| | | // if (locMast.getGro1() == 999){ |
| | | // continue; |
| | | // } |
| | | // |
| | | // locMast2.setGro1(w); |
| | | // locMast3.setGro1(w); |
| | | //// locMast.setGro1(w); |
| | | //// locMast.setGro1(locMast.getGro1()+1000); |
| | | // locMast2.setGro1(locMast.getGro1()+1000); |
| | | // locMast3.setGro1(locMast.getGro1()+2000); |
| | | //// locMast4.setGro1(w); |
| | | // |
| | | //// locMastService.updateById(locMast); |
| | | // locMastService.updateById(locMast2); |
| | | // locMastService.updateById(locMast3); |
| | | //// locMastService.updateById(locMast4); |
| | | //// w++; |
| | | // w++; |
| | | // } |
| | | // } |
| | | //// for (int i = 17; i <=37; i++) { |
| | | //// LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", 3).eq("lev1", 1)); |
| | | //// LocMast locMast2 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", 8).eq("lev1", 1)); |
| | | //// LocMast locMast3 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", 13).eq("lev1", 1)); |
| | | ////// LocMast locMast4 = locMastService.selectOne(new EntityWrapper<LocMast>().eq("row1", i).eq("bay1", 12).eq("lev1", 1)); |
| | | //// if (!Cools.isEmpty(locMast)) { |
| | | //// locMast.setGro1(w); |
| | | //// locMastService.updateById(locMast); |
| | | //// } |
| | | //// |
| | | //// locMast2.setGro1(w); |
| | | //// locMast3.setGro1(w); |
| | | ////// locMast4.setGro1(w); |
| | | //// |
| | | //// locMastService.updateById(locMast2); |
| | | //// locMastService.updateById(locMast3); |
| | | ////// locMastService.updateById(locMast4); |
| | | ////// w++; |
| | | //// } |
| | | return R.ok(); |
| | | |
| | | } |