| | |
| | | @Override |
| | | public R synCallowWarehousing() { |
| | | |
| | | Config outModel = configService.selectConfigByCode("outModel"); |
| | | if (outModel.getValue().equals("Y")) { |
| | | // 没有到305的出库任务(305的出库任务优先) |
| | | int count = wrkMastService.selectCount(new EntityWrapper<WrkMast>().eq("io_type", 101) |
| | | .eq("sta_no", 305)); |
| | | if (count > 0) { |
| | | return R.parse("存在305出库任务"); |
| | | } |
| | | outModel.setValue("N"); |
| | | configService.updateById(outModel); |
| | | } |
| | | // Config outModel = configService.selectConfigByCode("outModel"); |
| | | // if (outModel.getValue().equals("Y")) { |
| | | // // 没有到305的出库任务(305的出库任务优先) |
| | | // int count = wrkMastService.selectCount(new EntityWrapper<WrkMast>().eq("io_type", 101) |
| | | // .eq("sta_no", 305)); |
| | | // if (count > 0) { |
| | | // return R.parse("存在305出库任务"); |
| | | // } |
| | | // outModel.setValue("N"); |
| | | // configService.updateById(outModel); |
| | | // } |
| | | return R.ok(); |
| | | } |
| | | @Autowired |