|
@@ -507,6 +507,19 @@ public class FrontServiceImpl implements IFrontService {
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<MedicineChart> smartAddCharListNew(String timeBegin, String timeEnd) {
|
|
|
+ //日期兜底处理
|
|
|
+ Date nowDate = DateUtils.getNowDate();
|
|
|
+ Date dayBefore7 = DateUtils.plusDate(-7, nowDate);
|
|
|
+ //2024年09月13日17:02:59 支持前段自定义起止时间
|
|
|
+ //先用日期获取当天和前一天的数据,如果获取不到,则提示错误信息
|
|
|
+ String nowDateStr = StringUtils.isBlank(timeEnd) ? DateUtils.parseDateToStr(DateUtils.YYYYMMDD_TS, nowDate) : timeEnd;
|
|
|
+ String dayBefore3Str = StringUtils.isBlank(timeBegin) ? DateUtils.parseDateToStr(DateUtils.YYYYMMDD_TS, dayBefore7) : timeBegin;
|
|
|
+ return this.xinyiIndustryMapper.smartAddCharListNew(dayBefore3Str, nowDateStr);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
// @Transactional(rollbackFor = Exception.class)
|
|
|
public List<AutoFeedback> configPredict(List<TJlPredict> tJlPredicts) {
|
|
@@ -530,6 +543,8 @@ public class FrontServiceImpl implements IFrontService {
|
|
|
return autoFeedbackMapper.selectAutoFeedbackList(null);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
private void buildIndustryData(TXinyiIndustry industry, WorkOrderRes workOrderRes, WorkOrderReq workOrderReq) {
|
|
|
if(workOrderReq.getJsSlq())
|
|
|
workOrderRes.setJsSlq(DecimalUtils.getAbsAndScale(industry.getJsSlq(), 2));
|