| | |
| | | return R.error("Save Fail"); |
| | | } |
| | | |
| | | Code startCode = codeService.getById(route.getStartCode()); |
| | | Code endCode = codeService.getById(route.getEndCode()); |
| | | Code startCode = codeService.getCacheById(route.getStartCode()); |
| | | Code endCode = codeService.getCacheById(route.getEndCode()); |
| | | |
| | | if (null == startCode || null == endCode) { |
| | | return R.error("Save Fail"); |
| | |
| | | } |
| | | RouteExcel excelDto = Cools.conver(one, RouteExcel.class); |
| | | |
| | | Code code0 = codeService.selectByData(Utils.zeroFill(excelDto.getStartCode(), CommonConstant.QR_CODE_LEN)); |
| | | Code code1 = codeService.selectByData(Utils.zeroFill(excelDto.getEndCode(), CommonConstant.QR_CODE_LEN)); |
| | | Code code0 = codeService.getCacheByData(Utils.zeroFill(excelDto.getStartCode(), CommonConstant.QR_CODE_LEN)); |
| | | Code code1 = codeService.getCacheByData(Utils.zeroFill(excelDto.getEndCode(), CommonConstant.QR_CODE_LEN)); |
| | | |
| | | if (null == code0 || null == code1) { continue; } |
| | | |