yb
4 天以前 ec33a83aa39eedaf39675d4ef7be5f133f556846
lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/job/EquipmentMagnificationJob.java
@@ -18,7 +18,11 @@
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;
@@ -39,10 +43,11 @@
        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);