Merge branch 'master' of http://10.153.19.25:10105/r/ERP_override
| | |
| | | {{ row.orderId }} |
| | | {{ row.customerName?'--':'' }} |
| | | {{ row.customerName}} |
| | | {{ row.project?'--':'' }} |
| | | {{row.project?'--':'' }} |
| | | {{row.project}} |
| | | {{ row.batch?'--':'' }} |
| | | {{row.batch}} |
| | |
| | | throw new ServiceException(Constants.Code_600, "上工序已完工数量小于本工序报工数量,请检查"); |
| | | } |
| | | } |
| | | @ApiOperation("mes报工接口测试") |
| | | @PostMapping ("/mesReportingWork1") |
| | | @ApiOperation("mes报工接口Redis") |
| | | @PostMapping ("/mesReportingWorkRedis") |
| | | public Result mesReportingWorkSvToRedis(@RequestBody Map<String,Object> reportingWork) throws JsonProcessingException, InterruptedException { |
| | | return reportingWorkService.mesReportingWorkSvToRedis(reportingWork); |
| | | } |
| | |
| | | public class ScheduledTasks { |
| | | private final ReportingWorkService reportingWorkService; |
| | | |
| | | // @Scheduled( fixedRate = 2*60*1000) |
| | | // public void reportingWorkRedisToMysql() throws InterruptedException { |
| | | // reportingWorkService.redisToMysqlReportingWork(); |
| | | // } |
| | | @Scheduled( fixedRate = 2*60*1000) |
| | | public void reportingWorkRedisToMysql() throws InterruptedException { |
| | | reportingWorkService.redisToMysqlReportingWork(); |
| | | } |
| | | } |