| | |
| | | import java.util.List; |
| | | @Slf4j |
| | | public class EquipmentMagnificationJob implements Job { |
| | | private String parameter; |
| | | |
| | | public void setParameter(String parameter) { |
| | | this.parameter = parameter; |
| | | } |
| | | @Resource |
| | | private IMdcEquipmentMagnificationService mdcEquipmentMagnificationService; |
| | | |
| | |
| | | if (byJobClassName != null && !byJobClassName.isEmpty()) { |
| | | quartzLog.setJobId(byJobClassName.get(0).getId()); |
| | | } |
| | | quartzLog.setParams(this.parameter); |
| | | log.info("倍率统计 EquipmentMagnificationJob start! 时间:" + DateUtils.now()); |
| | | long startTime = System.currentTimeMillis(); |
| | | try { |
| | | mdcEquipmentMagnificationService.savesEquipmentMagnifications(); |
| | | mdcEquipmentMagnificationService.savesEquipmentMagnifications(this.parameter); |
| | | quartzLog.setIsSuccess(0); |
| | | } catch (Exception e) { |
| | | quartzLog.setIsSuccess(-1); |