|
@@ -30,6 +30,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
import java.io.UnsupportedEncodingException;
|
|
import java.io.UnsupportedEncodingException;
|
|
|
|
+import java.math.BigDecimal;
|
|
import java.net.URLDecoder;
|
|
import java.net.URLDecoder;
|
|
import java.net.URLEncoder;
|
|
import java.net.URLEncoder;
|
|
import java.util.*;
|
|
import java.util.*;
|
|
@@ -107,7 +108,7 @@ public class NotifyApiController {
|
|
gradeBatch.setStatus(GradeAnalyzePaperStatusEnum.FINISH_CALCULATE);
|
|
gradeBatch.setStatus(GradeAnalyzePaperStatusEnum.FINISH_CALCULATE);
|
|
}
|
|
}
|
|
if (Objects.nonNull(calculateNotifyResult.getProgress())) {
|
|
if (Objects.nonNull(calculateNotifyResult.getProgress())) {
|
|
- gradeBatch.setProgress(calculateNotifyResult.getProgress());
|
|
|
|
|
|
+ gradeBatch.setProgress(calculateNotifyResult.getProgress().multiply(SystemConstant.PERCENT).setScale(2, BigDecimal.ROUND_HALF_UP));
|
|
}
|
|
}
|
|
gradeBatch.setNotifyTime(System.currentTimeMillis());
|
|
gradeBatch.setNotifyTime(System.currentTimeMillis());
|
|
if (Objects.nonNull(calculateNotifyResult.getResult())) {
|
|
if (Objects.nonNull(calculateNotifyResult.getResult())) {
|