2022-03-17 15:22:30 +08:00

33 lines
1.0 KiB
Java

package com.tenwa.lease.app.quartzmession;
import com.amarsoft.are.util.StringFunction;
import com.base.util.QuartzUtil;
public class AutoFiveGradeClass {
private String curUserId;
public void setCurUserId(String curUserId) {
this.curUserId = curUserId;
}
public String execute() {
AutoFiveGradeClassification autoFive = new AutoFiveGradeClassification();
String startime = StringFunction.getTodayNow();
try {
String result = autoFive.autoFiveGradeClassification();
if (result == "success") {
QuartzUtil.insertLog(startime, "com.tenwa.lease.app.quartzmession.AutoFiveGradeClass", "success", "³É¹¦", curUserId);
return "success";
} else {
QuartzUtil.insertLog(startime, "com.tenwa.lease.app.quartzmession.AutoFiveGradeClass", "error", "ʧ°Ü", curUserId);
return "error";
}
} catch (Exception e) {
e.printStackTrace();
QuartzUtil.insertLog(startime, "com.tenwa.lease.app.quartzmession.AutoFiveGradeClass", "error", "ʧ°Ü", curUserId);
return "error";
}
}
}