|
@@ -58,12 +58,12 @@ public class MercFeeCountMonthJob {
|
|
|
public ReturnT<String> monthJob(String date) {
|
|
|
//获取上个月
|
|
|
DateTime lastMonth = DateUtil.lastMonth();
|
|
|
- String queryDay = DateUtil.format(lastMonth, DatePattern.PURE_DATE_PATTERN);
|
|
|
+ String queryDay = DateUtil.format(lastMonth, DatePattern.SIMPLE_MONTH_PATTERN);
|
|
|
if (StrUtil.isNotEmpty(date)) {
|
|
|
queryDay = date;
|
|
|
//指定日期需要判断是否重复执行
|
|
|
MercFeeCountMonthDto.SelectList selectList = new MercFeeCountMonthDto.SelectList();
|
|
|
- selectList.setDateValue(Integer.valueOf(queryDay));
|
|
|
+ selectList.setDateValue(Integer.valueOf(DateUtil.format(lastMonth, DatePattern.PURE_DATE_PATTERN)));
|
|
|
List<MercFeeCountMonthDto.Vo> vos = R.feignCheckData(mercFeeCountMonthService.list(selectList));
|
|
|
if (CollUtil.isNotEmpty(vos)) {
|
|
|
throw new CommRuntimeException("已存在日期【" + date + "】的数据,请勿重复执行!");
|