|
@@ -343,7 +343,7 @@ public class AutomaticPay {
|
|
|
*/
|
|
|
private void updateTbBusinessCar(TbBusinessCar car) {
|
|
|
if (car == null) return;
|
|
|
- car.setPay(1).setPayTime(new Date());
|
|
|
+ car.setPay(1).setPayTime(new Date()).setPayType(TbBusinessCar.PayTypeEnum.HAS_PAY_TYPE.getType());
|
|
|
car.updateById();
|
|
|
}
|
|
|
|
|
@@ -562,7 +562,7 @@ public class AutomaticPay {
|
|
|
private boolean isExistTask(String businessId, String plate) {
|
|
|
String key = getRedisKey(businessId, plate);
|
|
|
if (NbUtil.isNullStr(RedisUtil.get(key))) {
|
|
|
- RedisUtil.setByMINUTES(key, key, 5);
|
|
|
+ RedisUtil.setBySECONDS(key, key, 5);
|
|
|
return false;
|
|
|
}
|
|
|
return true;
|