|
@@ -49,6 +49,15 @@ public class EcCouponServiceImpl extends ServiceImpl<EcCouponMapper, EcCoupon>
|
|
|
ecCoupon.setCreateTime(new Date());
|
|
|
ecCoupon.setFreeParking(addCoupon.getFreeParking());
|
|
|
Integer g =ecCoupon.getGiveTimes();
|
|
|
+// if(addCoupon.getStartTime()!=null&&addCoupon.getEndTime()!=null){
|
|
|
+// int i =addCoupon.getGiveTimes();
|
|
|
+// int j= (int)DateUtil.between(ecCoupon.getEndTime(),ecCoupon.getStartTime(), DateUnit.MINUTE);
|
|
|
+// if(i<j){
|
|
|
+// ecCoupon.setGiveTimes(j);
|
|
|
+// ecCoupon.setUpdateBy("update_system_error");
|
|
|
+// ecCoupon.setUpdateTime(new Date());
|
|
|
+// }
|
|
|
+// }
|
|
|
if(g==null){
|
|
|
g=0;
|
|
|
}
|