yb
2 天以前 a3eb8b1a4f9fc1e28fcbf38024cdefb5b60dbdee
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);