|
@@ -78,6 +78,9 @@ public class FrontServiceImpl implements IFrontService {
|
|
|
@Autowired
|
|
|
private XsyFeedbackMapper xsyFeedbackMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private TXinyiMedicineAddRecordMapper xinyiMedicineAddRecordMapper;
|
|
|
+
|
|
|
@Override
|
|
|
public XinyiIndustrySimple countInfo() {
|
|
|
//查询基本的工业库数据
|
|
@@ -520,6 +523,19 @@ public class FrontServiceImpl implements IFrontService {
|
|
|
return this.xinyiIndustryMapper.smartAddCharListNew(dayBefore3Str, nowDateStr);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<TXinyiMedicineAddRecord> addMedicineRecordList(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 xinyiMedicineAddRecordMapper.selectByDateRange(dayBefore3Str, nowDateStr);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
// @Transactional(rollbackFor = Exception.class)
|
|
|
public List<AutoFeedback> configPredict(List<TJlPredict> tJlPredicts) {
|