序列化尝试4
生日有礼统计
This commit is contained in:
@@ -4,6 +4,8 @@ import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.io.IoUtil;
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.czg.CzgPayUtils;
|
||||
import com.czg.account.entity.ShopUser;
|
||||
import com.czg.account.service.ShopUserService;
|
||||
import com.czg.entity.CzgBaseRespParams;
|
||||
import com.czg.market.entity.MkShopConsumeDiscountRecord;
|
||||
import com.czg.market.service.MkDistributionUserService;
|
||||
@@ -38,6 +40,9 @@ import java.io.IOException;
|
||||
public class NotifyController {
|
||||
private static final String SUCCESS = "SUCCESS";
|
||||
|
||||
@Resource
|
||||
private ShopUserService shopUserService;
|
||||
|
||||
@Resource
|
||||
private OrderInfoCustomService orderInfoCustomService;
|
||||
@Resource
|
||||
@@ -52,9 +57,10 @@ public class NotifyController {
|
||||
private MkShopConsumeDiscountRecordService consumeDiscountRecordService;
|
||||
|
||||
@RequestMapping("clear")
|
||||
public String clear(@RequestParam Integer shopId) {
|
||||
consumeDiscountRecordService.remove(new QueryWrapper().eq(MkShopConsumeDiscountRecord::getShopId, shopId));
|
||||
orderInfoService.remove(new QueryWrapper().eq(OrderInfo::getShopId, shopId));
|
||||
public String clear() {
|
||||
shopUserService.updateChain().eq(ShopUser::getId, 127437).set(ShopUser::getAmount, 999);
|
||||
// consumeDiscountRecordService.remove(new QueryWrapper().eq(MkShopConsumeDiscountRecord::getShopId, shopId));
|
||||
// orderInfoService.remove(new QueryWrapper().eq(OrderInfo::getShopId, shopId));
|
||||
return "success";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user