预览模式问题
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
<configuration>
|
||||
<source>21</source>
|
||||
<target>21</target>
|
||||
<compilerArgs>--enable-preview</compilerArgs>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
||||
@@ -201,7 +201,8 @@ public class ShopCouponServiceImpl extends ServiceImpl<ShopCouponMapper, ShopCou
|
||||
if (StrUtil.isNotBlank(tbShopCoupon.getUseDays())) {
|
||||
String[] split = tbShopCoupon.getUseDays().split(",");
|
||||
if (split.length != 7) {
|
||||
useRestrictions = new StringBuilder(STR."\{tbShopCoupon.getUseDays()} ");
|
||||
// useRestrictions = new StringBuilder(STR."\{tbShopCoupon.getUseDays()} ");
|
||||
useRestrictions = new StringBuilder(tbShopCoupon.getUseDays() + " ");
|
||||
}
|
||||
if (!tbShopCoupon.getUseDays().contains(week)) {
|
||||
isUse = false;
|
||||
@@ -222,8 +223,8 @@ public class ShopCouponServiceImpl extends ServiceImpl<ShopCouponMapper, ShopCou
|
||||
isUse = false;
|
||||
}
|
||||
}
|
||||
useRestrictions.append(
|
||||
STR."\{startTime.format(formatter)}-\{endTime.format(formatter)}");
|
||||
// useRestrictions.append(STR."\{startTime.format(formatter)}-\{endTime.format(formatter)}");
|
||||
useRestrictions.append(startTime.format(formatter) + "-" + endTime.format(formatter));
|
||||
} else {
|
||||
useRestrictions.append("全时段");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user