Commit 097485fb by YG8999

bug修复

parent c62b93ff
...@@ -43,11 +43,8 @@ public class SOrderController extends BaseController ...@@ -43,11 +43,8 @@ public class SOrderController extends BaseController
{ {
@Autowired @Autowired
private ISOrderService sOrderService; private ISOrderService sOrderService;
@Autowired @Autowired
private RedisUtil redisUtil; private RedisUtil redisUtil;
@Autowired
private DeviceLogService deviceLogService;
/** /**
* 查询订单列表 * 查询订单列表
......
...@@ -61,8 +61,8 @@ public class SStoreController extends BaseController ...@@ -61,8 +61,8 @@ public class SStoreController extends BaseController
* 查询门店列表 * 查询门店列表
*/ */
@ApiOperation(value = "按距离排序查询门店列表") @ApiOperation(value = "按距离排序查询门店列表")
@RequestMapping(value = "/listVo", method = RequestMethod.POST) @RequestMapping(value = "/listVo", method = RequestMethod.GET)
public R<List<SStoreVo>> listVo(@RequestBody SStoreRequest request) public R<List<SStoreVo>> listVo( SStoreRequest request)
{ {
startPage(); startPage();
return R.ok(sStoreService.listVo(request)); return R.ok(sStoreService.listVo(request));
......
...@@ -35,8 +35,8 @@ public class SCleanRecords extends BaseEntity ...@@ -35,8 +35,8 @@ public class SCleanRecords extends BaseEntity
private Long consumerId; private Long consumerId;
/** 开始时间 */ /** 开始时间 */
@JsonFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd") @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date startDate; private Date startDate;
/** 保洁前照片 */ /** 保洁前照片 */
...@@ -44,8 +44,8 @@ public class SCleanRecords extends BaseEntity ...@@ -44,8 +44,8 @@ public class SCleanRecords extends BaseEntity
private String startImage; private String startImage;
/** 结束时间 */ /** 结束时间 */
@JsonFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd") @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date endDate; private Date endDate;
/** 保洁后照片 */ /** 保洁后照片 */
......
...@@ -52,4 +52,6 @@ public class SStoreRequest implements Serializable { ...@@ -52,4 +52,6 @@ public class SStoreRequest implements Serializable {
@ApiModelProperty(value = "门店类型 1:标准店 2: 形象店 3:旗舰店") @ApiModelProperty(value = "门店类型 1:标准店 2: 形象店 3:旗舰店")
private String storeType; private String storeType;
} }
...@@ -186,6 +186,9 @@ public class SCleanRecordsServiceImpl implements ISCleanRecordsService ...@@ -186,6 +186,9 @@ public class SCleanRecordsServiceImpl implements ISCleanRecordsService
queryWrapper.eq(SCleanRecords::getStatus,0); queryWrapper.eq(SCleanRecords::getStatus,0);
queryWrapper.ge(SCleanRecords::getCreateTime, DateUtil.offsetMinute(DateUtil.date(), -30)); queryWrapper.ge(SCleanRecords::getCreateTime, DateUtil.offsetMinute(DateUtil.date(), -30));
List<SCleanRecords> list = sCleanRecordsMapper.selectList(queryWrapper); List<SCleanRecords> list = sCleanRecordsMapper.selectList(queryWrapper);
if (list.size() == 0) {
return Boolean.FALSE;
}
for (SCleanRecords sCleanRecords : list) { for (SCleanRecords sCleanRecords : list) {
sCleanRecords.setStatus(2); sCleanRecords.setStatus(2);
sCleanRecords.setStartDate(DateUtil.date()); sCleanRecords.setStartDate(DateUtil.date());
......
...@@ -148,6 +148,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme ...@@ -148,6 +148,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
break; break;
} }
} }
queryWrapper.orderByDesc(true, SOrder::getCreateTime);
List<SOrder> orders = baseMapper.selectList(queryWrapper); List<SOrder> orders = baseMapper.selectList(queryWrapper);
return convertDosToVos(orders); return convertDosToVos(orders);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment