用户积分 , 佣金账号
This commit is contained in:
47
doc/sql/pending/bladex_boot_public_blade_dict.sql
Normal file
47
doc/sql/pending/bladex_boot_public_blade_dict.sql
Normal file
@@ -0,0 +1,47 @@
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022144366122496002, 0, 'point_spend_type', '-1', '积分消费类型', 29, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022144416953266178, 2022144366122496002, 'point_spend_type', '1', '收入', 1, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022144450830659586, 2022144366122496002, 'point_spend_type', '2', '支出', 2, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022145522114621442, 0, 'benefit_point_source_type', '-1', '福利积分业务类型', 30, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022145600879456257, 2022145522114621442, 'benefit_point_source_type', '0', '福利包产出', 0, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022145655191498754, 2022145522114621442, 'benefit_point_source_type', '1', '福利包兑换', 1, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022145691790995458, 2022145522114621442, 'benefit_point_source_type', '2', '用户直推', 2, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022145736523247618, 2022145522114621442, 'benefit_point_source_type', '3', 'otc交易', 3, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022146929051836418, 0, 'cash_coupon_source_type', '-1', '现金券业务类型', 31, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022147076771028993, 2022146929051836418, 'cash_coupon_source_type', '0', '商城抽奖', 0, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022147174259236865, 2022146929051836418, 'cash_coupon_source_type', '1', '福利包兑换', 1, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022148656010371074, 0, 'user_point_source_type', '-1', '商城积分业务类型', 32, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022148779134164993, 2022148656010371074, 'user_point_source_type', '0', '商城订单', 0, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022148827624513537, 2022148656010371074, 'user_point_source_type', '1', '商城抽奖', 1, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022160176320638977, 2022145522114621442, 'benefit_point_source_type', '4', '后台划拨', 4, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022168620826193922, 0, 'commission_account_type', '-1', '佣金账户类型', 33, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022168687205249026, 2022168620826193922, 'commission_account_type', '0', '商品成本', 0, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022168737859858433, 2022168620826193922, 'commission_account_type', '1', '购买人获取用户积分', 1, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022168786408927233, 2022168620826193922, 'commission_account_type', '2', '直推人佣金', 2, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022168818386300929, 2022168620826193922, 'commission_account_type', '3', '运营佣金', 3, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022168849080217602, 2022168620826193922, 'commission_account_type', '4', '广告补贴', 4, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022168886443077634, 2022168620826193922, 'commission_account_type', '5', '服务商佣金', 5, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022168918445617153, 2022168620826193922, 'commission_account_type', '6', '极差代理佣金', 6, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022168952474005505, 2022168620826193922, 'commission_account_type', '7', '联创佣金', 7, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022170571915751426, 0, 'commission_ads_source_type', '-1', '广告佣金业务类型', 34, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022170678547542017, 2022170571915751426, 'commission_ads_source_type', '0', '商城订单', 0, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022170724420644865, 2022170571915751426, 'commission_ads_source_type', '1', '发放广告佣金', 1, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022171660174061569, 0, 'commission_agency_source_type', '-1', '极差代理佣金业务类型', 35, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022171729493323777, 2022171660174061569, 'commission_agency_source_type', '0', '商城订单', 0, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022171761542000641, 2022171660174061569, 'commission_agency_source_type', '1', '发放极差代理佣金', 1, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022173005106999297, 0, 'commission_co_creator_source_type', '-1', '联创佣金业务类型', 36, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022173358410002434, 2022173005106999297, 'commission_co_creator_source_type', '0', '商城订单', 0, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022173389028421634, 2022173005106999297, 'commission_co_creator_source_type', '1', '发放联创佣金', 1, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022174499617206273, 0, 'commission_direct_source_type', '-1', '直推佣金类型', 37, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022174589887016962, 2022174499617206273, 'commission_direct_source_type', '0', '商城订单', 0, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022174624280309762, 2022174499617206273, 'commission_direct_source_type', '1', '发放直推佣金', 1, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022175491679154178, 0, 'commission_goods_source_type', '-1', '商品成本业务类型', 38, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022175561182965762, 2022175491679154178, 'commission_goods_source_type', '0', '商城订单', 0, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022176216815595522, 0, 'commission_operation_source_type', '-1', '运营佣金业务类型', 39, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022176263162654722, 2022176216815595522, 'commission_operation_source_type', '0', '商城订单', 0, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022176296293462018, 2022176216815595522, 'commission_operation_source_type', '1', '发放运营佣金', 1, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022177524079489026, 0, 'commission_vendor_source_type', '-1', '服务商佣金业务类型', 40, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022177647001956354, 2022177524079489026, 'commission_vendor_source_type', '0', '商城订单', 0, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022177688496205826, 2022177524079489026, 'commission_vendor_source_type', '1', '发放服务商佣金', 1, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022178898150256642, 0, 'commission_userPoint_source_type', '-1', '商城用户积分佣金账户业务类型', 41, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022178954244878337, 2022178898150256642, 'commission_userPoint_source_type', '0', '商城订单', 0, '', 0, 1, 0);
|
||||
INSERT INTO blade_dict (id, parent_id, code, dict_key, dict_value, sort, remark, is_sealed, status, is_deleted) VALUES (2022178994120126465, 2022178898150256642, 'commission_userPoint_source_type', '1', '发放积分', 1, '', 0, 1, 0);
|
||||
76
doc/sql/pending/bladex_boot_public_blade_menu.sql
Normal file
76
doc/sql/pending/bladex_boot_public_blade_menu.sql
Normal file
@@ -0,0 +1,76 @@
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021905231566614529, 0, 'market', 'market', 'menu', '/market', 'iconfont iconicon_setting', 14, 1, null, 1, null, '', 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909592443203586, 2019338015981219841, 'commonCashCouponLog', '现金券流水', 'menu', '/common/commonCashCouponLog', null, 7, 1, 0, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909592443203587, 2021909592443203586, 'commonCashCouponLog_add', '新增', 'add', '/common/commonCashCouponLog/add', 'plus', 1, 2, 1, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909592443203588, 2021909592443203586, 'commonCashCouponLog_edit', '修改', 'edit', '/common/commonCashCouponLog/edit', 'form', 2, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909592443203589, 2021909592443203586, 'commonCashCouponLog_delete', '删除', 'delete', '/api/common/cash-coupon-log/remove', 'delete', 3, 2, 3, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909592443203590, 2021909592443203586, 'commonCashCouponLog_view', '查看', 'view', '/common/commonCashCouponLog/view', 'file-text', 4, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909593357561858, 2019338015981219841, 'commonUserPointLog', '商城积分流水', 'menu', '/common/commonUserPointLog', null, 8, 1, 0, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909593357561859, 2021909593357561858, 'commonUserPointLog_add', '新增', 'add', '/common/commonUserPointLog/add', 'plus', 1, 2, 1, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909593357561860, 2021909593357561858, 'commonUserPointLog_edit', '修改', 'edit', '/common/commonUserPointLog/edit', 'form', 2, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909593357561861, 2021909593357561858, 'commonUserPointLog_delete', '删除', 'delete', '/api/common/user-point-log/remove', 'delete', 3, 2, 3, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909593357561862, 2021909593357561858, 'commonUserPointLog_view', '查看', 'view', '/common/commonUserPointLog/view', 'file-text', 4, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909594070593538, 2019338015981219841, 'commonUserPoint', '商城积分', 'menu', '/common/commonUserPoint', null, 5, 1, 0, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909594070593539, 2021909594070593538, 'commonUserPoint_add', '新增', 'add', '/common/commonUserPoint/add', 'plus', 1, 2, 1, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909594070593540, 2021909594070593538, 'commonUserPoint_edit', '修改', 'edit', '/common/commonUserPoint/edit', 'form', 2, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909594070593541, 2021909594070593538, 'commonUserPoint_delete', '删除', 'delete', '/api/common/user-point/remove', 'delete', 3, 2, 3, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909594070593542, 2021909594070593538, 'commonUserPoint_view', '查看', 'view', '/common/commonUserPoint/view', 'file-text', 4, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909594792013825, 2019338015981219841, 'commonBenefitPoint', '福利值', 'menu', '/common/commonBenefitPoint', null, 3, 1, 0, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909594792013826, 2021909594792013825, 'commonBenefitPoint_add', '新增', 'add', '/common/commonBenefitPoint/add', 'plus', 1, 2, 1, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909594792013827, 2021909594792013825, 'commonBenefitPoint_edit', '修改', 'edit', '/common/commonBenefitPoint/edit', 'form', 2, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909594792013828, 2021909594792013825, 'commonBenefitPoint_delete', '删除', 'delete', '/api/common/benefit-point/remove', 'delete', 3, 2, 3, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909594792013829, 2021909594792013825, 'commonBenefitPoint_view', '查看', 'view', '/common/commonBenefitPoint/view', 'file-text', 4, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909595383410689, 2019338015981219841, 'commonBenefitPointLog', '福利值流水', 'menu', '/common/commonBenefitPointLog', null, 6, 1, 0, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909595383410690, 2021909595383410689, 'commonBenefitPointLog_add', '新增', 'add', '/common/commonBenefitPointLog/add', 'plus', 1, 2, 1, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909595383410691, 2021909595383410689, 'commonBenefitPointLog_edit', '修改', 'edit', '/common/commonBenefitPointLog/edit', 'form', 2, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909595383410692, 2021909595383410689, 'commonBenefitPointLog_delete', '删除', 'delete', '/api/common/benefit-point-log/remove', 'delete', 3, 2, 3, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909595383410693, 2021909595383410689, 'commonBenefitPointLog_view', '查看', 'view', '/common/commonBenefitPointLog/view', 'file-text', 4, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909595903504386, 2019338015981219841, 'commonCashCoupon', '现金券', 'menu', '/common/commonCashCoupon', null, 4, 1, 0, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909595903504387, 2021909595903504386, 'commonCashCoupon_add', '新增', 'add', '/common/commonCashCoupon/add', 'plus', 1, 2, 1, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909595903504388, 2021909595903504386, 'commonCashCoupon_edit', '修改', 'edit', '/common/commonCashCoupon/edit', 'form', 2, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909595903504389, 2021909595903504386, 'commonCashCoupon_delete', '删除', 'delete', '/api/common/cash-coupon/remove', 'delete', 3, 2, 3, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909595903504390, 2021909595903504386, 'commonCashCoupon_view', '查看', 'view', '/common/commonCashCoupon/view', 'file-text', 4, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909596490706945, 2021905231566614529, 'marketCommissionGoodsCostLog', '商品成本', 'menu', '/market/marketCommissionGoodsCostLog', null, 2, 1, 0, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909596490706946, 2021909596490706945, 'marketCommissionGoodsCostLog_add', '新增', 'add', '/market/marketCommissionGoodsCostLog/add', 'plus', 1, 2, 1, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909596490706947, 2021909596490706945, 'marketCommissionGoodsCostLog_edit', '修改', 'edit', '/market/marketCommissionGoodsCostLog/edit', 'form', 2, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909596490706948, 2021909596490706945, 'marketCommissionGoodsCostLog_delete', '删除', 'delete', '/api//market-commission/goods-cost-log/remove', 'delete', 3, 2, 3, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909596490706949, 2021909596490706945, 'marketCommissionGoodsCostLog_view', '查看', 'view', '/market/marketCommissionGoodsCostLog/view', 'file-text', 4, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909597145018369, 2021905231566614529, 'marketCommissionAccount', '佣金账户', 'menu', '/market/marketCommissionAccount', null, 1, 1, 0, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909597145018370, 2021909597145018369, 'marketCommissionAccount_add', '新增', 'add', '/market/marketCommissionAccount/add', 'plus', 1, 2, 1, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909597145018371, 2021909597145018369, 'marketCommissionAccount_edit', '修改', 'edit', '/market/marketCommissionAccount/edit', 'form', 2, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909597145018372, 2021909597145018369, 'marketCommissionAccount_delete', '删除', 'delete', '/api/market-commission/account/remove', 'delete', 3, 2, 3, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909597145018373, 2021909597145018369, 'marketCommissionAccount_view', '查看', 'view', '/market/marketCommissionAccount/view', 'file-text', 4, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909597740609537, 2021905231566614529, 'marketCommissionOperationLog', '运营佣金流水', 'menu', '/market/marketCommissionOperationLog', null, 9, 1, 0, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909597740609538, 2021909597740609537, 'marketCommissionOperationLog_add', '新增', 'add', '/market/marketCommissionOperationLog/add', 'plus', 1, 2, 1, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909597740609539, 2021909597740609537, 'marketCommissionOperationLog_edit', '修改', 'edit', '/market/marketCommissionOperationLog/edit', 'form', 2, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909597740609540, 2021909597740609537, 'marketCommissionOperationLog_delete', '删除', 'delete', '/api/market-commission/operation-log/remove', 'delete', 3, 2, 3, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909597740609541, 2021909597740609537, 'marketCommissionOperationLog_view', '查看', 'view', '/market/marketCommissionOperationLog/view', 'file-text', 4, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909598386532354, 2021905231566614529, 'marketCommissionServiceProviderLog', '服务商佣金流水', 'menu', '/market/marketCommissionServiceProviderLog', null, 6, 1, 0, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909598386532355, 2021909598386532354, 'marketCommissionServiceProviderLog_add', '新增', 'add', '/market/marketCommissionServiceProviderLog/add', 'plus', 1, 2, 1, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909598386532356, 2021909598386532354, 'marketCommissionServiceProviderLog_edit', '修改', 'edit', '/market/marketCommissionServiceProviderLog/edit', 'form', 2, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909598386532357, 2021909598386532354, 'marketCommissionServiceProviderLog_delete', '删除', 'delete', '/api/market-commission/service-provider-log/remove', 'delete', 3, 2, 3, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909598386532358, 2021909598386532354, 'marketCommissionServiceProviderLog_view', '查看', 'view', '/market/marketCommissionServiceProviderLog/view', 'file-text', 4, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909598906626049, 2021905231566614529, 'marketCommissionUserPointLog', '用户积分佣金流水', 'menu', '/market/marketCommissionUserPointLog', null, 3, 1, 0, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909598906626050, 2021909598906626049, 'marketCommissionUserPointLog_add', '新增', 'add', '/market/marketCommissionUserPointLog/add', 'plus', 1, 2, 1, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909598906626051, 2021909598906626049, 'marketCommissionUserPointLog_edit', '修改', 'edit', '/market/marketCommissionUserPointLog/edit', 'form', 2, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909598906626052, 2021909598906626049, 'marketCommissionUserPointLog_delete', '删除', 'delete', '/api/market-commission/user-point-log/remove', 'delete', 3, 2, 3, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909598906626053, 2021909598906626049, 'marketCommissionUserPointLog_view', '查看', 'view', '/market/marketCommissionUserPointLog/view', 'file-text', 4, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909599426719746, 2021905231566614529, 'marketCommissionAdvertisingLog', '广告补贴佣金流水', 'menu', '/market/marketCommissionAdvertisingLog', null, 4, 1, 0, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909599426719747, 2021909599426719746, 'marketCommissionAdvertisingLog_add', '新增', 'add', '/market/marketCommissionAdvertisingLog/add', 'plus', 1, 2, 1, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909599426719748, 2021909599426719746, 'marketCommissionAdvertisingLog_edit', '修改', 'edit', '/market/marketCommissionAdvertisingLog/edit', 'form', 2, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909599426719749, 2021909599426719746, 'marketCommissionAdvertisingLog_delete', '删除', 'delete', '/api/market-commission/advertising-log/remove', 'delete', 3, 2, 3, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909599426719750, 2021909599426719746, 'marketCommissionAdvertisingLog_view', '查看', 'view', '/market/marketCommissionAdvertisingLog/view', 'file-text', 4, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909600009728001, 2021905231566614529, 'marketCommissionAgencyLog', '极差代理佣金流水', 'menu', '/market/marketCommissionAgencyLog', null, 5, 1, 0, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909600009728002, 2021909600009728001, 'marketCommissionAgencyLog_add', '新增', 'add', '/market/marketCommissionAgencyLog/add', 'plus', 1, 2, 1, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909600009728003, 2021909600009728001, 'marketCommissionAgencyLog_edit', '修改', 'edit', '/market/marketCommissionAgencyLog/edit', 'form', 2, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909600009728004, 2021909600009728001, 'marketCommissionAgencyLog_delete', '删除', 'delete', '/api/market-commission/agency-log/remove', 'delete', 3, 2, 3, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909600009728005, 2021909600009728001, 'marketCommissionAgencyLog_view', '查看', 'view', '/market/marketCommissionAgencyLog/view', 'file-text', 4, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909600664039426, 2021905231566614529, 'marketCommissionCoCreatorLog', '联创佣金流水', 'menu', '/market/marketCommissionCoCreatorLog', null, 7, 1, 0, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909600664039427, 2021909600664039426, 'marketCommissionCoCreatorLog_add', '新增', 'add', '/market/marketCommissionCoCreatorLog/add', 'plus', 1, 2, 1, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909600664039428, 2021909600664039426, 'marketCommissionCoCreatorLog_edit', '修改', 'edit', '/market/marketCommissionCoCreatorLog/edit', 'form', 2, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909600664039429, 2021909600664039426, 'marketCommissionCoCreatorLog_delete', '删除', 'delete', '/api/market-commission/cocreator-log/remove', 'delete', 3, 2, 3, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909600664039430, 2021909600664039426, 'marketCommissionCoCreatorLog_view', '查看', 'view', '/market/marketCommissionCoCreatorLog/view', 'file-text', 4, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909601184133122, 2021905231566614529, 'marketCommissionDirectPushLog', '直推佣金流水', 'menu', '/market/marketCommissionDirectPushLog', null, 8, 1, 0, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909601184133123, 2021909601184133122, 'marketCommissionDirectPushLog_add', '新增', 'add', '/market/marketCommissionDirectPushLog/add', 'plus', 1, 2, 1, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909601184133124, 2021909601184133122, 'marketCommissionDirectPushLog_edit', '修改', 'edit', '/market/marketCommissionDirectPushLog/edit', 'form', 2, 2, 2, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909601184133125, 2021909601184133122, 'marketCommissionDirectPushLog_delete', '删除', 'delete', '/api/market-commission/direct-push-log/remove', 'delete', 3, 2, 3, 1, null, null, 0);
|
||||
INSERT INTO blade_menu (id, parent_id, code, name, alias, path, source, sort, category, action, is_open, component, remark, is_deleted) VALUES (2021909601184133126, 2021909601184133122, 'marketCommissionDirectPushLog_view', '查看', 'view', '/market/marketCommissionDirectPushLog/view', 'file-text', 4, 2, 2, 1, null, null, 0);
|
||||
@@ -20,6 +20,8 @@ create table market_commission_account
|
||||
|
||||
create index idx_mca_code
|
||||
on market_commission_account (account_code);
|
||||
create index idx_mca_type
|
||||
on market_commission_account (account_type);
|
||||
|
||||
comment on table market_commission_account is '用户佣金账户表';
|
||||
comment on column market_commission_account.id is '主键';
|
||||
|
||||
@@ -10,14 +10,14 @@ import lombok.AllArgsConstructor;
|
||||
import org.springblade.core.mp.support.Condition;
|
||||
import org.springblade.core.mp.support.Query;
|
||||
import org.springblade.core.tool.api.R;
|
||||
import org.springblade.modules.api.request.AddressRemoveRequest;
|
||||
import org.springblade.modules.api.request.AddressSubmitRequest;
|
||||
import org.springblade.modules.api.request.CreateOrderRequest;
|
||||
import org.springblade.modules.api.request.PaymentRequest;
|
||||
import org.springblade.modules.api.response.CreateOrderResponse;
|
||||
import org.springblade.modules.api.response.PaymentResponse;
|
||||
import org.springblade.modules.api.vo.CommonUserNoticeApiVO;
|
||||
import org.springblade.modules.api.vo.CommonUserNoticeDetailApiVO;
|
||||
import org.springblade.modules.api.vo.CommonUserOrderApiVO;
|
||||
import org.springblade.modules.api.vo.CommonUserOrderDetailApiVO;
|
||||
import org.springblade.modules.api.vo.*;
|
||||
import org.springblade.modules.common.service.ICommonUserAddressService;
|
||||
import org.springblade.modules.common.service.ICommonUserOrderService;
|
||||
import org.springblade.modules.common.service.ICommonUserNoticeService;
|
||||
import org.springblade.modules.system.service.IUserService;
|
||||
@@ -38,6 +38,8 @@ public class APPUserController {
|
||||
|
||||
private final ICommonUserNoticeService userNoticeService;
|
||||
|
||||
private final ICommonUserAddressService addressService;
|
||||
|
||||
|
||||
/**
|
||||
* 是否修改过密码
|
||||
@@ -143,4 +145,30 @@ public class APPUserController {
|
||||
return R.data(userNoticeService.appUnreadNoticeNum());
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/user-address")
|
||||
@ApiOperationSupport(order = 11)
|
||||
@Operation(summary = "用户收货地址", description = "传入userAddressVO")
|
||||
public R<List<CommonUserAddressApiVO>> addressList(Query query) {
|
||||
return R.data(addressService.selectAddressList(Condition.getPage(query), new CommonUserAddressApiVO()));
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/submit-address")
|
||||
@ApiOperationSupport(order = 12)
|
||||
@Operation(summary = "提交用户收货地址", description = "传入AddressSubmitRequest")
|
||||
public R<Boolean> submitAddress(@Valid @RequestBody AddressSubmitRequest request) {
|
||||
return R.status( addressService.submitAddress(request));
|
||||
}
|
||||
|
||||
|
||||
@DeleteMapping("/delete-address")
|
||||
@ApiOperationSupport(order = 13)
|
||||
@Operation(summary = "删除用户收货地址", description = "传入id")
|
||||
public R<Boolean> removeAddress(@Valid @RequestBody AddressRemoveRequest request) {
|
||||
return R.status( addressService.removeAddress(request.getIds()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
package org.springblade.modules.api.request;
|
||||
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class AddressRemoveRequest implements Serializable {
|
||||
|
||||
@NotEmpty(message = "至少选择一条地址")
|
||||
private List<Long> ids;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package org.springblade.modules.api.request;
|
||||
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class AddressSubmitRequest implements Serializable {
|
||||
|
||||
private Long id;
|
||||
|
||||
@NotNull(message = "请选择地区")
|
||||
private Integer regionsInfoId;
|
||||
|
||||
@NotEmpty(message = "详细地址必填")
|
||||
private String detail;
|
||||
|
||||
@NotEmpty(message = "联系人必填")
|
||||
private String consignee;
|
||||
|
||||
@NotEmpty(message = "手机号必填")
|
||||
private String phone;
|
||||
|
||||
@NotNull(message = "是否默认必选")
|
||||
private Integer isDefault;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.api.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
@Data
|
||||
public class CommonUserAddressApiVO implements Serializable {
|
||||
|
||||
private Long id;
|
||||
|
||||
private Long regionsInfoId;
|
||||
|
||||
private String province;
|
||||
|
||||
private String city;
|
||||
|
||||
private String district;
|
||||
|
||||
private String street;
|
||||
|
||||
private String detail;
|
||||
|
||||
private String consignee;
|
||||
|
||||
private String phone;
|
||||
|
||||
private Integer isDefault;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package org.springblade.modules.api.vo;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.springblade.core.tool.utils.StringPool;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class FullRegionInfoVO implements Serializable {
|
||||
|
||||
private Integer currentLevel = -1;
|
||||
|
||||
private String street = StringPool.EMPTY;
|
||||
|
||||
private String district = StringPool.EMPTY;
|
||||
|
||||
private String city = StringPool.EMPTY;
|
||||
|
||||
private String province = StringPool.EMPTY;
|
||||
|
||||
private Long streetId = -1L;
|
||||
|
||||
private Long districtId = -1L;
|
||||
|
||||
private Long cityId = -1L;
|
||||
|
||||
private Long provinceId = -1L;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
package org.springblade.modules.common.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||
import lombok.AllArgsConstructor;
|
||||
import jakarta.validation.Valid;
|
||||
|
||||
import org.springblade.core.mp.support.Condition;
|
||||
import org.springblade.core.mp.support.Query;
|
||||
import org.springblade.core.tool.api.R;
|
||||
import org.springblade.core.tool.utils.Func;
|
||||
import org.springblade.modules.common.manager.CommonUserPointManager;
|
||||
import org.springblade.modules.common.request.GiveBenefitPointRequest;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.modules.common.pojo.entity.CommonBenefitPointEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonBenefitPointVO;
|
||||
import org.springblade.modules.common.wrapper.CommonBenefitPointWrapper;
|
||||
import org.springblade.modules.common.service.ICommonBenefitPointService;
|
||||
import org.springblade.core.boot.ctrl.BladeController;
|
||||
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 用户福利值表 控制器
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/common/benefit-point")
|
||||
@Tag(name = "用户福利值表", description = "用户福利值表接口")
|
||||
public class CommonBenefitPointController extends BladeController {
|
||||
|
||||
private final ICommonBenefitPointService commonBenefitPointService;
|
||||
private final CommonUserPointManager commonUserPointManager;
|
||||
|
||||
/**
|
||||
* 用户福利值表 详情
|
||||
*/
|
||||
@GetMapping("/detail")
|
||||
@ApiOperationSupport(order = 1)
|
||||
@Operation(summary = "详情", description = "传入commonBenefitPoint")
|
||||
public R<CommonBenefitPointVO> detail(CommonBenefitPointEntity commonBenefitPoint) {
|
||||
CommonBenefitPointEntity detail = commonBenefitPointService.getOne(Condition.getQueryWrapper(commonBenefitPoint));
|
||||
return R.data(CommonBenefitPointWrapper.build().entityVO(detail));
|
||||
}
|
||||
/**
|
||||
* 用户福利值表 分页
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperationSupport(order = 2)
|
||||
@Operation(summary = "分页", description = "传入commonBenefitPoint")
|
||||
public R<IPage<CommonBenefitPointVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> commonBenefitPoint, Query query) {
|
||||
IPage<CommonBenefitPointEntity> pages = commonBenefitPointService.page(Condition.getPage(query), Condition.getQueryWrapper(commonBenefitPoint, CommonBenefitPointEntity.class));
|
||||
return R.data(CommonBenefitPointWrapper.build().pageVO(pages));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户福利值表 自定义分页
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@ApiOperationSupport(order = 3)
|
||||
@Operation(summary = "分页", description = "传入commonBenefitPoint")
|
||||
public R<IPage<CommonBenefitPointVO>> page(CommonBenefitPointVO commonBenefitPoint, Query query) {
|
||||
IPage<CommonBenefitPointVO> pages = commonBenefitPointService.selectCommonBenefitPointPage(Condition.getPage(query), commonBenefitPoint);
|
||||
return R.data(pages);
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户福利值表 新增
|
||||
*/
|
||||
@PostMapping("/save")
|
||||
@ApiOperationSupport(order = 4)
|
||||
@Operation(summary = "新增", description = "传入commonBenefitPoint")
|
||||
public R save(@Valid @RequestBody CommonBenefitPointEntity commonBenefitPoint) {
|
||||
return R.status(commonBenefitPointService.save(commonBenefitPoint));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户福利值表 修改
|
||||
*/
|
||||
@PostMapping("/update")
|
||||
@ApiOperationSupport(order = 5)
|
||||
@Operation(summary = "修改", description = "传入commonBenefitPoint")
|
||||
public R update(@Valid @RequestBody CommonBenefitPointEntity commonBenefitPoint) {
|
||||
return R.status(commonBenefitPointService.updateById(commonBenefitPoint));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户福利值表 新增或修改
|
||||
*/
|
||||
@PostMapping("/submit")
|
||||
@ApiOperationSupport(order = 6)
|
||||
@Operation(summary = "新增或修改", description = "传入commonBenefitPoint")
|
||||
public R submit(@Valid @RequestBody CommonBenefitPointEntity commonBenefitPoint) {
|
||||
return R.status(commonBenefitPointService.saveOrUpdate(commonBenefitPoint));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户福利值表 删除
|
||||
*/
|
||||
@PostMapping("/remove")
|
||||
@ApiOperationSupport(order = 7)
|
||||
@Operation(summary = "逻辑删除", description = "传入ids")
|
||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
|
||||
return R.status(commonBenefitPointService.deleteLogic(Func.toLongList(ids)));
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/giveBenefitPoint")
|
||||
@ApiOperationSupport(order = 8)
|
||||
@Operation(summary = "划拨福利积分", description = "传入request")
|
||||
public R giveBenefitPoint(@RequestBody GiveBenefitPointRequest request) {
|
||||
return R.status(commonUserPointManager.giveBenefitPoint(request));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
package org.springblade.modules.common.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||
import lombok.AllArgsConstructor;
|
||||
import jakarta.validation.Valid;
|
||||
|
||||
import org.springblade.core.secure.BladeUser;
|
||||
import org.springblade.core.secure.annotation.IsAdmin;
|
||||
import org.springblade.core.mp.support.Condition;
|
||||
import org.springblade.core.mp.support.Query;
|
||||
import org.springblade.core.tool.api.R;
|
||||
import org.springblade.core.tool.utils.Func;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.modules.common.pojo.entity.CommonBenefitPointLogEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonBenefitPointLogVO;
|
||||
import org.springblade.modules.common.wrapper.CommonBenefitPointLogWrapper;
|
||||
import org.springblade.modules.common.service.ICommonBenefitPointLogService;
|
||||
import org.springblade.core.boot.ctrl.BladeController;
|
||||
import org.springblade.core.tool.utils.DateUtil;
|
||||
import org.springblade.core.excel.util.ExcelUtil;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
|
||||
/**
|
||||
* 用户福利值流水表 控制器
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/common/benefit-point-log")
|
||||
@Tag(name = "用户福利值流水表", description = "用户福利值流水表接口")
|
||||
public class CommonBenefitPointLogController extends BladeController {
|
||||
|
||||
private final ICommonBenefitPointLogService commonBenefitPointLogService;
|
||||
|
||||
/**
|
||||
* 用户福利值流水表 详情
|
||||
*/
|
||||
@GetMapping("/detail")
|
||||
@ApiOperationSupport(order = 1)
|
||||
@Operation(summary = "详情", description = "传入commonBenefitPointLog")
|
||||
public R<CommonBenefitPointLogVO> detail(CommonBenefitPointLogEntity commonBenefitPointLog) {
|
||||
CommonBenefitPointLogEntity detail = commonBenefitPointLogService.getOne(Condition.getQueryWrapper(commonBenefitPointLog));
|
||||
return R.data(CommonBenefitPointLogWrapper.build().entityVO(detail));
|
||||
}
|
||||
/**
|
||||
* 用户福利值流水表 分页
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperationSupport(order = 2)
|
||||
@Operation(summary = "分页", description = "传入commonBenefitPointLog")
|
||||
public R<IPage<CommonBenefitPointLogVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> commonBenefitPointLog, Query query) {
|
||||
IPage<CommonBenefitPointLogEntity> pages = commonBenefitPointLogService.page(Condition.getPage(query), Condition.getQueryWrapper(commonBenefitPointLog, CommonBenefitPointLogEntity.class));
|
||||
return R.data(CommonBenefitPointLogWrapper.build().pageVO(pages));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户福利值流水表 自定义分页
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@ApiOperationSupport(order = 3)
|
||||
@Operation(summary = "分页", description = "传入commonBenefitPointLog")
|
||||
public R<IPage<CommonBenefitPointLogVO>> page(CommonBenefitPointLogVO commonBenefitPointLog, Query query) {
|
||||
IPage<CommonBenefitPointLogVO> pages = commonBenefitPointLogService.selectCommonBenefitPointLogPage(Condition.getPage(query), commonBenefitPointLog);
|
||||
return R.data(pages);
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户福利值流水表 新增
|
||||
*/
|
||||
@PostMapping("/save")
|
||||
@ApiOperationSupport(order = 4)
|
||||
@Operation(summary = "新增", description = "传入commonBenefitPointLog")
|
||||
public R save(@Valid @RequestBody CommonBenefitPointLogEntity commonBenefitPointLog) {
|
||||
return R.status(commonBenefitPointLogService.save(commonBenefitPointLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户福利值流水表 修改
|
||||
*/
|
||||
@PostMapping("/update")
|
||||
@ApiOperationSupport(order = 5)
|
||||
@Operation(summary = "修改", description = "传入commonBenefitPointLog")
|
||||
public R update(@Valid @RequestBody CommonBenefitPointLogEntity commonBenefitPointLog) {
|
||||
return R.status(commonBenefitPointLogService.updateById(commonBenefitPointLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户福利值流水表 新增或修改
|
||||
*/
|
||||
@PostMapping("/submit")
|
||||
@ApiOperationSupport(order = 6)
|
||||
@Operation(summary = "新增或修改", description = "传入commonBenefitPointLog")
|
||||
public R submit(@Valid @RequestBody CommonBenefitPointLogEntity commonBenefitPointLog) {
|
||||
return R.status(commonBenefitPointLogService.saveOrUpdate(commonBenefitPointLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户福利值流水表 删除
|
||||
*/
|
||||
@PostMapping("/remove")
|
||||
@ApiOperationSupport(order = 7)
|
||||
@Operation(summary = "逻辑删除", description = "传入ids")
|
||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
|
||||
return R.status(commonBenefitPointLogService.deleteLogic(Func.toLongList(ids)));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
package org.springblade.modules.common.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||
import lombok.AllArgsConstructor;
|
||||
import jakarta.validation.Valid;
|
||||
|
||||
import org.springblade.core.secure.BladeUser;
|
||||
import org.springblade.core.secure.annotation.IsAdmin;
|
||||
import org.springblade.core.mp.support.Condition;
|
||||
import org.springblade.core.mp.support.Query;
|
||||
import org.springblade.core.tool.api.R;
|
||||
import org.springblade.core.tool.utils.Func;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.modules.common.pojo.entity.CommonCashCouponEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonCashCouponVO;
|
||||
import org.springblade.modules.common.wrapper.CommonCashCouponWrapper;
|
||||
import org.springblade.modules.common.service.ICommonCashCouponService;
|
||||
import org.springblade.core.boot.ctrl.BladeController;
|
||||
import org.springblade.core.tool.utils.DateUtil;
|
||||
import org.springblade.core.excel.util.ExcelUtil;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
|
||||
/**
|
||||
* 用户现金券表 控制器
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/common/cash-coupon")
|
||||
@Tag(name = "用户现金券表", description = "用户现金券表接口")
|
||||
public class CommonCashCouponController extends BladeController {
|
||||
|
||||
private final ICommonCashCouponService commonCashCouponService;
|
||||
|
||||
/**
|
||||
* 用户现金券表 详情
|
||||
*/
|
||||
@GetMapping("/detail")
|
||||
@ApiOperationSupport(order = 1)
|
||||
@Operation(summary = "详情", description = "传入commonCashCoupon")
|
||||
public R<CommonCashCouponVO> detail(CommonCashCouponEntity commonCashCoupon) {
|
||||
CommonCashCouponEntity detail = commonCashCouponService.getOne(Condition.getQueryWrapper(commonCashCoupon));
|
||||
return R.data(CommonCashCouponWrapper.build().entityVO(detail));
|
||||
}
|
||||
/**
|
||||
* 用户现金券表 分页
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperationSupport(order = 2)
|
||||
@Operation(summary = "分页", description = "传入commonCashCoupon")
|
||||
public R<IPage<CommonCashCouponVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> commonCashCoupon, Query query) {
|
||||
IPage<CommonCashCouponEntity> pages = commonCashCouponService.page(Condition.getPage(query), Condition.getQueryWrapper(commonCashCoupon, CommonCashCouponEntity.class));
|
||||
return R.data(CommonCashCouponWrapper.build().pageVO(pages));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户现金券表 自定义分页
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@ApiOperationSupport(order = 3)
|
||||
@Operation(summary = "分页", description = "传入commonCashCoupon")
|
||||
public R<IPage<CommonCashCouponVO>> page(CommonCashCouponVO commonCashCoupon, Query query) {
|
||||
IPage<CommonCashCouponVO> pages = commonCashCouponService.selectCommonCashCouponPage(Condition.getPage(query), commonCashCoupon);
|
||||
return R.data(pages);
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户现金券表 新增
|
||||
*/
|
||||
@PostMapping("/save")
|
||||
@ApiOperationSupport(order = 4)
|
||||
@Operation(summary = "新增", description = "传入commonCashCoupon")
|
||||
public R save(@Valid @RequestBody CommonCashCouponEntity commonCashCoupon) {
|
||||
return R.status(commonCashCouponService.save(commonCashCoupon));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户现金券表 修改
|
||||
*/
|
||||
@PostMapping("/update")
|
||||
@ApiOperationSupport(order = 5)
|
||||
@Operation(summary = "修改", description = "传入commonCashCoupon")
|
||||
public R update(@Valid @RequestBody CommonCashCouponEntity commonCashCoupon) {
|
||||
return R.status(commonCashCouponService.updateById(commonCashCoupon));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户现金券表 新增或修改
|
||||
*/
|
||||
@PostMapping("/submit")
|
||||
@ApiOperationSupport(order = 6)
|
||||
@Operation(summary = "新增或修改", description = "传入commonCashCoupon")
|
||||
public R submit(@Valid @RequestBody CommonCashCouponEntity commonCashCoupon) {
|
||||
return R.status(commonCashCouponService.saveOrUpdate(commonCashCoupon));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户现金券表 删除
|
||||
*/
|
||||
@PostMapping("/remove")
|
||||
@ApiOperationSupport(order = 7)
|
||||
@Operation(summary = "逻辑删除", description = "传入ids")
|
||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
|
||||
return R.status(commonCashCouponService.deleteLogic(Func.toLongList(ids)));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
package org.springblade.modules.common.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||
import lombok.AllArgsConstructor;
|
||||
import jakarta.validation.Valid;
|
||||
|
||||
import org.springblade.core.secure.BladeUser;
|
||||
import org.springblade.core.secure.annotation.IsAdmin;
|
||||
import org.springblade.core.mp.support.Condition;
|
||||
import org.springblade.core.mp.support.Query;
|
||||
import org.springblade.core.tool.api.R;
|
||||
import org.springblade.core.tool.utils.Func;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.modules.common.pojo.entity.CommonCashCouponLogEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonCashCouponLogVO;
|
||||
import org.springblade.modules.common.wrapper.CommonCashCouponLogWrapper;
|
||||
import org.springblade.modules.common.service.ICommonCashCouponLogService;
|
||||
import org.springblade.core.boot.ctrl.BladeController;
|
||||
import org.springblade.core.tool.utils.DateUtil;
|
||||
import org.springblade.core.excel.util.ExcelUtil;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
|
||||
/**
|
||||
* 用户现金券流水表 控制器
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/common/cash-coupon-log")
|
||||
@Tag(name = "用户现金券流水表", description = "用户现金券流水表接口")
|
||||
public class CommonCashCouponLogController extends BladeController {
|
||||
|
||||
private final ICommonCashCouponLogService commonCashCouponLogService;
|
||||
|
||||
/**
|
||||
* 用户现金券流水表 详情
|
||||
*/
|
||||
@GetMapping("/detail")
|
||||
@ApiOperationSupport(order = 1)
|
||||
@Operation(summary = "详情", description = "传入commonCashCouponLog")
|
||||
public R<CommonCashCouponLogVO> detail(CommonCashCouponLogEntity commonCashCouponLog) {
|
||||
CommonCashCouponLogEntity detail = commonCashCouponLogService.getOne(Condition.getQueryWrapper(commonCashCouponLog));
|
||||
return R.data(CommonCashCouponLogWrapper.build().entityVO(detail));
|
||||
}
|
||||
/**
|
||||
* 用户现金券流水表 分页
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperationSupport(order = 2)
|
||||
@Operation(summary = "分页", description = "传入commonCashCouponLog")
|
||||
public R<IPage<CommonCashCouponLogVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> commonCashCouponLog, Query query) {
|
||||
IPage<CommonCashCouponLogEntity> pages = commonCashCouponLogService.page(Condition.getPage(query), Condition.getQueryWrapper(commonCashCouponLog, CommonCashCouponLogEntity.class));
|
||||
return R.data(CommonCashCouponLogWrapper.build().pageVO(pages));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户现金券流水表 自定义分页
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@ApiOperationSupport(order = 3)
|
||||
@Operation(summary = "分页", description = "传入commonCashCouponLog")
|
||||
public R<IPage<CommonCashCouponLogVO>> page(CommonCashCouponLogVO commonCashCouponLog, Query query) {
|
||||
IPage<CommonCashCouponLogVO> pages = commonCashCouponLogService.selectCommonCashCouponLogPage(Condition.getPage(query), commonCashCouponLog);
|
||||
return R.data(pages);
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户现金券流水表 新增
|
||||
*/
|
||||
@PostMapping("/save")
|
||||
@ApiOperationSupport(order = 4)
|
||||
@Operation(summary = "新增", description = "传入commonCashCouponLog")
|
||||
public R save(@Valid @RequestBody CommonCashCouponLogEntity commonCashCouponLog) {
|
||||
return R.status(commonCashCouponLogService.save(commonCashCouponLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户现金券流水表 修改
|
||||
*/
|
||||
@PostMapping("/update")
|
||||
@ApiOperationSupport(order = 5)
|
||||
@Operation(summary = "修改", description = "传入commonCashCouponLog")
|
||||
public R update(@Valid @RequestBody CommonCashCouponLogEntity commonCashCouponLog) {
|
||||
return R.status(commonCashCouponLogService.updateById(commonCashCouponLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户现金券流水表 新增或修改
|
||||
*/
|
||||
@PostMapping("/submit")
|
||||
@ApiOperationSupport(order = 6)
|
||||
@Operation(summary = "新增或修改", description = "传入commonCashCouponLog")
|
||||
public R submit(@Valid @RequestBody CommonCashCouponLogEntity commonCashCouponLog) {
|
||||
return R.status(commonCashCouponLogService.saveOrUpdate(commonCashCouponLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户现金券流水表 删除
|
||||
*/
|
||||
@PostMapping("/remove")
|
||||
@ApiOperationSupport(order = 7)
|
||||
@Operation(summary = "逻辑删除", description = "传入ids")
|
||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
|
||||
return R.status(commonCashCouponLogService.deleteLogic(Func.toLongList(ids)));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
package org.springblade.modules.common.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||
import lombok.AllArgsConstructor;
|
||||
import jakarta.validation.Valid;
|
||||
|
||||
import org.springblade.core.secure.BladeUser;
|
||||
import org.springblade.core.secure.annotation.IsAdmin;
|
||||
import org.springblade.core.mp.support.Condition;
|
||||
import org.springblade.core.mp.support.Query;
|
||||
import org.springblade.core.tool.api.R;
|
||||
import org.springblade.core.tool.utils.Func;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserPointEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonUserPointVO;
|
||||
import org.springblade.modules.common.wrapper.CommonUserPointWrapper;
|
||||
import org.springblade.modules.common.service.ICommonUserPointService;
|
||||
import org.springblade.core.boot.ctrl.BladeController;
|
||||
import org.springblade.core.tool.utils.DateUtil;
|
||||
import org.springblade.core.excel.util.ExcelUtil;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
|
||||
/**
|
||||
* 用户商城积分表 控制器
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/common/user-point")
|
||||
@Tag(name = "用户商城积分表", description = "用户商城积分表接口")
|
||||
public class CommonUserPointController extends BladeController {
|
||||
|
||||
private final ICommonUserPointService commonUserPointService;
|
||||
|
||||
/**
|
||||
* 用户商城积分表 详情
|
||||
*/
|
||||
@GetMapping("/detail")
|
||||
@ApiOperationSupport(order = 1)
|
||||
@Operation(summary = "详情", description = "传入commonUserPoint")
|
||||
public R<CommonUserPointVO> detail(CommonUserPointEntity commonUserPoint) {
|
||||
CommonUserPointEntity detail = commonUserPointService.getOne(Condition.getQueryWrapper(commonUserPoint));
|
||||
return R.data(CommonUserPointWrapper.build().entityVO(detail));
|
||||
}
|
||||
/**
|
||||
* 用户商城积分表 分页
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperationSupport(order = 2)
|
||||
@Operation(summary = "分页", description = "传入commonUserPoint")
|
||||
public R<IPage<CommonUserPointVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> commonUserPoint, Query query) {
|
||||
IPage<CommonUserPointEntity> pages = commonUserPointService.page(Condition.getPage(query), Condition.getQueryWrapper(commonUserPoint, CommonUserPointEntity.class));
|
||||
return R.data(CommonUserPointWrapper.build().pageVO(pages));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户商城积分表 自定义分页
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@ApiOperationSupport(order = 3)
|
||||
@Operation(summary = "分页", description = "传入commonUserPoint")
|
||||
public R<IPage<CommonUserPointVO>> page(CommonUserPointVO commonUserPoint, Query query) {
|
||||
IPage<CommonUserPointVO> pages = commonUserPointService.selectCommonUserPointPage(Condition.getPage(query), commonUserPoint);
|
||||
return R.data(pages);
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户商城积分表 新增
|
||||
*/
|
||||
@PostMapping("/save")
|
||||
@ApiOperationSupport(order = 4)
|
||||
@Operation(summary = "新增", description = "传入commonUserPoint")
|
||||
public R save(@Valid @RequestBody CommonUserPointEntity commonUserPoint) {
|
||||
return R.status(commonUserPointService.save(commonUserPoint));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户商城积分表 修改
|
||||
*/
|
||||
@PostMapping("/update")
|
||||
@ApiOperationSupport(order = 5)
|
||||
@Operation(summary = "修改", description = "传入commonUserPoint")
|
||||
public R update(@Valid @RequestBody CommonUserPointEntity commonUserPoint) {
|
||||
return R.status(commonUserPointService.updateById(commonUserPoint));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户商城积分表 新增或修改
|
||||
*/
|
||||
@PostMapping("/submit")
|
||||
@ApiOperationSupport(order = 6)
|
||||
@Operation(summary = "新增或修改", description = "传入commonUserPoint")
|
||||
public R submit(@Valid @RequestBody CommonUserPointEntity commonUserPoint) {
|
||||
return R.status(commonUserPointService.saveOrUpdate(commonUserPoint));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户商城积分表 删除
|
||||
*/
|
||||
@PostMapping("/remove")
|
||||
@ApiOperationSupport(order = 7)
|
||||
@Operation(summary = "逻辑删除", description = "传入ids")
|
||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
|
||||
return R.status(commonUserPointService.deleteLogic(Func.toLongList(ids)));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
package org.springblade.modules.common.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||
import lombok.AllArgsConstructor;
|
||||
import jakarta.validation.Valid;
|
||||
|
||||
import org.springblade.core.secure.BladeUser;
|
||||
import org.springblade.core.secure.annotation.IsAdmin;
|
||||
import org.springblade.core.mp.support.Condition;
|
||||
import org.springblade.core.mp.support.Query;
|
||||
import org.springblade.core.tool.api.R;
|
||||
import org.springblade.core.tool.utils.Func;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserPointLogEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonUserPointLogVO;
|
||||
import org.springblade.modules.common.wrapper.CommonUserPointLogWrapper;
|
||||
import org.springblade.modules.common.service.ICommonUserPointLogService;
|
||||
import org.springblade.core.boot.ctrl.BladeController;
|
||||
import org.springblade.core.tool.utils.DateUtil;
|
||||
import org.springblade.core.excel.util.ExcelUtil;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.List;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
|
||||
/**
|
||||
* 用户商城积分流水表 控制器
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/common/user-point-log")
|
||||
@Tag(name = "用户商城积分流水表", description = "用户商城积分流水表接口")
|
||||
public class CommonUserPointLogController extends BladeController {
|
||||
|
||||
private final ICommonUserPointLogService commonUserPointLogService;
|
||||
|
||||
/**
|
||||
* 用户商城积分流水表 详情
|
||||
*/
|
||||
@GetMapping("/detail")
|
||||
@ApiOperationSupport(order = 1)
|
||||
@Operation(summary = "详情", description = "传入commonUserPointLog")
|
||||
public R<CommonUserPointLogVO> detail(CommonUserPointLogEntity commonUserPointLog) {
|
||||
CommonUserPointLogEntity detail = commonUserPointLogService.getOne(Condition.getQueryWrapper(commonUserPointLog));
|
||||
return R.data(CommonUserPointLogWrapper.build().entityVO(detail));
|
||||
}
|
||||
/**
|
||||
* 用户商城积分流水表 分页
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperationSupport(order = 2)
|
||||
@Operation(summary = "分页", description = "传入commonUserPointLog")
|
||||
public R<IPage<CommonUserPointLogVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> commonUserPointLog, Query query) {
|
||||
IPage<CommonUserPointLogEntity> pages = commonUserPointLogService.page(Condition.getPage(query), Condition.getQueryWrapper(commonUserPointLog, CommonUserPointLogEntity.class));
|
||||
return R.data(CommonUserPointLogWrapper.build().pageVO(pages));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户商城积分流水表 自定义分页
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@ApiOperationSupport(order = 3)
|
||||
@Operation(summary = "分页", description = "传入commonUserPointLog")
|
||||
public R<IPage<CommonUserPointLogVO>> page(CommonUserPointLogVO commonUserPointLog, Query query) {
|
||||
IPage<CommonUserPointLogVO> pages = commonUserPointLogService.selectCommonUserPointLogPage(Condition.getPage(query), commonUserPointLog);
|
||||
return R.data(pages);
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户商城积分流水表 新增
|
||||
*/
|
||||
@PostMapping("/save")
|
||||
@ApiOperationSupport(order = 4)
|
||||
@Operation(summary = "新增", description = "传入commonUserPointLog")
|
||||
public R save(@Valid @RequestBody CommonUserPointLogEntity commonUserPointLog) {
|
||||
return R.status(commonUserPointLogService.save(commonUserPointLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户商城积分流水表 修改
|
||||
*/
|
||||
@PostMapping("/update")
|
||||
@ApiOperationSupport(order = 5)
|
||||
@Operation(summary = "修改", description = "传入commonUserPointLog")
|
||||
public R update(@Valid @RequestBody CommonUserPointLogEntity commonUserPointLog) {
|
||||
return R.status(commonUserPointLogService.updateById(commonUserPointLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户商城积分流水表 新增或修改
|
||||
*/
|
||||
@PostMapping("/submit")
|
||||
@ApiOperationSupport(order = 6)
|
||||
@Operation(summary = "新增或修改", description = "传入commonUserPointLog")
|
||||
public R submit(@Valid @RequestBody CommonUserPointLogEntity commonUserPointLog) {
|
||||
return R.status(commonUserPointLogService.saveOrUpdate(commonUserPointLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户商城积分流水表 删除
|
||||
*/
|
||||
@PostMapping("/remove")
|
||||
@ApiOperationSupport(order = 7)
|
||||
@Operation(summary = "逻辑删除", description = "传入ids")
|
||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
|
||||
return R.status(commonUserPointLogService.deleteLogic(Func.toLongList(ids)));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -3,14 +3,13 @@ package org.springblade.modules.common.convert;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mapping;
|
||||
import org.mapstruct.factory.Mappers;
|
||||
import org.springblade.modules.api.request.AddressSubmitRequest;
|
||||
import org.springblade.modules.api.request.CreateOrderRequest;
|
||||
import org.springblade.modules.api.vo.CommonUserNoticeApiVO;
|
||||
import org.springblade.modules.api.vo.CommonUserNoticeDetailApiVO;
|
||||
import org.springblade.modules.api.vo.CommonUserOrderApiVO;
|
||||
import org.springblade.modules.api.vo.CommonUserOrderDetailApiVO;
|
||||
import org.springblade.modules.common.pojo.entity.CommonRegionsInfoEntity;
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserNoticeEntity;
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserOrderEntity;
|
||||
import org.springblade.modules.api.vo.*;
|
||||
import org.springblade.modules.common.pojo.dto.CommonBenefitPointApiDTO;
|
||||
import org.springblade.modules.common.pojo.dto.CommonCashCouponApiDTO;
|
||||
import org.springblade.modules.common.pojo.dto.CommonUserPointApiDTO;
|
||||
import org.springblade.modules.common.pojo.entity.*;
|
||||
import org.springblade.modules.common.pojo.vo.AppCommonRegionsInfoVO;
|
||||
import org.springblade.modules.common.pojo.vo.CommonUserOrderVO;
|
||||
import org.springblade.modules.mall.pojo.entity.MallProductEntity;
|
||||
@@ -59,4 +58,16 @@ public interface AppCommonConvert {
|
||||
List<CommonUserNoticeApiVO> convertNoticeVOList(List<CommonUserNoticeEntity> list);
|
||||
|
||||
CommonUserNoticeDetailApiVO convertNoticeDetailVO(CommonUserNoticeEntity entity);
|
||||
|
||||
CommonUserAddressApiVO convertAddressToVoList(CommonUserAddressEntity entity);
|
||||
|
||||
List<CommonUserAddressApiVO> convertAddressListToVoList(List<CommonUserAddressEntity> list);
|
||||
|
||||
CommonUserAddressEntity convertRequestToPo(AddressSubmitRequest request);
|
||||
|
||||
CommonBenefitPointLogEntity convertBenefitPointDTOToEntity(CommonBenefitPointApiDTO dto);
|
||||
|
||||
CommonCashCouponLogEntity convertCashCouponDTOToEntity(CommonCashCouponApiDTO dto);
|
||||
|
||||
CommonUserPointLogEntity convertUserPointDTOToEntity(CommonUserPointApiDTO dto);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
package org.springblade.modules.common.eums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum BenefitPointSourceType {
|
||||
|
||||
/**
|
||||
* 福利包产出
|
||||
*/
|
||||
BENEFIT_PACK_OUTPUT(0),
|
||||
|
||||
/**
|
||||
* 福利包兑换
|
||||
*/
|
||||
BENEFIT_PACK_EXCHANGE(1),
|
||||
|
||||
/**
|
||||
* 用户直推
|
||||
*/
|
||||
USERS_PUSH_DIRECTLY(2),
|
||||
|
||||
/**
|
||||
* otc交易
|
||||
*/
|
||||
OTC_TRADING(3),
|
||||
|
||||
/**
|
||||
* 后台划拨
|
||||
*/
|
||||
BACKEND_TRANSFER(4)
|
||||
;
|
||||
|
||||
private final int code;
|
||||
|
||||
BenefitPointSourceType(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据 code 值获取对应的枚举项
|
||||
*
|
||||
* @param code 福利积分来源类型
|
||||
* @return 对应的 BenefitPointSourceType 枚举
|
||||
* @throws IllegalArgumentException 如果 code 无效
|
||||
*/
|
||||
public static BenefitPointSourceType fromCode(int code) {
|
||||
for (BenefitPointSourceType type : BenefitPointSourceType.values()) {
|
||||
if (type.code == code) {
|
||||
return type;
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException("Invalid notification type code: " + code);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package org.springblade.modules.common.eums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum CashCouponSourceType {
|
||||
|
||||
/**
|
||||
* 商城抽奖
|
||||
*/
|
||||
MALL_LOTTERY(0),
|
||||
|
||||
/**
|
||||
* 福利包兑换
|
||||
*/
|
||||
BENEFIT_PACK_EXCHANGE(1);
|
||||
|
||||
private final int code;
|
||||
|
||||
CashCouponSourceType(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据 code 值获取对应的枚举项
|
||||
*
|
||||
* @param code 现金券来源类型
|
||||
* @return 对应的 CashCouponSourceType 枚举
|
||||
* @throws IllegalArgumentException 如果 code 无效
|
||||
*/
|
||||
public static CashCouponSourceType fromCode(int code) {
|
||||
for (CashCouponSourceType type : CashCouponSourceType.values()) {
|
||||
if (type.code == code) {
|
||||
return type;
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException("Invalid notification type code: " + code);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package org.springblade.modules.common.eums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum UserPointSourceType {
|
||||
|
||||
/**
|
||||
* 商城订单
|
||||
*/
|
||||
MALL_ORDERS(0),
|
||||
|
||||
/**
|
||||
* 商城抽奖
|
||||
*/
|
||||
MALL_LOTTERY(1);
|
||||
|
||||
private final int code;
|
||||
|
||||
UserPointSourceType(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据 code 值获取对应的枚举项
|
||||
*
|
||||
* @param code 商城积分来源类型
|
||||
* @return 对应的 UserPointSourceType 枚举
|
||||
* @throws IllegalArgumentException 如果 code 无效
|
||||
*/
|
||||
public static UserPointSourceType fromCode(int code) {
|
||||
for (UserPointSourceType type : UserPointSourceType.values()) {
|
||||
if (type.code == code) {
|
||||
return type;
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException("Invalid notification type code: " + code);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package org.springblade.modules.common.manager;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springblade.modules.common.eums.BenefitPointSourceType;
|
||||
import org.springblade.modules.common.pojo.dto.CommonBenefitPointApiDTO;
|
||||
import org.springblade.modules.common.request.GiveBenefitPointRequest;
|
||||
import org.springblade.modules.common.service.ICommonBenefitPointService;
|
||||
import org.springblade.modules.system.pojo.entity.User;
|
||||
import org.springblade.modules.system.service.IUserService;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class CommonUserPointManager {
|
||||
|
||||
private final ICommonBenefitPointService commonBenefitPointService;
|
||||
private final IUserService userService;
|
||||
|
||||
public boolean giveBenefitPoint(GiveBenefitPointRequest request) {
|
||||
User user = userService.getById(request.getId());
|
||||
Assert.notNull(user , "用户不存在或已注销");
|
||||
Assert.isTrue(request.getAmount().compareTo(BigDecimal.ZERO) > 0, "划拨积分必须大于0");
|
||||
|
||||
CommonBenefitPointApiDTO dto = new CommonBenefitPointApiDTO();
|
||||
dto.setUserId(user.getId())
|
||||
.setAmount(request.getAmount())
|
||||
.setFee(BigDecimal.ZERO)
|
||||
.setSourceType(BenefitPointSourceType.BACKEND_TRANSFER.getCode())
|
||||
.setSourceId(request.getId())
|
||||
.setSourceDetail("后台划拨福利积分")
|
||||
.setRemark(request.getRemark());
|
||||
return commonBenefitPointService.addBenefitPoint(dto);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package org.springblade.modules.common.mapper;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.CommonBenefitPointLogEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonBenefitPointLogVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户福利值流水表 Mapper 接口
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
public interface CommonBenefitPointLogMapper extends BaseMapper<CommonBenefitPointLogEntity> {
|
||||
|
||||
/**
|
||||
* 自定义分页
|
||||
*
|
||||
* @param page 分页参数
|
||||
* @param pointLog 查询参数
|
||||
* @return List<CommonBenefitPointLogVO>
|
||||
*/
|
||||
List<CommonBenefitPointLogVO> selectCommonBenefitPointLogPage(IPage page, CommonBenefitPointLogVO pointLog);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.springblade.modules.common.mapper.CommonBenefitPointLogMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="commonBenefitPointLogResultMap" type="org.springblade.modules.common.pojo.entity.CommonBenefitPointLogEntity">
|
||||
<result column="id" property="id"/>
|
||||
<result column="user_id" property="userId"/>
|
||||
<result column="amount" property="amount"/>
|
||||
<result column="last_amount" property="lastAmount"/>
|
||||
<result column="fee" property="fee"/>
|
||||
<result column="source_type" property="sourceType"/>
|
||||
<result column="source_id" property="sourceId"/>
|
||||
<result column="source_detail" property="sourceDetail"/>
|
||||
<result column="type" property="type"/>
|
||||
<result column="is_complete" property="isComplete"/>
|
||||
<result column="statistical_date" property="statisticalDate"/>
|
||||
<result column="remark" property="remark"/>
|
||||
<result column="create_user" property="createUser"/>
|
||||
<result column="create_dept" property="createDept"/>
|
||||
<result column="create_time" property="createTime"/>
|
||||
<result column="update_user" property="updateUser"/>
|
||||
<result column="update_time" property="updateTime"/>
|
||||
<result column="status" property="status"/>
|
||||
<result column="is_deleted" property="isDeleted"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<select id="selectCommonBenefitPointLogPage" resultType="org.springblade.modules.common.pojo.vo.CommonBenefitPointLogVO">
|
||||
select
|
||||
bpl.*,
|
||||
bu.account
|
||||
from blade_user bu
|
||||
left join benefit_point_log bpl on bu.id = bpl.user_id
|
||||
where bu.is_deleted = 0 and bpl.is_deleted = 0 and bpl.is_complete = 1
|
||||
<if test="pointLog.account != null">
|
||||
and bu.account = #{pointLog.account}
|
||||
</if>
|
||||
order by bpl.id desc
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,31 @@
|
||||
package org.springblade.modules.common.mapper;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.CommonBenefitPointEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonBenefitPointVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户福利值表 Mapper 接口
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
public interface CommonBenefitPointMapper extends BaseMapper<CommonBenefitPointEntity> {
|
||||
|
||||
/**
|
||||
* 自定义分页
|
||||
*
|
||||
* @param page 分页参数
|
||||
* @param benefitPoint 查询参数
|
||||
* @return List<CommonBenefitPointVO>
|
||||
*/
|
||||
List<CommonBenefitPointVO> selectCommonBenefitPointPage(IPage page, CommonBenefitPointVO benefitPoint);
|
||||
|
||||
int addBenefitPoint(Long userId, BigDecimal amount, Integer version);
|
||||
|
||||
int deductBenefitPoint(Long userId, BigDecimal amount, Integer version);
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.springblade.modules.common.mapper.CommonBenefitPointMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="commonBenefitPointResultMap" type="org.springblade.modules.common.pojo.entity.CommonBenefitPointEntity">
|
||||
<result column="id" property="id"/>
|
||||
<result column="amount" property="amount"/>
|
||||
<result column="version" property="version"/>
|
||||
<result column="create_user" property="createUser"/>
|
||||
<result column="create_dept" property="createDept"/>
|
||||
<result column="create_time" property="createTime"/>
|
||||
<result column="update_user" property="updateUser"/>
|
||||
<result column="update_time" property="updateTime"/>
|
||||
<result column="status" property="status"/>
|
||||
<result column="is_deleted" property="isDeleted"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<select id="selectCommonBenefitPointPage" resultType="org.springblade.modules.common.pojo.vo.CommonBenefitPointVO">
|
||||
select
|
||||
bp.*,
|
||||
bu.account
|
||||
from blade_user bu
|
||||
left join benefit_point bp on bu.id = bp.id
|
||||
where bu.is_deleted = 0 and bp.is_deleted = 0
|
||||
<if test="benefitPoint.account != null">
|
||||
and bu.account = #{benefitPoint.account}
|
||||
</if>
|
||||
order by bp.id desc
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
<update id="addBenefitPoint">
|
||||
update
|
||||
benefit_point
|
||||
set amount = amount + #{amount} , version = version + 1
|
||||
where id = #{userId} and version = #{version}
|
||||
</update>
|
||||
<update id="deductBenefitPoint">
|
||||
update
|
||||
benefit_point
|
||||
set amount = amount - #{amount} , version = version + 1
|
||||
where id = #{userId} and version = #{version} and (amount - #{amount}) >= 0
|
||||
</update>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,26 @@
|
||||
package org.springblade.modules.common.mapper;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.CommonCashCouponLogEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonCashCouponLogVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户现金券流水表 Mapper 接口
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
public interface CommonCashCouponLogMapper extends BaseMapper<CommonCashCouponLogEntity> {
|
||||
|
||||
/**
|
||||
* 自定义分页
|
||||
*
|
||||
* @param page 分页参数
|
||||
* @param cashLog 查询参数
|
||||
* @return List<CommonCashCouponLogVO>
|
||||
*/
|
||||
List<CommonCashCouponLogVO> selectCommonCashCouponLogPage(IPage page, CommonCashCouponLogVO cashLog);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.springblade.modules.common.mapper.CommonCashCouponLogMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="commonCashCouponLogResultMap" type="org.springblade.modules.common.pojo.entity.CommonCashCouponLogEntity">
|
||||
<result column="id" property="id"/>
|
||||
<result column="user_id" property="userId"/>
|
||||
<result column="amount" property="amount"/>
|
||||
<result column="last_amount" property="lastAmount"/>
|
||||
<result column="source_type" property="sourceType"/>
|
||||
<result column="source_id" property="sourceId"/>
|
||||
<result column="source_detail" property="sourceDetail"/>
|
||||
<result column="type" property="type"/>
|
||||
<result column="is_complete" property="isComplete"/>
|
||||
<result column="statistical_date" property="statisticalDate"/>
|
||||
<result column="remark" property="remark"/>
|
||||
<result column="create_user" property="createUser"/>
|
||||
<result column="create_dept" property="createDept"/>
|
||||
<result column="create_time" property="createTime"/>
|
||||
<result column="update_user" property="updateUser"/>
|
||||
<result column="update_time" property="updateTime"/>
|
||||
<result column="status" property="status"/>
|
||||
<result column="is_deleted" property="isDeleted"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<select id="selectCommonCashCouponLogPage" resultType="org.springblade.modules.common.pojo.vo.CommonCashCouponLogVO">
|
||||
|
||||
select
|
||||
ccl.*,
|
||||
bu.account
|
||||
from blade_user bu
|
||||
left join cash_coupon_log ccl on bu.id = ccl.user_id
|
||||
where bu.is_deleted = 0 and ccl.is_deleted = 0 and ccl.is_complete = 1
|
||||
<if test="cashLog.account != null">
|
||||
and bu.account = #{cashLog.account}
|
||||
</if>
|
||||
order by ccl.id desc
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,32 @@
|
||||
package org.springblade.modules.common.mapper;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.CommonCashCouponEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonCashCouponVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户现金券表 Mapper 接口
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
public interface CommonCashCouponMapper extends BaseMapper<CommonCashCouponEntity> {
|
||||
|
||||
/**
|
||||
* 自定义分页
|
||||
*
|
||||
* @param page 分页参数
|
||||
* @param cashCoupon 查询参数
|
||||
* @return List<CommonCashCouponVO>
|
||||
*/
|
||||
List<CommonCashCouponVO> selectCommonCashCouponPage(IPage page, CommonCashCouponVO cashCoupon);
|
||||
|
||||
|
||||
int addCashCoupon(Long userId, BigDecimal amount, Integer version);
|
||||
|
||||
int deductCashCoupon(Long userId, BigDecimal amount, Integer version);
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.springblade.modules.common.mapper.CommonCashCouponMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="commonCashCouponResultMap" type="org.springblade.modules.common.pojo.entity.CommonCashCouponEntity">
|
||||
<result column="id" property="id"/>
|
||||
<result column="amount" property="amount"/>
|
||||
<result column="version" property="version"/>
|
||||
<result column="create_user" property="createUser"/>
|
||||
<result column="create_dept" property="createDept"/>
|
||||
<result column="create_time" property="createTime"/>
|
||||
<result column="update_user" property="updateUser"/>
|
||||
<result column="update_time" property="updateTime"/>
|
||||
<result column="status" property="status"/>
|
||||
<result column="is_deleted" property="isDeleted"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
|
||||
<select id="selectCommonCashCouponPage" resultType="org.springblade.modules.common.pojo.vo.CommonCashCouponVO">
|
||||
select
|
||||
cc.*,
|
||||
bu.account
|
||||
from blade_user bu
|
||||
left join cash_coupon cc on bu.id = cc.id
|
||||
where bu.is_deleted = 0 and cc.is_deleted = 0
|
||||
<if test="cashCoupon.account != null">
|
||||
and bu.account = #{cashCoupon.account}
|
||||
</if>
|
||||
order by cc.id desc
|
||||
|
||||
</select>
|
||||
|
||||
<update id="addCashCoupon">
|
||||
update
|
||||
cash_coupon
|
||||
set amount = amount + #{amount} , version = version + 1
|
||||
where id = #{userId} and version = #{version}
|
||||
</update>
|
||||
<update id="deductCashCoupon">
|
||||
update
|
||||
cash_coupon
|
||||
set amount = amount - #{amount} , version = version + 1
|
||||
where id = #{userId} and version = #{version} and (amount - #{amount}) >= 0
|
||||
</update>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -25,8 +25,17 @@
|
||||
</resultMap>
|
||||
|
||||
|
||||
<select id="selectUserAddressPage" resultMap="userAddressResultMap">
|
||||
select * from user_address where is_deleted = 0
|
||||
<select id="selectUserAddressPage" resultType="org.springblade.modules.common.pojo.vo.CommonUserAddressVO">
|
||||
select
|
||||
ua.*,
|
||||
bu.account
|
||||
from blade_user bu
|
||||
left join user_address ua on ua.user_id = bu.id
|
||||
where bu .is_deleted = 0 and ua.is_deleted = 0
|
||||
<if test="userAddress.account != null">
|
||||
and bu.account = #{userAddress.account}
|
||||
</if>
|
||||
order by ua.create_time desc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
<result column="user_id" property="userId"/>
|
||||
<result column="notice_type" property="noticeType"/>
|
||||
<result column="has_read" property="hasRead"/>
|
||||
<result column="release_time" property="releaseTime"/>
|
||||
<result column="title" property="title"/>
|
||||
<result column="content" property="content"/>
|
||||
<result column="remarks" property="remarks"/>
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
package org.springblade.modules.common.mapper;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserPointLogEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonUserPointLogVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户商城积分流水表 Mapper 接口
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
public interface CommonUserPointLogMapper extends BaseMapper<CommonUserPointLogEntity> {
|
||||
|
||||
/**
|
||||
* 自定义分页
|
||||
*
|
||||
* @param page 分页参数
|
||||
* @param pointLog 查询参数
|
||||
* @return List<CommonUserPointLogVO>
|
||||
*/
|
||||
List<CommonUserPointLogVO> selectCommonUserPointLogPage(IPage page, CommonUserPointLogVO pointLog);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.springblade.modules.common.mapper.CommonUserPointLogMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="commonUserPointLogResultMap" type="org.springblade.modules.common.pojo.entity.CommonUserPointLogEntity">
|
||||
<result column="id" property="id"/>
|
||||
<result column="user_id" property="userId"/>
|
||||
<result column="amount" property="amount"/>
|
||||
<result column="last_amount" property="lastAmount"/>
|
||||
<result column="source_type" property="sourceType"/>
|
||||
<result column="source_id" property="sourceId"/>
|
||||
<result column="source_detail" property="sourceDetail"/>
|
||||
<result column="type" property="type"/>
|
||||
<result column="is_complete" property="isComplete"/>
|
||||
<result column="statistical_date" property="statisticalDate"/>
|
||||
<result column="remark" property="remark"/>
|
||||
<result column="create_user" property="createUser"/>
|
||||
<result column="create_dept" property="createDept"/>
|
||||
<result column="create_time" property="createTime"/>
|
||||
<result column="update_user" property="updateUser"/>
|
||||
<result column="update_time" property="updateTime"/>
|
||||
<result column="status" property="status"/>
|
||||
<result column="is_deleted" property="isDeleted"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<select id="selectCommonUserPointLogPage" resultType="org.springblade.modules.common.pojo.vo.CommonUserPointLogVO">
|
||||
select
|
||||
upl.*,
|
||||
bu.account
|
||||
from blade_user bu
|
||||
left join user_point_log upl on bu.id = upl.user_id
|
||||
where bu.is_deleted = 0 and upl.is_deleted = 0 and upl.is_complete = 1
|
||||
<if test="pointLog.account != null">
|
||||
and bu.account = #{pointLog.account}
|
||||
</if>
|
||||
order by upl.id desc
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,32 @@
|
||||
package org.springblade.modules.common.mapper;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserPointEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonUserPointVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户商城积分表 Mapper 接口
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
public interface CommonUserPointMapper extends BaseMapper<CommonUserPointEntity> {
|
||||
|
||||
/**
|
||||
* 自定义分页
|
||||
*
|
||||
* @param page 分页参数
|
||||
* @param userPoint 查询参数
|
||||
* @return List<CommonUserPointVO>
|
||||
*/
|
||||
List<CommonUserPointVO> selectCommonUserPointPage(IPage page, CommonUserPointVO userPoint);
|
||||
|
||||
|
||||
int addUserPoint(Long userId, BigDecimal amount, Integer version);
|
||||
|
||||
int deductUserPoint(Long userId, BigDecimal amount, Integer version);
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.springblade.modules.common.mapper.CommonUserPointMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="commonUserPointResultMap" type="org.springblade.modules.common.pojo.entity.CommonUserPointEntity">
|
||||
<result column="id" property="id"/>
|
||||
<result column="amount" property="amount"/>
|
||||
<result column="version" property="version"/>
|
||||
<result column="create_user" property="createUser"/>
|
||||
<result column="create_dept" property="createDept"/>
|
||||
<result column="create_time" property="createTime"/>
|
||||
<result column="update_user" property="updateUser"/>
|
||||
<result column="update_time" property="updateTime"/>
|
||||
<result column="status" property="status"/>
|
||||
<result column="is_deleted" property="isDeleted"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
|
||||
<select id="selectCommonUserPointPage" resultType="org.springblade.modules.common.pojo.vo.CommonUserPointVO">
|
||||
select
|
||||
up.*,
|
||||
bu.account
|
||||
from blade_user bu
|
||||
left join user_point up on bu.id = up.id
|
||||
where bu.is_deleted = 0 and up.is_deleted = 0
|
||||
<if test="userPoint.account != null">
|
||||
and bu.account = #{userPoint.account}
|
||||
</if>
|
||||
order by up.id desc
|
||||
</select>
|
||||
|
||||
<update id="addUserPoint">
|
||||
update
|
||||
user_point
|
||||
set amount = amount + #{amount} , version = version + 1
|
||||
where id = #{userId} and version = #{version}
|
||||
</update>
|
||||
<update id="deductUserPoint">
|
||||
update
|
||||
user_point
|
||||
set amount = amount - #{amount} , version = version + 1
|
||||
where id = #{userId} and version = #{version} and (amount - #{amount}) >= 0
|
||||
</update>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,46 @@
|
||||
package org.springblade.modules.common.pojo.dto;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class CommonBenefitPointApiDTO {
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
private Long userId;
|
||||
/**
|
||||
* 金额
|
||||
*/
|
||||
private BigDecimal amount;
|
||||
|
||||
|
||||
/**
|
||||
* 手续费
|
||||
*/
|
||||
private BigDecimal fee;
|
||||
|
||||
/**
|
||||
* 来源类型 0-福利包产出 1-福利包兑换 2-用户直推 3-otc交易
|
||||
*/
|
||||
private Integer sourceType;
|
||||
/**
|
||||
* 来源id
|
||||
*/
|
||||
private Long sourceId;
|
||||
/**
|
||||
* 来源详情
|
||||
*/
|
||||
private String sourceDetail;
|
||||
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.common.pojo.dto;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.CommonBenefitPointEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 用户福利值表 数据传输对象实体类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class CommonBenefitPointDTO extends CommonBenefitPointEntity {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.common.pojo.dto;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.CommonBenefitPointLogEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 用户福利值流水表 数据传输对象实体类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class CommonBenefitPointLogDTO extends CommonBenefitPointLogEntity {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package org.springblade.modules.common.pojo.dto;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class CommonCashCouponApiDTO {
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
private Long userId;
|
||||
/**
|
||||
* 金额
|
||||
*/
|
||||
private BigDecimal amount;
|
||||
|
||||
/**
|
||||
* 来源类型 0-福利包产出 1-福利包兑换 2-用户直推 3-otc交易
|
||||
*/
|
||||
private Integer sourceType;
|
||||
/**
|
||||
* 来源id
|
||||
*/
|
||||
private Long sourceId;
|
||||
/**
|
||||
* 来源详情
|
||||
*/
|
||||
private String sourceDetail;
|
||||
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.common.pojo.dto;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.CommonCashCouponEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 用户现金券表 数据传输对象实体类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class CommonCashCouponDTO extends CommonCashCouponEntity {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.common.pojo.dto;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.CommonCashCouponLogEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 用户现金券流水表 数据传输对象实体类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class CommonCashCouponLogDTO extends CommonCashCouponLogEntity {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package org.springblade.modules.common.pojo.dto;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class CommonUserPointApiDTO {
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
private Long userId;
|
||||
/**
|
||||
* 金额
|
||||
*/
|
||||
private BigDecimal amount;
|
||||
|
||||
/**
|
||||
* 来源类型 0-商城订单 1-商城抽奖
|
||||
*/
|
||||
private Integer sourceType;
|
||||
/**
|
||||
* 来源id
|
||||
*/
|
||||
private Long sourceId;
|
||||
/**
|
||||
* 来源详情
|
||||
*/
|
||||
private String sourceDetail;
|
||||
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.common.pojo.dto;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserPointEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 用户商城积分表 数据传输对象实体类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class CommonUserPointDTO extends CommonUserPointEntity {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.common.pojo.dto;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserPointLogEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 用户商城积分流水表 数据传输对象实体类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class CommonUserPointLogDTO extends CommonUserPointLogEntity {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package org.springblade.modules.common.pojo.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.Version;
|
||||
import lombok.Data;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.springblade.core.mp.base.BaseEntity;
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 用户福利值表 实体类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@Data
|
||||
@TableName("benefit_point")
|
||||
@Schema(description = "CommonBenefitPoint对象")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class CommonBenefitPointEntity extends BaseEntity {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 金额
|
||||
*/
|
||||
@Schema(description = "金额")
|
||||
private BigDecimal amount;
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
@Version
|
||||
@Schema(description = "版本号")
|
||||
private Integer version;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
package org.springblade.modules.common.pojo.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.springblade.core.mp.base.BaseEntity;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 用户福利值流水表 实体类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@Data
|
||||
@TableName("benefit_point_log")
|
||||
@Schema(description = "CommonBenefitPointLog对象")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Accessors(chain = true)
|
||||
public class CommonBenefitPointLogEntity extends BaseEntity {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@Schema(description = "用户id")
|
||||
private Long userId;
|
||||
/**
|
||||
* 金额
|
||||
*/
|
||||
@Schema(description = "金额")
|
||||
private BigDecimal amount;
|
||||
/**
|
||||
* 上一笔金额
|
||||
*/
|
||||
@Schema(description = "上一笔金额")
|
||||
private BigDecimal lastAmount;
|
||||
/**
|
||||
* 手续费
|
||||
*/
|
||||
@Schema(description = "手续费")
|
||||
private BigDecimal fee;
|
||||
/**
|
||||
* 来源类型 0-福利包产出 1-福利包兑换 2-用户直推 3-otc交易 4-后台划拨
|
||||
*/
|
||||
@Schema(description = "来源类型 0-福利包产出 1-福利包兑换 2-用户直推 3-otc交易 4-后台划拨")
|
||||
private Integer sourceType;
|
||||
/**
|
||||
* 来源id
|
||||
*/
|
||||
@Schema(description = "来源id")
|
||||
private Long sourceId;
|
||||
/**
|
||||
* 来源详情
|
||||
*/
|
||||
@Schema(description = "来源详情")
|
||||
private String sourceDetail;
|
||||
/**
|
||||
* 消费类型 1-收入 2-支出
|
||||
*/
|
||||
@Schema(description = "消费类型 1-收入 2-支出")
|
||||
private Integer type;
|
||||
/**
|
||||
* 是否完成 0-未完成 1-已完成
|
||||
*/
|
||||
@Schema(description = "是否完成 0-未完成 1-已完成")
|
||||
private Integer isComplete;
|
||||
/**
|
||||
* 统计时间
|
||||
*/
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Schema(description = "统计时间")
|
||||
private Date statisticalDate;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package org.springblade.modules.common.pojo.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.Version;
|
||||
import lombok.Data;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.springblade.core.mp.base.BaseEntity;
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 用户现金券表 实体类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@Data
|
||||
@TableName("cash_coupon")
|
||||
@Schema(description = "CommonCashCoupon对象")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class CommonCashCouponEntity extends BaseEntity {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 面额
|
||||
*/
|
||||
@Schema(description = "面额")
|
||||
private BigDecimal amount;
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
@Version
|
||||
@Schema(description = "版本号")
|
||||
private Integer version;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
|
||||
package org.springblade.modules.common.pojo.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.springblade.core.mp.base.BaseEntity;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 用户现金券流水表 实体类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@Data
|
||||
@TableName("cash_coupon_log")
|
||||
@Schema(description = "CommonCashCouponLog对象")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Accessors(chain = true)
|
||||
public class CommonCashCouponLogEntity extends BaseEntity {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@Schema(description = "用户id")
|
||||
private Long userId;
|
||||
/**
|
||||
* 金额
|
||||
*/
|
||||
@Schema(description = "金额")
|
||||
private BigDecimal amount;
|
||||
/**
|
||||
* 上一笔金额
|
||||
*/
|
||||
@Schema(description = "上一笔金额")
|
||||
private BigDecimal lastAmount;
|
||||
/**
|
||||
* 来源类型 0-商城抽奖 1-福利包兑换
|
||||
*/
|
||||
@Schema(description = "来源类型 0-商城抽奖 1-福利包兑换")
|
||||
private Integer sourceType;
|
||||
/**
|
||||
* 来源id
|
||||
*/
|
||||
@Schema(description = "来源id")
|
||||
private Long sourceId;
|
||||
/**
|
||||
* 来源详情
|
||||
*/
|
||||
@Schema(description = "来源详情")
|
||||
private String sourceDetail;
|
||||
/**
|
||||
* 消费类型 1-收入 2-支出
|
||||
*/
|
||||
@Schema(description = "消费类型 1-收入 2-支出")
|
||||
private Integer type;
|
||||
/**
|
||||
* 是否完成 0-未完成 1-已完成
|
||||
*/
|
||||
@Schema(description = "是否完成 0-未完成 1-已完成")
|
||||
private Integer isComplete;
|
||||
/**
|
||||
* 统计时间
|
||||
*/
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Schema(description = "统计时间")
|
||||
private Date statisticalDate;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -29,6 +29,7 @@ import lombok.Data;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.springblade.core.mp.base.BaseEntity;
|
||||
import java.io.Serial;
|
||||
|
||||
@@ -42,6 +43,7 @@ import java.io.Serial;
|
||||
@TableName("user_address")
|
||||
@Schema(description = "UserAddress对象")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Accessors(chain = true)
|
||||
public class CommonUserAddressEntity extends BaseEntity {
|
||||
|
||||
@Serial
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
package org.springblade.modules.common.pojo.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.Version;
|
||||
import lombok.Data;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.springblade.core.mp.base.BaseEntity;
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 用户商城积分表 实体类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@Data
|
||||
@TableName("user_point")
|
||||
@Schema(description = "CommonUserPoint对象")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class CommonUserPointEntity extends BaseEntity {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 面额
|
||||
*/
|
||||
@Schema(description = "面额")
|
||||
private BigDecimal amount;
|
||||
/**
|
||||
* 版本号
|
||||
*/
|
||||
@Version
|
||||
@Schema(description = "版本号")
|
||||
private Integer version;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
package org.springblade.modules.common.pojo.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.springblade.core.mp.base.BaseEntity;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 用户商城积分流水表 实体类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@Data
|
||||
@TableName("user_point_log")
|
||||
@Schema(description = "CommonUserPointLog对象")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Accessors(chain = true)
|
||||
public class CommonUserPointLogEntity extends BaseEntity {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@Schema(description = "用户id")
|
||||
private Long userId;
|
||||
/**
|
||||
* 金额
|
||||
*/
|
||||
@Schema(description = "金额")
|
||||
private BigDecimal amount;
|
||||
/**
|
||||
* 上一笔金额
|
||||
*/
|
||||
@Schema(description = "上一笔金额")
|
||||
private BigDecimal lastAmount;
|
||||
/**
|
||||
* 0-商城订单 1-商城抽奖
|
||||
*/
|
||||
@Schema(description = "0-商城订单 1-商城抽奖")
|
||||
private Integer sourceType;
|
||||
/**
|
||||
* 来源id
|
||||
*/
|
||||
@Schema(description = "来源id")
|
||||
private Long sourceId;
|
||||
/**
|
||||
* 来源详情
|
||||
*/
|
||||
@Schema(description = "来源详情")
|
||||
private String sourceDetail;
|
||||
/**
|
||||
* 消费类型 1-收入 2-支出
|
||||
*/
|
||||
@Schema(description = "消费类型 1-收入 2-支出")
|
||||
private Integer type;
|
||||
/**
|
||||
* 是否完成 0-未完成 1-已完成
|
||||
*/
|
||||
@Schema(description = "是否完成 0-未完成 1-已完成")
|
||||
private Integer isComplete;
|
||||
/**
|
||||
* 统计时间
|
||||
*/
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Schema(description = "统计时间")
|
||||
private Date statisticalDate;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.common.pojo.vo;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.CommonBenefitPointLogEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 用户福利值流水表 视图实体类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class CommonBenefitPointLogVO extends CommonBenefitPointLogEntity {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String account;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.common.pojo.vo;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.CommonBenefitPointEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 用户福利值表 视图实体类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class CommonBenefitPointVO extends CommonBenefitPointEntity {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String account;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.common.pojo.vo;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.CommonCashCouponLogEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 用户现金券流水表 视图实体类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class CommonCashCouponLogVO extends CommonCashCouponLogEntity {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String account;
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.common.pojo.vo;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.CommonCashCouponEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 用户现金券表 视图实体类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class CommonCashCouponVO extends CommonCashCouponEntity {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String account;
|
||||
}
|
||||
@@ -42,4 +42,6 @@ public class CommonUserAddressVO extends CommonUserAddressEntity {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String account;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.common.pojo.vo;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserPointLogEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 用户商城积分流水表 视图实体类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class CommonUserPointLogVO extends CommonUserPointLogEntity {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String account;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.common.pojo.vo;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserPointEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 用户商城积分表 视图实体类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class CommonUserPointVO extends CommonUserPointEntity {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String account;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package org.springblade.modules.common.request;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Data
|
||||
public class GiveBenefitPointRequest implements Serializable {
|
||||
|
||||
private Long id;
|
||||
private BigDecimal amount;
|
||||
private String remark;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package org.springblade.modules.common.service;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.CommonBenefitPointLogEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonBenefitPointLogVO;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.core.mp.base.BaseService;
|
||||
|
||||
/**
|
||||
* 用户福利值流水表 服务类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
public interface ICommonBenefitPointLogService extends BaseService<CommonBenefitPointLogEntity> {
|
||||
/**
|
||||
* 自定义分页
|
||||
*
|
||||
* @param page 分页参数
|
||||
* @param commonBenefitPointLog 查询参数
|
||||
* @return IPage<CommonBenefitPointLogVO>
|
||||
*/
|
||||
IPage<CommonBenefitPointLogVO> selectCommonBenefitPointLogPage(IPage<CommonBenefitPointLogVO> page, CommonBenefitPointLogVO commonBenefitPointLog);
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
|
||||
package org.springblade.modules.common.service;
|
||||
|
||||
import org.springblade.modules.common.pojo.dto.CommonBenefitPointApiDTO;
|
||||
import org.springblade.modules.common.pojo.entity.CommonBenefitPointEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonBenefitPointVO;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.core.mp.base.BaseService;
|
||||
import org.springblade.modules.common.request.GiveBenefitPointRequest;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户福利值表 服务类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
public interface ICommonBenefitPointService extends BaseService<CommonBenefitPointEntity> {
|
||||
/**
|
||||
* 自定义分页
|
||||
*
|
||||
* @param page 分页参数
|
||||
* @param commonBenefitPoint 查询参数
|
||||
* @return IPage<CommonBenefitPointVO>
|
||||
*/
|
||||
IPage<CommonBenefitPointVO> selectCommonBenefitPointPage(IPage<CommonBenefitPointVO> page, CommonBenefitPointVO commonBenefitPoint);
|
||||
|
||||
|
||||
/**
|
||||
* 添加福利积分
|
||||
*
|
||||
* @param dto 添加参数
|
||||
* @return 操作结果
|
||||
*/
|
||||
Boolean addBenefitPoint(CommonBenefitPointApiDTO dto);
|
||||
|
||||
|
||||
/**`
|
||||
* 扣减福利积分
|
||||
*
|
||||
* @param dto 扣减参数
|
||||
* @return 操作结果
|
||||
*/
|
||||
Boolean deductBenefitPoint(CommonBenefitPointApiDTO dto);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
|
||||
package org.springblade.modules.common.service;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.CommonCashCouponLogEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonCashCouponLogVO;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.core.mp.base.BaseService;
|
||||
|
||||
/**
|
||||
* 用户现金券流水表 服务类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
public interface ICommonCashCouponLogService extends BaseService<CommonCashCouponLogEntity> {
|
||||
/**
|
||||
* 自定义分页
|
||||
*
|
||||
* @param page 分页参数
|
||||
* @param commonCashCouponLog 查询参数
|
||||
* @return IPage<CommonCashCouponLogVO>
|
||||
*/
|
||||
IPage<CommonCashCouponLogVO> selectCommonCashCouponLogPage(IPage<CommonCashCouponLogVO> page, CommonCashCouponLogVO commonCashCouponLog);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package org.springblade.modules.common.service;
|
||||
|
||||
import org.springblade.modules.common.pojo.dto.CommonCashCouponApiDTO;
|
||||
import org.springblade.modules.common.pojo.entity.CommonCashCouponEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonCashCouponVO;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.core.mp.base.BaseService;
|
||||
|
||||
/**
|
||||
* 用户现金券表 服务类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
public interface ICommonCashCouponService extends BaseService<CommonCashCouponEntity> {
|
||||
/**
|
||||
* 自定义分页
|
||||
*
|
||||
* @param page 分页参数
|
||||
* @param commonCashCoupon 查询参数
|
||||
* @return IPage<CommonCashCouponVO>
|
||||
*/
|
||||
IPage<CommonCashCouponVO> selectCommonCashCouponPage(IPage<CommonCashCouponVO> page, CommonCashCouponVO commonCashCoupon);
|
||||
|
||||
|
||||
/**
|
||||
* 添加现金券
|
||||
*
|
||||
* @param dto 添加参数
|
||||
* @return 操作结果
|
||||
*/
|
||||
Boolean addCashCoupon(CommonCashCouponApiDTO dto);
|
||||
|
||||
|
||||
/**`
|
||||
* 扣减现金券
|
||||
*
|
||||
* @param dto 扣减参数
|
||||
* @return 操作结果
|
||||
*/
|
||||
Boolean deductCashCoupon(CommonCashCouponApiDTO dto);
|
||||
|
||||
}
|
||||
@@ -27,6 +27,8 @@ package org.springblade.modules.common.service;
|
||||
|
||||
import jakarta.validation.constraints.Max;
|
||||
import jakarta.validation.constraints.Min;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import org.springblade.modules.api.vo.FullRegionInfoVO;
|
||||
import org.springblade.modules.common.pojo.entity.CommonRegionsInfoEntity;
|
||||
import org.springblade.modules.common.pojo.vo.AppCommonRegionsInfoVO;
|
||||
import org.springblade.modules.common.pojo.vo.CommonRegionsInfoVO;
|
||||
@@ -51,4 +53,6 @@ public interface ICommonRegionsInfoService extends BaseService<CommonRegionsInfo
|
||||
IPage<CommonRegionsInfoVO> selectRegionsInfoPage(IPage<CommonRegionsInfoVO> page, CommonRegionsInfoVO regionsInfo);
|
||||
|
||||
List<AppCommonRegionsInfoVO> findRegionList(@Min(value = 0) Long pid, @Max(value = 4 ) @Min(value = 0) Integer level);
|
||||
|
||||
FullRegionInfoVO queryFullInfo( Long regionId);
|
||||
}
|
||||
|
||||
@@ -25,11 +25,16 @@
|
||||
*/
|
||||
package org.springblade.modules.common.service;
|
||||
|
||||
import jakarta.validation.Valid;
|
||||
import org.springblade.modules.api.request.AddressSubmitRequest;
|
||||
import org.springblade.modules.api.vo.CommonUserAddressApiVO;
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserAddressEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonUserAddressVO;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.core.mp.base.BaseService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户地址表 服务类
|
||||
*
|
||||
@@ -46,4 +51,9 @@ public interface ICommonUserAddressService extends BaseService<CommonUserAddress
|
||||
*/
|
||||
IPage<CommonUserAddressVO> selectUserAddressPage(IPage<CommonUserAddressVO> page, CommonUserAddressVO userAddress);
|
||||
|
||||
List<CommonUserAddressApiVO> selectAddressList(IPage<CommonUserAddressApiVO> page, CommonUserAddressApiVO commonUserAddressVO);
|
||||
|
||||
boolean submitAddress(AddressSubmitRequest request);
|
||||
|
||||
boolean removeAddress(List<Long> ids);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.common.service;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserPointLogEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonUserPointLogVO;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.core.mp.base.BaseService;
|
||||
|
||||
/**
|
||||
* 用户商城积分流水表 服务类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
public interface ICommonUserPointLogService extends BaseService<CommonUserPointLogEntity> {
|
||||
/**
|
||||
* 自定义分页
|
||||
*
|
||||
* @param page 分页参数
|
||||
* @param commonUserPointLog 查询参数
|
||||
* @return IPage<CommonUserPointLogVO>
|
||||
*/
|
||||
IPage<CommonUserPointLogVO> selectCommonUserPointLogPage(IPage<CommonUserPointLogVO> page, CommonUserPointLogVO commonUserPointLog);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
|
||||
package org.springblade.modules.common.service;
|
||||
|
||||
import org.springblade.modules.common.pojo.dto.CommonUserPointApiDTO;
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserPointEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonUserPointVO;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.core.mp.base.BaseService;
|
||||
|
||||
/**
|
||||
* 用户商城积分表 服务类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
public interface ICommonUserPointService extends BaseService<CommonUserPointEntity> {
|
||||
/**
|
||||
* 自定义分页
|
||||
*
|
||||
* @param page 分页参数
|
||||
* @param commonUserPoint 查询参数
|
||||
* @return IPage<CommonUserPointVO>
|
||||
*/
|
||||
IPage<CommonUserPointVO> selectCommonUserPointPage(IPage<CommonUserPointVO> page, CommonUserPointVO commonUserPoint);
|
||||
|
||||
/**
|
||||
* 添加商城积分
|
||||
*
|
||||
* @param dto 添加参数
|
||||
* @return 操作结果
|
||||
*/
|
||||
Boolean addUserPoint(CommonUserPointApiDTO dto);
|
||||
|
||||
|
||||
/**`
|
||||
* 扣减商城积分
|
||||
*
|
||||
* @param dto 扣减参数
|
||||
* @return 操作结果
|
||||
*/
|
||||
Boolean deductUserPoint(CommonUserPointApiDTO dto);
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package org.springblade.modules.common.service.impl;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.CommonBenefitPointLogEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonBenefitPointLogVO;
|
||||
import org.springblade.modules.common.mapper.CommonBenefitPointLogMapper;
|
||||
import org.springblade.modules.common.service.ICommonBenefitPointLogService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.core.mp.base.BaseServiceImpl;
|
||||
|
||||
/**
|
||||
* 用户福利值流水表 服务实现类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@Service
|
||||
public class CommonBenefitPointLogServiceImpl extends BaseServiceImpl<CommonBenefitPointLogMapper, CommonBenefitPointLogEntity> implements ICommonBenefitPointLogService {
|
||||
|
||||
@Override
|
||||
public IPage<CommonBenefitPointLogVO> selectCommonBenefitPointLogPage(IPage<CommonBenefitPointLogVO> page, CommonBenefitPointLogVO commonBenefitPointLog) {
|
||||
return page.setRecords(baseMapper.selectCommonBenefitPointLogPage(page, commonBenefitPointLog));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
package org.springblade.modules.common.service.impl;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springblade.common.utils.date.DateUtil;
|
||||
import org.springblade.modules.common.convert.AppCommonConvert;
|
||||
import org.springblade.modules.common.pojo.dto.CommonBenefitPointApiDTO;
|
||||
import org.springblade.modules.common.pojo.entity.CommonBenefitPointEntity;
|
||||
import org.springblade.modules.common.pojo.entity.CommonBenefitPointLogEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonBenefitPointVO;
|
||||
import org.springblade.modules.common.mapper.CommonBenefitPointMapper;
|
||||
import org.springblade.modules.common.request.GiveBenefitPointRequest;
|
||||
import org.springblade.modules.common.service.ICommonBenefitPointLogService;
|
||||
import org.springblade.modules.common.service.ICommonBenefitPointService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.core.mp.base.BaseServiceImpl;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 用户福利值表 服务实现类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class CommonBenefitPointServiceImpl extends BaseServiceImpl<CommonBenefitPointMapper, CommonBenefitPointEntity> implements ICommonBenefitPointService {
|
||||
|
||||
private final ICommonBenefitPointLogService benefitPointLogService;
|
||||
|
||||
@Override
|
||||
public IPage<CommonBenefitPointVO> selectCommonBenefitPointPage(IPage<CommonBenefitPointVO> page, CommonBenefitPointVO commonBenefitPoint) {
|
||||
return page.setRecords(baseMapper.selectCommonBenefitPointPage(page, commonBenefitPoint));
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = RuntimeException.class)
|
||||
@Override
|
||||
public Boolean addBenefitPoint(CommonBenefitPointApiDTO dto) {
|
||||
|
||||
CommonBenefitPointLogEntity benefitPointLog = saveBenefitPointLog(dto, 1);
|
||||
CommonBenefitPointEntity benefitPoint = getById(dto.getUserId());
|
||||
if (benefitPoint == null) {
|
||||
benefitPoint = new CommonBenefitPointEntity();
|
||||
benefitPoint.setId(dto.getUserId());
|
||||
benefitPoint.setAmount(BigDecimal.ZERO);
|
||||
benefitPoint.setVersion(1);
|
||||
benefitPoint.setCreateTime(new Date());
|
||||
save(benefitPoint);
|
||||
}
|
||||
if (baseMapper.addBenefitPoint(dto.getUserId(), dto.getAmount() ,benefitPoint.getVersion()) <= 0
|
||||
|| !benefitPointLogService.updateById(benefitPointLog.setIsComplete(1).setLastAmount(benefitPoint.getAmount()))
|
||||
){
|
||||
log.error("增加福利积分失败, dto: [{}]" , dto);
|
||||
throw new RuntimeException("增加福利积分失败");
|
||||
}
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean deductBenefitPoint(CommonBenefitPointApiDTO dto) {
|
||||
CommonBenefitPointLogEntity benefitPointLog = saveBenefitPointLog(dto, 2);
|
||||
CommonBenefitPointEntity benefitPoint = getById(dto.getUserId());
|
||||
if (benefitPoint == null) {
|
||||
benefitPoint = new CommonBenefitPointEntity();
|
||||
benefitPoint.setId(dto.getUserId());
|
||||
benefitPoint.setAmount(BigDecimal.ZERO);
|
||||
benefitPoint.setVersion(1);
|
||||
benefitPoint.setCreateTime(new Date());
|
||||
save(benefitPoint);
|
||||
}
|
||||
if (baseMapper.deductBenefitPoint(dto.getUserId(), dto.getAmount() ,benefitPoint.getVersion()) <= 0
|
||||
|| !benefitPointLogService.updateById(benefitPointLog.setIsComplete(1).setLastAmount(benefitPoint.getAmount()))){
|
||||
log.error("扣除福利积分失败, dto: [{}]" , dto);
|
||||
throw new RuntimeException("扣除福利积分失败");
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
private CommonBenefitPointLogEntity saveBenefitPointLog(CommonBenefitPointApiDTO dto , Integer type){
|
||||
CommonBenefitPointLogEntity benefitPointLog = AppCommonConvert.INSTANCE.convertBenefitPointDTOToEntity(dto);
|
||||
benefitPointLog.setType(type);
|
||||
benefitPointLog.setStatisticalDate(DateUtil.getToday());
|
||||
if (type == 2){
|
||||
benefitPointLog.setAmount(dto.getAmount().negate());
|
||||
benefitPointLog.setFee(dto.getFee().negate());
|
||||
}
|
||||
|
||||
if (!benefitPointLogService.save(benefitPointLog)){
|
||||
throw new RuntimeException("福利积分流水记录失败");
|
||||
}
|
||||
|
||||
return benefitPointLog;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.common.service.impl;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.CommonCashCouponLogEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonCashCouponLogVO;
|
||||
import org.springblade.modules.common.mapper.CommonCashCouponLogMapper;
|
||||
import org.springblade.modules.common.service.ICommonCashCouponLogService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.core.mp.base.BaseServiceImpl;
|
||||
|
||||
/**
|
||||
* 用户现金券流水表 服务实现类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@Service
|
||||
public class CommonCashCouponLogServiceImpl extends BaseServiceImpl<CommonCashCouponLogMapper, CommonCashCouponLogEntity> implements ICommonCashCouponLogService {
|
||||
|
||||
@Override
|
||||
public IPage<CommonCashCouponLogVO> selectCommonCashCouponLogPage(IPage<CommonCashCouponLogVO> page, CommonCashCouponLogVO commonCashCouponLog) {
|
||||
return page.setRecords(baseMapper.selectCommonCashCouponLogPage(page, commonCashCouponLog));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.common.service.impl;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springblade.common.utils.date.DateUtil;
|
||||
import org.springblade.modules.common.convert.AppCommonConvert;
|
||||
import org.springblade.modules.common.pojo.dto.CommonCashCouponApiDTO;
|
||||
import org.springblade.modules.common.pojo.entity.CommonBenefitPointEntity;
|
||||
import org.springblade.modules.common.pojo.entity.CommonCashCouponEntity;
|
||||
import org.springblade.modules.common.pojo.entity.CommonCashCouponLogEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonCashCouponVO;
|
||||
import org.springblade.modules.common.mapper.CommonCashCouponMapper;
|
||||
import org.springblade.modules.common.service.ICommonCashCouponLogService;
|
||||
import org.springblade.modules.common.service.ICommonCashCouponService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.core.mp.base.BaseServiceImpl;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 用户现金券表 服务实现类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class CommonCashCouponServiceImpl extends BaseServiceImpl<CommonCashCouponMapper, CommonCashCouponEntity> implements ICommonCashCouponService {
|
||||
|
||||
private final ICommonCashCouponLogService cashCouponLogService;
|
||||
|
||||
@Override
|
||||
public IPage<CommonCashCouponVO> selectCommonCashCouponPage(IPage<CommonCashCouponVO> page, CommonCashCouponVO commonCashCoupon) {
|
||||
return page.setRecords(baseMapper.selectCommonCashCouponPage(page, commonCashCoupon));
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean addCashCoupon(CommonCashCouponApiDTO dto) {
|
||||
CommonCashCouponLogEntity cashCouponLog = saveBenefitPointLog(dto , 1);
|
||||
CommonCashCouponEntity cashCoupon = getById(dto.getUserId());
|
||||
if (cashCoupon == null){
|
||||
cashCoupon = new CommonCashCouponEntity();
|
||||
cashCoupon.setId(dto.getUserId());
|
||||
cashCoupon.setAmount(BigDecimal.ZERO);
|
||||
cashCoupon.setVersion(1);
|
||||
cashCoupon.setCreateTime(new Date());
|
||||
save(cashCoupon);
|
||||
}
|
||||
|
||||
if (baseMapper.addCashCoupon(dto.getUserId(), dto.getAmount() ,cashCoupon.getVersion()) <= 0
|
||||
|| !cashCouponLogService.updateById(cashCouponLog.setIsComplete(1).setLastAmount(cashCoupon.getAmount()))
|
||||
){
|
||||
log.error("增加现金券失败, dto: [{}]" , dto);
|
||||
throw new RuntimeException("增加现金券失败");
|
||||
}
|
||||
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean deductCashCoupon(CommonCashCouponApiDTO dto) {
|
||||
CommonCashCouponLogEntity cashCouponLog = saveBenefitPointLog(dto , 2);
|
||||
CommonCashCouponEntity cashCoupon = getById(dto.getUserId());
|
||||
if (cashCoupon == null){
|
||||
cashCoupon = new CommonCashCouponEntity();
|
||||
cashCoupon.setId(dto.getUserId());
|
||||
cashCoupon.setAmount(BigDecimal.ZERO);
|
||||
cashCoupon.setVersion(1);
|
||||
cashCoupon.setCreateTime(new Date());
|
||||
save(cashCoupon);
|
||||
}
|
||||
if (baseMapper.deductCashCoupon(dto.getUserId(), dto.getAmount() ,cashCoupon.getVersion()) <= 0
|
||||
|| !cashCouponLogService.updateById(cashCouponLog.setIsComplete(1).setLastAmount(cashCoupon.getAmount()))
|
||||
){
|
||||
log.error("扣除现金券失败, dto: [{}]" , dto);
|
||||
throw new RuntimeException("扣除现金券失败");
|
||||
}
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
|
||||
|
||||
private CommonCashCouponLogEntity saveBenefitPointLog(CommonCashCouponApiDTO dto , Integer type){
|
||||
CommonCashCouponLogEntity cashCouponLog = AppCommonConvert.INSTANCE.convertCashCouponDTOToEntity(dto);
|
||||
cashCouponLog.setType(type);
|
||||
cashCouponLog.setStatisticalDate(DateUtil.getToday());
|
||||
if (type == 2){
|
||||
cashCouponLog.setAmount(dto.getAmount().negate());
|
||||
}
|
||||
|
||||
if (!cashCouponLogService.save(cashCouponLog)){
|
||||
throw new RuntimeException("现金券流水记录失败");
|
||||
}
|
||||
|
||||
return cashCouponLog;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -26,6 +26,7 @@
|
||||
package org.springblade.modules.common.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import org.springblade.modules.api.vo.FullRegionInfoVO;
|
||||
import org.springblade.modules.common.convert.AppCommonConvert;
|
||||
import org.springblade.modules.common.pojo.entity.CommonRegionsInfoEntity;
|
||||
import org.springblade.modules.common.pojo.vo.AppCommonRegionsInfoVO;
|
||||
@@ -35,6 +36,8 @@ import org.springblade.modules.common.service.ICommonRegionsInfoService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.core.mp.base.BaseServiceImpl;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -64,4 +67,29 @@ public class CommonRegionsInfoServiceImpl extends BaseServiceImpl<CommonRegionsI
|
||||
return AppCommonConvert.INSTANCE.convertRegionsInfoListVO(regionsInfoList);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FullRegionInfoVO queryFullInfo(Long regionId) {
|
||||
CommonRegionsInfoEntity regionInfo = getById(regionId);
|
||||
Assert.notNull(regionInfo, "无效地区");
|
||||
Assert.isTrue(regionInfo.getLevel() > 0 && regionInfo.getLevel() < 5, "无效地区");
|
||||
FullRegionInfoVO result = new FullRegionInfoVO().setCurrentLevel(regionInfo.getLevel());
|
||||
switch (regionInfo.getLevel()) {
|
||||
case 4:
|
||||
result.setStreet(regionInfo.getName()).setStreetId(regionId);
|
||||
regionInfo = getById(regionInfo.getPid());
|
||||
case 3:
|
||||
result.setDistrict(regionInfo.getName()).setDistrictId(regionId);
|
||||
regionInfo = getById(regionInfo.getPid());
|
||||
case 2:
|
||||
result.setCity(regionInfo.getName()).setCityId(regionId);
|
||||
regionInfo = getById(regionInfo.getPid());
|
||||
case 1:
|
||||
result.setProvince(regionInfo.getName()).setProvinceId(regionId);
|
||||
break;
|
||||
default:
|
||||
throw new RuntimeException("无效地区");
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -25,13 +25,26 @@
|
||||
*/
|
||||
package org.springblade.modules.common.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springblade.core.secure.utils.AuthUtil;
|
||||
import org.springblade.modules.api.request.AddressSubmitRequest;
|
||||
import org.springblade.modules.api.vo.CommonUserAddressApiVO;
|
||||
import org.springblade.modules.api.vo.FullRegionInfoVO;
|
||||
import org.springblade.modules.common.convert.AppCommonConvert;
|
||||
import org.springblade.modules.common.pojo.entity.CommonRegionsInfoEntity;
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserAddressEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonUserAddressVO;
|
||||
import org.springblade.modules.common.mapper.CommonUserAddressMapper;
|
||||
import org.springblade.modules.common.service.ICommonRegionsInfoService;
|
||||
import org.springblade.modules.common.service.ICommonUserAddressService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.core.mp.base.BaseServiceImpl;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.function.Predicate;
|
||||
|
||||
/**
|
||||
* 用户地址表 服务实现类
|
||||
@@ -40,11 +53,53 @@ import org.springblade.core.mp.base.BaseServiceImpl;
|
||||
* @since 2026-02-05
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class CommonUserAddressServiceImpl extends BaseServiceImpl<CommonUserAddressMapper, CommonUserAddressEntity> implements ICommonUserAddressService {
|
||||
|
||||
private final ICommonRegionsInfoService regionInfoService;
|
||||
|
||||
@Override
|
||||
public IPage<CommonUserAddressVO> selectUserAddressPage(IPage<CommonUserAddressVO> page, CommonUserAddressVO userAddress) {
|
||||
return page.setRecords(baseMapper.selectUserAddressPage(page, userAddress));
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<CommonUserAddressApiVO> selectAddressList(IPage<CommonUserAddressApiVO> page, CommonUserAddressApiVO commonUserAddressVO) {
|
||||
List<CommonUserAddressEntity> addressList = list(Wrappers.lambdaQuery(CommonUserAddressEntity.class)
|
||||
.eq(CommonUserAddressEntity::getUserId, AuthUtil.getUserId())
|
||||
.orderByDesc(CommonUserAddressEntity::getIsDefault , CommonUserAddressEntity::getId));
|
||||
return AppCommonConvert.INSTANCE.convertAddressListToVoList(addressList);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean submitAddress(AddressSubmitRequest request) {
|
||||
|
||||
FullRegionInfoVO regionInfo = regionInfoService.queryFullInfo(Long.valueOf(request.getRegionsInfoId()));
|
||||
Assert.isTrue(regionInfo.getCurrentLevel() == 4, "请选择所属街道");
|
||||
Assert.isTrue(isMobile(request.getPhone()), "手机号码格式不正确");
|
||||
Assert.isTrue(request.getConsignee().length() < 100 , "名字不能超过100个字");
|
||||
CommonUserAddressEntity address = AppCommonConvert.INSTANCE.convertRequestToPo(request);
|
||||
address
|
||||
.setProvince(regionInfo.getProvince())
|
||||
.setCity(regionInfo.getCity())
|
||||
.setDistrict(regionInfo.getDistrict())
|
||||
.setUserId(AuthUtil.getUserId())
|
||||
.setStreet(regionInfo.getStreet());
|
||||
if (request.getIsDefault() == 1) {
|
||||
update(Wrappers.lambdaUpdate(CommonUserAddressEntity.class).eq(CommonUserAddressEntity::getUserId, AuthUtil.getUserId()).set(CommonUserAddressEntity::getIsDefault, 0));
|
||||
}
|
||||
return saveOrUpdate(address);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean removeAddress(List<Long> ids) {
|
||||
return removeByIds(ids);
|
||||
}
|
||||
|
||||
private Boolean isMobile(String phone){
|
||||
Predicate<String> isPhoneValid = p -> p.matches("^1[3-9]\\d{9}$");
|
||||
return isPhoneValid.test(phone);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
package org.springblade.modules.common.service.impl;
|
||||
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserPointLogEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonUserPointLogVO;
|
||||
import org.springblade.modules.common.mapper.CommonUserPointLogMapper;
|
||||
import org.springblade.modules.common.service.ICommonUserPointLogService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.core.mp.base.BaseServiceImpl;
|
||||
|
||||
/**
|
||||
* 用户商城积分流水表 服务实现类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@Service
|
||||
public class CommonUserPointLogServiceImpl extends BaseServiceImpl<CommonUserPointLogMapper, CommonUserPointLogEntity> implements ICommonUserPointLogService {
|
||||
|
||||
@Override
|
||||
public IPage<CommonUserPointLogVO> selectCommonUserPointLogPage(IPage<CommonUserPointLogVO> page, CommonUserPointLogVO commonUserPointLog) {
|
||||
return page.setRecords(baseMapper.selectCommonUserPointLogPage(page, commonUserPointLog));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
package org.springblade.modules.common.service.impl;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springblade.common.utils.date.DateUtil;
|
||||
import org.springblade.modules.common.convert.AppCommonConvert;
|
||||
import org.springblade.modules.common.pojo.dto.CommonUserPointApiDTO;
|
||||
import org.springblade.modules.common.pojo.entity.CommonCashCouponEntity;
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserPointEntity;
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserPointLogEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonUserPointVO;
|
||||
import org.springblade.modules.common.mapper.CommonUserPointMapper;
|
||||
import org.springblade.modules.common.service.ICommonUserPointLogService;
|
||||
import org.springblade.modules.common.service.ICommonUserPointService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.core.mp.base.BaseServiceImpl;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 用户商城积分表 服务实现类
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class CommonUserPointServiceImpl extends BaseServiceImpl<CommonUserPointMapper, CommonUserPointEntity> implements ICommonUserPointService {
|
||||
|
||||
private final ICommonUserPointLogService userPointLogService;
|
||||
|
||||
@Override
|
||||
public IPage<CommonUserPointVO> selectCommonUserPointPage(IPage<CommonUserPointVO> page, CommonUserPointVO commonUserPoint) {
|
||||
return page.setRecords(baseMapper.selectCommonUserPointPage(page, commonUserPoint));
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean addUserPoint(CommonUserPointApiDTO dto) {
|
||||
CommonUserPointLogEntity userPointLog = saveBenefitPointLog(dto, 1);
|
||||
CommonUserPointEntity userPoint = getById(dto.getUserId());
|
||||
if (userPoint == null){
|
||||
userPoint = new CommonUserPointEntity();
|
||||
userPoint.setId(dto.getUserId());
|
||||
userPoint.setAmount(BigDecimal.ZERO);
|
||||
userPoint.setVersion(1);
|
||||
userPoint.setCreateTime(new Date());
|
||||
save(userPoint);
|
||||
}
|
||||
|
||||
if (baseMapper.addUserPoint(dto.getUserId(), dto.getAmount() ,userPoint.getVersion()) <= 0
|
||||
|| !userPointLogService.updateById(userPointLog.setIsComplete(1).setLastAmount(userPoint.getAmount()))
|
||||
){
|
||||
log.error("增加商城积分失败, dto: [{}]" , dto);
|
||||
throw new RuntimeException("增加商城积分失败");
|
||||
}
|
||||
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean deductUserPoint(CommonUserPointApiDTO dto) {
|
||||
CommonUserPointLogEntity userPointLog = saveBenefitPointLog(dto, 2);
|
||||
CommonUserPointEntity userPoint = getById(dto.getUserId());
|
||||
if (userPoint == null){
|
||||
userPoint = new CommonUserPointEntity();
|
||||
userPoint.setId(dto.getUserId());
|
||||
userPoint.setAmount(BigDecimal.ZERO);
|
||||
userPoint.setVersion(1);
|
||||
userPoint.setCreateTime(new Date());
|
||||
save(userPoint);
|
||||
}
|
||||
if (baseMapper.deductUserPoint(dto.getUserId(), dto.getAmount() ,userPoint.getVersion()) <= 0
|
||||
|| !userPointLogService.updateById(userPointLog.setIsComplete(1).setLastAmount(userPoint.getAmount()))
|
||||
){
|
||||
log.error("扣除商城积分失败, dto: [{}]" , dto);
|
||||
throw new RuntimeException("扣除商城积分失败");
|
||||
}
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
|
||||
|
||||
private CommonUserPointLogEntity saveBenefitPointLog(CommonUserPointApiDTO dto , Integer type){
|
||||
CommonUserPointLogEntity userPointLog = AppCommonConvert.INSTANCE.convertUserPointDTOToEntity(dto);
|
||||
userPointLog.setType(type);
|
||||
userPointLog.setStatisticalDate(DateUtil.getToday());
|
||||
if (type == 2){
|
||||
userPointLog.setAmount(dto.getAmount().negate());
|
||||
}
|
||||
|
||||
if (!userPointLogService.save(userPointLog)){
|
||||
throw new RuntimeException("商城积分流水记录失败");
|
||||
}
|
||||
|
||||
return userPointLog;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.common.wrapper;
|
||||
|
||||
import org.springblade.core.mp.support.BaseEntityWrapper;
|
||||
import org.springblade.core.tool.utils.BeanUtil;
|
||||
import org.springblade.modules.common.pojo.entity.CommonBenefitPointLogEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonBenefitPointLogVO;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 用户福利值流水表 包装类,返回视图层所需的字段
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
public class CommonBenefitPointLogWrapper extends BaseEntityWrapper<CommonBenefitPointLogEntity, CommonBenefitPointLogVO> {
|
||||
|
||||
public static CommonBenefitPointLogWrapper build() {
|
||||
return new CommonBenefitPointLogWrapper();
|
||||
}
|
||||
|
||||
@Override
|
||||
public CommonBenefitPointLogVO entityVO(CommonBenefitPointLogEntity commonBenefitPointLog) {
|
||||
CommonBenefitPointLogVO commonBenefitPointLogVO = Objects.requireNonNull(BeanUtil.copyProperties(commonBenefitPointLog, CommonBenefitPointLogVO.class));
|
||||
|
||||
//User createUser = UserCache.getUser(commonBenefitPointLog.getCreateUser());
|
||||
//User updateUser = UserCache.getUser(commonBenefitPointLog.getUpdateUser());
|
||||
//commonBenefitPointLogVO.setCreateUserName(createUser.getName());
|
||||
//commonBenefitPointLogVO.setUpdateUserName(updateUser.getName());
|
||||
|
||||
return commonBenefitPointLogVO;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.common.wrapper;
|
||||
|
||||
import org.springblade.core.mp.support.BaseEntityWrapper;
|
||||
import org.springblade.core.tool.utils.BeanUtil;
|
||||
import org.springblade.modules.common.pojo.entity.CommonBenefitPointEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonBenefitPointVO;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 用户福利值表 包装类,返回视图层所需的字段
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
public class CommonBenefitPointWrapper extends BaseEntityWrapper<CommonBenefitPointEntity, CommonBenefitPointVO> {
|
||||
|
||||
public static CommonBenefitPointWrapper build() {
|
||||
return new CommonBenefitPointWrapper();
|
||||
}
|
||||
|
||||
@Override
|
||||
public CommonBenefitPointVO entityVO(CommonBenefitPointEntity commonBenefitPoint) {
|
||||
CommonBenefitPointVO commonBenefitPointVO = Objects.requireNonNull(BeanUtil.copyProperties(commonBenefitPoint, CommonBenefitPointVO.class));
|
||||
|
||||
//User createUser = UserCache.getUser(commonBenefitPoint.getCreateUser());
|
||||
//User updateUser = UserCache.getUser(commonBenefitPoint.getUpdateUser());
|
||||
//commonBenefitPointVO.setCreateUserName(createUser.getName());
|
||||
//commonBenefitPointVO.setUpdateUserName(updateUser.getName());
|
||||
|
||||
return commonBenefitPointVO;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.common.wrapper;
|
||||
|
||||
import org.springblade.core.mp.support.BaseEntityWrapper;
|
||||
import org.springblade.core.tool.utils.BeanUtil;
|
||||
import org.springblade.modules.common.pojo.entity.CommonCashCouponLogEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonCashCouponLogVO;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 用户现金券流水表 包装类,返回视图层所需的字段
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
public class CommonCashCouponLogWrapper extends BaseEntityWrapper<CommonCashCouponLogEntity, CommonCashCouponLogVO> {
|
||||
|
||||
public static CommonCashCouponLogWrapper build() {
|
||||
return new CommonCashCouponLogWrapper();
|
||||
}
|
||||
|
||||
@Override
|
||||
public CommonCashCouponLogVO entityVO(CommonCashCouponLogEntity commonCashCouponLog) {
|
||||
CommonCashCouponLogVO commonCashCouponLogVO = Objects.requireNonNull(BeanUtil.copyProperties(commonCashCouponLog, CommonCashCouponLogVO.class));
|
||||
|
||||
//User createUser = UserCache.getUser(commonCashCouponLog.getCreateUser());
|
||||
//User updateUser = UserCache.getUser(commonCashCouponLog.getUpdateUser());
|
||||
//commonCashCouponLogVO.setCreateUserName(createUser.getName());
|
||||
//commonCashCouponLogVO.setUpdateUserName(updateUser.getName());
|
||||
|
||||
return commonCashCouponLogVO;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.common.wrapper;
|
||||
|
||||
import org.springblade.core.mp.support.BaseEntityWrapper;
|
||||
import org.springblade.core.tool.utils.BeanUtil;
|
||||
import org.springblade.modules.common.pojo.entity.CommonCashCouponEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonCashCouponVO;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 用户现金券表 包装类,返回视图层所需的字段
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
public class CommonCashCouponWrapper extends BaseEntityWrapper<CommonCashCouponEntity, CommonCashCouponVO> {
|
||||
|
||||
public static CommonCashCouponWrapper build() {
|
||||
return new CommonCashCouponWrapper();
|
||||
}
|
||||
|
||||
@Override
|
||||
public CommonCashCouponVO entityVO(CommonCashCouponEntity commonCashCoupon) {
|
||||
CommonCashCouponVO commonCashCouponVO = Objects.requireNonNull(BeanUtil.copyProperties(commonCashCoupon, CommonCashCouponVO.class));
|
||||
|
||||
//User createUser = UserCache.getUser(commonCashCoupon.getCreateUser());
|
||||
//User updateUser = UserCache.getUser(commonCashCoupon.getUpdateUser());
|
||||
//commonCashCouponVO.setCreateUserName(createUser.getName());
|
||||
//commonCashCouponVO.setUpdateUserName(updateUser.getName());
|
||||
|
||||
return commonCashCouponVO;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.common.wrapper;
|
||||
|
||||
import org.springblade.core.mp.support.BaseEntityWrapper;
|
||||
import org.springblade.core.tool.utils.BeanUtil;
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserPointLogEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonUserPointLogVO;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 用户商城积分流水表 包装类,返回视图层所需的字段
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
public class CommonUserPointLogWrapper extends BaseEntityWrapper<CommonUserPointLogEntity, CommonUserPointLogVO> {
|
||||
|
||||
public static CommonUserPointLogWrapper build() {
|
||||
return new CommonUserPointLogWrapper();
|
||||
}
|
||||
|
||||
@Override
|
||||
public CommonUserPointLogVO entityVO(CommonUserPointLogEntity commonUserPointLog) {
|
||||
CommonUserPointLogVO commonUserPointLogVO = Objects.requireNonNull(BeanUtil.copyProperties(commonUserPointLog, CommonUserPointLogVO.class));
|
||||
|
||||
//User createUser = UserCache.getUser(commonUserPointLog.getCreateUser());
|
||||
//User updateUser = UserCache.getUser(commonUserPointLog.getUpdateUser());
|
||||
//commonUserPointLogVO.setCreateUserName(createUser.getName());
|
||||
//commonUserPointLogVO.setUpdateUserName(updateUser.getName());
|
||||
|
||||
return commonUserPointLogVO;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.common.wrapper;
|
||||
|
||||
import org.springblade.core.mp.support.BaseEntityWrapper;
|
||||
import org.springblade.core.tool.utils.BeanUtil;
|
||||
import org.springblade.modules.common.pojo.entity.CommonUserPointEntity;
|
||||
import org.springblade.modules.common.pojo.vo.CommonUserPointVO;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 用户商城积分表 包装类,返回视图层所需的字段
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
public class CommonUserPointWrapper extends BaseEntityWrapper<CommonUserPointEntity, CommonUserPointVO> {
|
||||
|
||||
public static CommonUserPointWrapper build() {
|
||||
return new CommonUserPointWrapper();
|
||||
}
|
||||
|
||||
@Override
|
||||
public CommonUserPointVO entityVO(CommonUserPointEntity commonUserPoint) {
|
||||
CommonUserPointVO commonUserPointVO = Objects.requireNonNull(BeanUtil.copyProperties(commonUserPoint, CommonUserPointVO.class));
|
||||
|
||||
//User createUser = UserCache.getUser(commonUserPoint.getCreateUser());
|
||||
//User updateUser = UserCache.getUser(commonUserPoint.getUpdateUser());
|
||||
//commonUserPointVO.setCreateUserName(createUser.getName());
|
||||
//commonUserPointVO.setUpdateUserName(updateUser.getName());
|
||||
|
||||
return commonUserPointVO;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
package org.springblade.modules.market.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||
import lombok.AllArgsConstructor;
|
||||
import jakarta.validation.Valid;
|
||||
|
||||
import org.springblade.core.mp.support.Condition;
|
||||
import org.springblade.core.mp.support.Query;
|
||||
import org.springblade.core.tool.api.R;
|
||||
import org.springblade.core.tool.utils.Func;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.modules.market.pojo.entity.MarketCommissionAccountEntity;
|
||||
import org.springblade.modules.market.pojo.vo.MarketCommissionAccountVO;
|
||||
import org.springblade.modules.market.wrapper.MarketCommissionAccountWrapper;
|
||||
import org.springblade.modules.market.service.IMarketCommissionAccountService;
|
||||
import org.springblade.core.boot.ctrl.BladeController;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* 用户佣金账户表 控制器
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/market-commission/account")
|
||||
@Tag(name = "用户佣金账户表", description = "用户佣金账户表接口")
|
||||
public class MarketCommissionAccountController extends BladeController {
|
||||
|
||||
private final IMarketCommissionAccountService marketCommissionAccountService;
|
||||
|
||||
/**
|
||||
* 用户佣金账户表 详情
|
||||
*/
|
||||
@GetMapping("/detail")
|
||||
@ApiOperationSupport(order = 1)
|
||||
@Operation(summary = "详情", description = "传入marketCommissionAccount")
|
||||
public R<MarketCommissionAccountVO> detail(MarketCommissionAccountEntity marketCommissionAccount) {
|
||||
MarketCommissionAccountEntity detail = marketCommissionAccountService.getOne(Condition.getQueryWrapper(marketCommissionAccount));
|
||||
return R.data(MarketCommissionAccountWrapper.build().entityVO(detail));
|
||||
}
|
||||
/**
|
||||
* 用户佣金账户表 分页
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperationSupport(order = 2)
|
||||
@Operation(summary = "分页", description = "传入marketCommissionAccount")
|
||||
public R<IPage<MarketCommissionAccountVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> marketCommissionAccount, Query query) {
|
||||
IPage<MarketCommissionAccountEntity> pages = marketCommissionAccountService.page(Condition.getPage(query), Condition.getQueryWrapper(marketCommissionAccount, MarketCommissionAccountEntity.class));
|
||||
return R.data(MarketCommissionAccountWrapper.build().pageVO(pages));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户佣金账户表 自定义分页
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@ApiOperationSupport(order = 3)
|
||||
@Operation(summary = "分页", description = "传入marketCommissionAccount")
|
||||
public R<IPage<MarketCommissionAccountVO>> page(MarketCommissionAccountVO marketCommissionAccount, Query query) {
|
||||
IPage<MarketCommissionAccountVO> pages = marketCommissionAccountService.selectMarketCommissionAccountPage(Condition.getPage(query), marketCommissionAccount);
|
||||
return R.data(pages);
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户佣金账户表 新增
|
||||
*/
|
||||
@PostMapping("/save")
|
||||
@ApiOperationSupport(order = 4)
|
||||
@Operation(summary = "新增", description = "传入marketCommissionAccount")
|
||||
public R save(@Valid @RequestBody MarketCommissionAccountEntity marketCommissionAccount) {
|
||||
return R.status(marketCommissionAccountService.save(marketCommissionAccount));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户佣金账户表 修改
|
||||
*/
|
||||
@PostMapping("/update")
|
||||
@ApiOperationSupport(order = 5)
|
||||
@Operation(summary = "修改", description = "传入marketCommissionAccount")
|
||||
public R update(@Valid @RequestBody MarketCommissionAccountEntity marketCommissionAccount) {
|
||||
return R.status(marketCommissionAccountService.updateById(marketCommissionAccount));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户佣金账户表 新增或修改
|
||||
*/
|
||||
@PostMapping("/submit")
|
||||
@ApiOperationSupport(order = 6)
|
||||
@Operation(summary = "新增或修改", description = "传入marketCommissionAccount")
|
||||
public R submit(@Valid @RequestBody MarketCommissionAccountEntity marketCommissionAccount) {
|
||||
return R.status(marketCommissionAccountService.saveOrUpdate(marketCommissionAccount));
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户佣金账户表 删除
|
||||
*/
|
||||
@PostMapping("/remove")
|
||||
@ApiOperationSupport(order = 7)
|
||||
@Operation(summary = "逻辑删除", description = "传入ids")
|
||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
|
||||
return R.status(marketCommissionAccountService.deleteLogic(Func.toLongList(ids)));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
package org.springblade.modules.market.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||
import lombok.AllArgsConstructor;
|
||||
import jakarta.validation.Valid;
|
||||
|
||||
import org.springblade.core.mp.support.Condition;
|
||||
import org.springblade.core.mp.support.Query;
|
||||
import org.springblade.core.tool.api.R;
|
||||
import org.springblade.core.tool.utils.Func;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.modules.market.pojo.entity.MarketCommissionAdvertisingLogEntity;
|
||||
import org.springblade.modules.market.pojo.vo.MarketCommissionAdvertisingLogVO;
|
||||
import org.springblade.modules.market.wrapper.MarketCommissionAdvertisingLogWrapper;
|
||||
import org.springblade.modules.market.service.IMarketCommissionAdvertisingLogService;
|
||||
import org.springblade.core.boot.ctrl.BladeController;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 5%广告补贴佣金流水表 控制器
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/market-commission/advertising-log")
|
||||
@Tag(name = "5%广告补贴佣金流水表", description = "5%广告补贴佣金流水表接口")
|
||||
public class MarketCommissionAdvertisingLogController extends BladeController {
|
||||
|
||||
private final IMarketCommissionAdvertisingLogService marketCommissionAdvertisingLogService;
|
||||
|
||||
/**
|
||||
* 5%广告补贴佣金流水表 详情
|
||||
*/
|
||||
@GetMapping("/detail")
|
||||
@ApiOperationSupport(order = 1)
|
||||
@Operation(summary = "详情", description = "传入marketCommissionAdvertisingLog")
|
||||
public R<MarketCommissionAdvertisingLogVO> detail(MarketCommissionAdvertisingLogEntity marketCommissionAdvertisingLog) {
|
||||
MarketCommissionAdvertisingLogEntity detail = marketCommissionAdvertisingLogService.getOne(Condition.getQueryWrapper(marketCommissionAdvertisingLog));
|
||||
return R.data(MarketCommissionAdvertisingLogWrapper.build().entityVO(detail));
|
||||
}
|
||||
/**
|
||||
* 5%广告补贴佣金流水表 分页
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperationSupport(order = 2)
|
||||
@Operation(summary = "分页", description = "传入marketCommissionAdvertisingLog")
|
||||
public R<IPage<MarketCommissionAdvertisingLogVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> marketCommissionAdvertisingLog, Query query) {
|
||||
IPage<MarketCommissionAdvertisingLogEntity> pages = marketCommissionAdvertisingLogService.page(Condition.getPage(query), Condition.getQueryWrapper(marketCommissionAdvertisingLog, MarketCommissionAdvertisingLogEntity.class));
|
||||
return R.data(MarketCommissionAdvertisingLogWrapper.build().pageVO(pages));
|
||||
}
|
||||
|
||||
/**
|
||||
* 5%广告补贴佣金流水表 自定义分页
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@ApiOperationSupport(order = 3)
|
||||
@Operation(summary = "分页", description = "传入marketCommissionAdvertisingLog")
|
||||
public R<IPage<MarketCommissionAdvertisingLogVO>> page(MarketCommissionAdvertisingLogVO marketCommissionAdvertisingLog, Query query) {
|
||||
IPage<MarketCommissionAdvertisingLogVO> pages = marketCommissionAdvertisingLogService.selectMarketCommissionAdvertisingLogPage(Condition.getPage(query), marketCommissionAdvertisingLog);
|
||||
return R.data(pages);
|
||||
}
|
||||
|
||||
/**
|
||||
* 5%广告补贴佣金流水表 新增
|
||||
*/
|
||||
@PostMapping("/save")
|
||||
@ApiOperationSupport(order = 4)
|
||||
@Operation(summary = "新增", description = "传入marketCommissionAdvertisingLog")
|
||||
public R save(@Valid @RequestBody MarketCommissionAdvertisingLogEntity marketCommissionAdvertisingLog) {
|
||||
return R.status(marketCommissionAdvertisingLogService.save(marketCommissionAdvertisingLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 5%广告补贴佣金流水表 修改
|
||||
*/
|
||||
@PostMapping("/update")
|
||||
@ApiOperationSupport(order = 5)
|
||||
@Operation(summary = "修改", description = "传入marketCommissionAdvertisingLog")
|
||||
public R update(@Valid @RequestBody MarketCommissionAdvertisingLogEntity marketCommissionAdvertisingLog) {
|
||||
return R.status(marketCommissionAdvertisingLogService.updateById(marketCommissionAdvertisingLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 5%广告补贴佣金流水表 新增或修改
|
||||
*/
|
||||
@PostMapping("/submit")
|
||||
@ApiOperationSupport(order = 6)
|
||||
@Operation(summary = "新增或修改", description = "传入marketCommissionAdvertisingLog")
|
||||
public R submit(@Valid @RequestBody MarketCommissionAdvertisingLogEntity marketCommissionAdvertisingLog) {
|
||||
return R.status(marketCommissionAdvertisingLogService.saveOrUpdate(marketCommissionAdvertisingLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 5%广告补贴佣金流水表 删除
|
||||
*/
|
||||
@PostMapping("/remove")
|
||||
@ApiOperationSupport(order = 7)
|
||||
@Operation(summary = "逻辑删除", description = "传入ids")
|
||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
|
||||
return R.status(marketCommissionAdvertisingLogService.deleteLogic(Func.toLongList(ids)));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package org.springblade.modules.market.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||
import lombok.AllArgsConstructor;
|
||||
import jakarta.validation.Valid;
|
||||
|
||||
import org.springblade.core.mp.support.Condition;
|
||||
import org.springblade.core.mp.support.Query;
|
||||
import org.springblade.core.tool.api.R;
|
||||
import org.springblade.core.tool.utils.Func;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.modules.market.pojo.entity.MarketCommissionAgencyLogEntity;
|
||||
import org.springblade.modules.market.pojo.vo.MarketCommissionAgencyLogVO;
|
||||
import org.springblade.modules.market.wrapper.MarketCommissionAgencyLogWrapper;
|
||||
import org.springblade.modules.market.service.IMarketCommissionAgencyLogService;
|
||||
import org.springblade.core.boot.ctrl.BladeController;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* 15%极差代理佣金流水表 控制器
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/market-commission/agency-log")
|
||||
@Tag(name = "15%极差代理佣金流水表", description = "15%极差代理佣金流水表接口")
|
||||
public class MarketCommissionAgencyLogController extends BladeController {
|
||||
|
||||
private final IMarketCommissionAgencyLogService marketCommissionAgencyLogService;
|
||||
|
||||
/**
|
||||
* 15%极差代理佣金流水表 详情
|
||||
*/
|
||||
@GetMapping("/detail")
|
||||
@ApiOperationSupport(order = 1)
|
||||
@Operation(summary = "详情", description = "传入marketCommissionAgencyLog")
|
||||
public R<MarketCommissionAgencyLogVO> detail(MarketCommissionAgencyLogEntity marketCommissionAgencyLog) {
|
||||
MarketCommissionAgencyLogEntity detail = marketCommissionAgencyLogService.getOne(Condition.getQueryWrapper(marketCommissionAgencyLog));
|
||||
return R.data(MarketCommissionAgencyLogWrapper.build().entityVO(detail));
|
||||
}
|
||||
/**
|
||||
* 15%极差代理佣金流水表 分页
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperationSupport(order = 2)
|
||||
@Operation(summary = "分页", description = "传入marketCommissionAgencyLog")
|
||||
public R<IPage<MarketCommissionAgencyLogVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> marketCommissionAgencyLog, Query query) {
|
||||
IPage<MarketCommissionAgencyLogEntity> pages = marketCommissionAgencyLogService.page(Condition.getPage(query), Condition.getQueryWrapper(marketCommissionAgencyLog, MarketCommissionAgencyLogEntity.class));
|
||||
return R.data(MarketCommissionAgencyLogWrapper.build().pageVO(pages));
|
||||
}
|
||||
|
||||
/**
|
||||
* 15%极差代理佣金流水表 自定义分页
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@ApiOperationSupport(order = 3)
|
||||
@Operation(summary = "分页", description = "传入marketCommissionAgencyLog")
|
||||
public R<IPage<MarketCommissionAgencyLogVO>> page(MarketCommissionAgencyLogVO marketCommissionAgencyLog, Query query) {
|
||||
IPage<MarketCommissionAgencyLogVO> pages = marketCommissionAgencyLogService.selectMarketCommissionAgencyLogPage(Condition.getPage(query), marketCommissionAgencyLog);
|
||||
return R.data(pages);
|
||||
}
|
||||
|
||||
/**
|
||||
* 15%极差代理佣金流水表 新增
|
||||
*/
|
||||
@PostMapping("/save")
|
||||
@ApiOperationSupport(order = 4)
|
||||
@Operation(summary = "新增", description = "传入marketCommissionAgencyLog")
|
||||
public R save(@Valid @RequestBody MarketCommissionAgencyLogEntity marketCommissionAgencyLog) {
|
||||
return R.status(marketCommissionAgencyLogService.save(marketCommissionAgencyLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 15%极差代理佣金流水表 修改
|
||||
*/
|
||||
@PostMapping("/update")
|
||||
@ApiOperationSupport(order = 5)
|
||||
@Operation(summary = "修改", description = "传入marketCommissionAgencyLog")
|
||||
public R update(@Valid @RequestBody MarketCommissionAgencyLogEntity marketCommissionAgencyLog) {
|
||||
return R.status(marketCommissionAgencyLogService.updateById(marketCommissionAgencyLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 15%极差代理佣金流水表 新增或修改
|
||||
*/
|
||||
@PostMapping("/submit")
|
||||
@ApiOperationSupport(order = 6)
|
||||
@Operation(summary = "新增或修改", description = "传入marketCommissionAgencyLog")
|
||||
public R submit(@Valid @RequestBody MarketCommissionAgencyLogEntity marketCommissionAgencyLog) {
|
||||
return R.status(marketCommissionAgencyLogService.saveOrUpdate(marketCommissionAgencyLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 15%极差代理佣金流水表 删除
|
||||
*/
|
||||
@PostMapping("/remove")
|
||||
@ApiOperationSupport(order = 7)
|
||||
@Operation(summary = "逻辑删除", description = "传入ids")
|
||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
|
||||
return R.status(marketCommissionAgencyLogService.deleteLogic(Func.toLongList(ids)));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
package org.springblade.modules.market.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||
import lombok.AllArgsConstructor;
|
||||
import jakarta.validation.Valid;
|
||||
|
||||
import org.springblade.core.mp.support.Condition;
|
||||
import org.springblade.core.mp.support.Query;
|
||||
import org.springblade.core.tool.api.R;
|
||||
import org.springblade.core.tool.utils.Func;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.modules.market.pojo.entity.MarketCommissionCoCreatorLogEntity;
|
||||
import org.springblade.modules.market.pojo.vo.MarketCommissionCoCreatorLogVO;
|
||||
import org.springblade.modules.market.wrapper.MarketCommissionCoCreatorLogWrapper;
|
||||
import org.springblade.modules.market.service.IMarketCommissionCoCreatorLogService;
|
||||
import org.springblade.core.boot.ctrl.BladeController;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 5%联创佣金流水表 控制器
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/market-commission/cocreator-log")
|
||||
@Tag(name = "5%联创佣金流水表", description = "5%联创佣金流水表接口")
|
||||
public class MarketCommissionCoCreatorLogController extends BladeController {
|
||||
|
||||
private final IMarketCommissionCoCreatorLogService marketCommissionCoCreatorLogService;
|
||||
|
||||
/**
|
||||
* 5%联创佣金流水表 详情
|
||||
*/
|
||||
@GetMapping("/detail")
|
||||
@ApiOperationSupport(order = 1)
|
||||
@Operation(summary = "详情", description = "传入marketCommissionCoCreatorLog")
|
||||
public R<MarketCommissionCoCreatorLogVO> detail(MarketCommissionCoCreatorLogEntity marketCommissionCoCreatorLog) {
|
||||
MarketCommissionCoCreatorLogEntity detail = marketCommissionCoCreatorLogService.getOne(Condition.getQueryWrapper(marketCommissionCoCreatorLog));
|
||||
return R.data(MarketCommissionCoCreatorLogWrapper.build().entityVO(detail));
|
||||
}
|
||||
/**
|
||||
* 5%联创佣金流水表 分页
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperationSupport(order = 2)
|
||||
@Operation(summary = "分页", description = "传入marketCommissionCoCreatorLog")
|
||||
public R<IPage<MarketCommissionCoCreatorLogVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> marketCommissionCoCreatorLog, Query query) {
|
||||
IPage<MarketCommissionCoCreatorLogEntity> pages = marketCommissionCoCreatorLogService.page(Condition.getPage(query), Condition.getQueryWrapper(marketCommissionCoCreatorLog, MarketCommissionCoCreatorLogEntity.class));
|
||||
return R.data(MarketCommissionCoCreatorLogWrapper.build().pageVO(pages));
|
||||
}
|
||||
|
||||
/**
|
||||
* 5%联创佣金流水表 自定义分页
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@ApiOperationSupport(order = 3)
|
||||
@Operation(summary = "分页", description = "传入marketCommissionCoCreatorLog")
|
||||
public R<IPage<MarketCommissionCoCreatorLogVO>> page(MarketCommissionCoCreatorLogVO marketCommissionCoCreatorLog, Query query) {
|
||||
IPage<MarketCommissionCoCreatorLogVO> pages = marketCommissionCoCreatorLogService.selectMarketCommissionCoCreatorLogPage(Condition.getPage(query), marketCommissionCoCreatorLog);
|
||||
return R.data(pages);
|
||||
}
|
||||
|
||||
/**
|
||||
* 5%联创佣金流水表 新增
|
||||
*/
|
||||
@PostMapping("/save")
|
||||
@ApiOperationSupport(order = 4)
|
||||
@Operation(summary = "新增", description = "传入marketCommissionCoCreatorLog")
|
||||
public R save(@Valid @RequestBody MarketCommissionCoCreatorLogEntity marketCommissionCoCreatorLog) {
|
||||
return R.status(marketCommissionCoCreatorLogService.save(marketCommissionCoCreatorLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 5%联创佣金流水表 修改
|
||||
*/
|
||||
@PostMapping("/update")
|
||||
@ApiOperationSupport(order = 5)
|
||||
@Operation(summary = "修改", description = "传入marketCommissionCoCreatorLog")
|
||||
public R update(@Valid @RequestBody MarketCommissionCoCreatorLogEntity marketCommissionCoCreatorLog) {
|
||||
return R.status(marketCommissionCoCreatorLogService.updateById(marketCommissionCoCreatorLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 5%联创佣金流水表 新增或修改
|
||||
*/
|
||||
@PostMapping("/submit")
|
||||
@ApiOperationSupport(order = 6)
|
||||
@Operation(summary = "新增或修改", description = "传入marketCommissionCoCreatorLog")
|
||||
public R submit(@Valid @RequestBody MarketCommissionCoCreatorLogEntity marketCommissionCoCreatorLog) {
|
||||
return R.status(marketCommissionCoCreatorLogService.saveOrUpdate(marketCommissionCoCreatorLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 5%联创佣金流水表 删除
|
||||
*/
|
||||
@PostMapping("/remove")
|
||||
@ApiOperationSupport(order = 7)
|
||||
@Operation(summary = "逻辑删除", description = "传入ids")
|
||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
|
||||
return R.status(marketCommissionCoCreatorLogService.deleteLogic(Func.toLongList(ids)));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package org.springblade.modules.market.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||
import lombok.AllArgsConstructor;
|
||||
import jakarta.validation.Valid;
|
||||
|
||||
import org.springblade.core.mp.support.Condition;
|
||||
import org.springblade.core.mp.support.Query;
|
||||
import org.springblade.core.tool.api.R;
|
||||
import org.springblade.core.tool.utils.Func;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.modules.market.pojo.entity.MarketCommissionDirectPushLogEntity;
|
||||
import org.springblade.modules.market.pojo.vo.MarketCommissionDirectPushLogVO;
|
||||
import org.springblade.modules.market.wrapper.MarketCommissionDirectPushLogWrapper;
|
||||
import org.springblade.modules.market.service.IMarketCommissionDirectPushLogService;
|
||||
import org.springblade.core.boot.ctrl.BladeController;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* 10%直推人佣金流水表 控制器
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/market-commission/direct-push-log")
|
||||
@Tag(name = "10%直推人佣金流水表", description = "10%直推人佣金流水表接口")
|
||||
public class MarketCommissionDirectPushLogController extends BladeController {
|
||||
|
||||
private final IMarketCommissionDirectPushLogService marketCommissionDirectPushLogService;
|
||||
|
||||
/**
|
||||
* 10%直推人佣金流水表 详情
|
||||
*/
|
||||
@GetMapping("/detail")
|
||||
@ApiOperationSupport(order = 1)
|
||||
@Operation(summary = "详情", description = "传入marketCommissionDirectPushLog")
|
||||
public R<MarketCommissionDirectPushLogVO> detail(MarketCommissionDirectPushLogEntity marketCommissionDirectPushLog) {
|
||||
MarketCommissionDirectPushLogEntity detail = marketCommissionDirectPushLogService.getOne(Condition.getQueryWrapper(marketCommissionDirectPushLog));
|
||||
return R.data(MarketCommissionDirectPushLogWrapper.build().entityVO(detail));
|
||||
}
|
||||
/**
|
||||
* 10%直推人佣金流水表 分页
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperationSupport(order = 2)
|
||||
@Operation(summary = "分页", description = "传入marketCommissionDirectPushLog")
|
||||
public R<IPage<MarketCommissionDirectPushLogVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> marketCommissionDirectPushLog, Query query) {
|
||||
IPage<MarketCommissionDirectPushLogEntity> pages = marketCommissionDirectPushLogService.page(Condition.getPage(query), Condition.getQueryWrapper(marketCommissionDirectPushLog, MarketCommissionDirectPushLogEntity.class));
|
||||
return R.data(MarketCommissionDirectPushLogWrapper.build().pageVO(pages));
|
||||
}
|
||||
|
||||
/**
|
||||
* 10%直推人佣金流水表 自定义分页
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@ApiOperationSupport(order = 3)
|
||||
@Operation(summary = "分页", description = "传入marketCommissionDirectPushLog")
|
||||
public R<IPage<MarketCommissionDirectPushLogVO>> page(MarketCommissionDirectPushLogVO marketCommissionDirectPushLog, Query query) {
|
||||
IPage<MarketCommissionDirectPushLogVO> pages = marketCommissionDirectPushLogService.selectMarketCommissionDirectPushLogPage(Condition.getPage(query), marketCommissionDirectPushLog);
|
||||
return R.data(pages);
|
||||
}
|
||||
|
||||
/**
|
||||
* 10%直推人佣金流水表 新增
|
||||
*/
|
||||
@PostMapping("/save")
|
||||
@ApiOperationSupport(order = 4)
|
||||
@Operation(summary = "新增", description = "传入marketCommissionDirectPushLog")
|
||||
public R save(@Valid @RequestBody MarketCommissionDirectPushLogEntity marketCommissionDirectPushLog) {
|
||||
return R.status(marketCommissionDirectPushLogService.save(marketCommissionDirectPushLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 10%直推人佣金流水表 修改
|
||||
*/
|
||||
@PostMapping("/update")
|
||||
@ApiOperationSupport(order = 5)
|
||||
@Operation(summary = "修改", description = "传入marketCommissionDirectPushLog")
|
||||
public R update(@Valid @RequestBody MarketCommissionDirectPushLogEntity marketCommissionDirectPushLog) {
|
||||
return R.status(marketCommissionDirectPushLogService.updateById(marketCommissionDirectPushLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 10%直推人佣金流水表 新增或修改
|
||||
*/
|
||||
@PostMapping("/submit")
|
||||
@ApiOperationSupport(order = 6)
|
||||
@Operation(summary = "新增或修改", description = "传入marketCommissionDirectPushLog")
|
||||
public R submit(@Valid @RequestBody MarketCommissionDirectPushLogEntity marketCommissionDirectPushLog) {
|
||||
return R.status(marketCommissionDirectPushLogService.saveOrUpdate(marketCommissionDirectPushLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 10%直推人佣金流水表 删除
|
||||
*/
|
||||
@PostMapping("/remove")
|
||||
@ApiOperationSupport(order = 7)
|
||||
@Operation(summary = "逻辑删除", description = "传入ids")
|
||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
|
||||
return R.status(marketCommissionDirectPushLogService.deleteLogic(Func.toLongList(ids)));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
package org.springblade.modules.market.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||
import lombok.AllArgsConstructor;
|
||||
import jakarta.validation.Valid;
|
||||
|
||||
import org.springblade.core.mp.support.Condition;
|
||||
import org.springblade.core.mp.support.Query;
|
||||
import org.springblade.core.tool.api.R;
|
||||
import org.springblade.core.tool.utils.Func;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.modules.market.pojo.entity.MarketCommissionGoodsCostLogEntity;
|
||||
import org.springblade.modules.market.pojo.vo.MarketCommissionGoodsCostLogVO;
|
||||
import org.springblade.modules.market.wrapper.MarketCommissionGoodsCostLogWrapper;
|
||||
import org.springblade.modules.market.service.IMarketCommissionGoodsCostLogService;
|
||||
import org.springblade.core.boot.ctrl.BladeController;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* 25%商品成本佣金流水表 控制器
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/market-commission/goods-cost-log")
|
||||
@Tag(name = "25%商品成本佣金流水表", description = "25%商品成本佣金流水表接口")
|
||||
public class MarketCommissionGoodsCostLogController extends BladeController {
|
||||
|
||||
private final IMarketCommissionGoodsCostLogService marketCommissionGoodsCostLogService;
|
||||
|
||||
/**
|
||||
* 25%商品成本佣金流水表 详情
|
||||
*/
|
||||
@GetMapping("/detail")
|
||||
@ApiOperationSupport(order = 1)
|
||||
@Operation(summary = "详情", description = "传入marketCommissionGoodsCostLog")
|
||||
public R<MarketCommissionGoodsCostLogVO> detail(MarketCommissionGoodsCostLogEntity marketCommissionGoodsCostLog) {
|
||||
MarketCommissionGoodsCostLogEntity detail = marketCommissionGoodsCostLogService.getOne(Condition.getQueryWrapper(marketCommissionGoodsCostLog));
|
||||
return R.data(MarketCommissionGoodsCostLogWrapper.build().entityVO(detail));
|
||||
}
|
||||
/**
|
||||
* 25%商品成本佣金流水表 分页
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperationSupport(order = 2)
|
||||
@Operation(summary = "分页", description = "传入marketCommissionGoodsCostLog")
|
||||
public R<IPage<MarketCommissionGoodsCostLogVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> marketCommissionGoodsCostLog, Query query) {
|
||||
IPage<MarketCommissionGoodsCostLogEntity> pages = marketCommissionGoodsCostLogService.page(Condition.getPage(query), Condition.getQueryWrapper(marketCommissionGoodsCostLog, MarketCommissionGoodsCostLogEntity.class));
|
||||
return R.data(MarketCommissionGoodsCostLogWrapper.build().pageVO(pages));
|
||||
}
|
||||
|
||||
/**
|
||||
* 25%商品成本佣金流水表 自定义分页
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@ApiOperationSupport(order = 3)
|
||||
@Operation(summary = "分页", description = "传入marketCommissionGoodsCostLog")
|
||||
public R<IPage<MarketCommissionGoodsCostLogVO>> page(MarketCommissionGoodsCostLogVO marketCommissionGoodsCostLog, Query query) {
|
||||
IPage<MarketCommissionGoodsCostLogVO> pages = marketCommissionGoodsCostLogService.selectMarketCommissionGoodsCostLogPage(Condition.getPage(query), marketCommissionGoodsCostLog);
|
||||
return R.data(pages);
|
||||
}
|
||||
|
||||
/**
|
||||
* 25%商品成本佣金流水表 新增
|
||||
*/
|
||||
@PostMapping("/save")
|
||||
@ApiOperationSupport(order = 4)
|
||||
@Operation(summary = "新增", description = "传入marketCommissionGoodsCostLog")
|
||||
public R save(@Valid @RequestBody MarketCommissionGoodsCostLogEntity marketCommissionGoodsCostLog) {
|
||||
return R.status(marketCommissionGoodsCostLogService.save(marketCommissionGoodsCostLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 25%商品成本佣金流水表 修改
|
||||
*/
|
||||
@PostMapping("/update")
|
||||
@ApiOperationSupport(order = 5)
|
||||
@Operation(summary = "修改", description = "传入marketCommissionGoodsCostLog")
|
||||
public R update(@Valid @RequestBody MarketCommissionGoodsCostLogEntity marketCommissionGoodsCostLog) {
|
||||
return R.status(marketCommissionGoodsCostLogService.updateById(marketCommissionGoodsCostLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 25%商品成本佣金流水表 新增或修改
|
||||
*/
|
||||
@PostMapping("/submit")
|
||||
@ApiOperationSupport(order = 6)
|
||||
@Operation(summary = "新增或修改", description = "传入marketCommissionGoodsCostLog")
|
||||
public R submit(@Valid @RequestBody MarketCommissionGoodsCostLogEntity marketCommissionGoodsCostLog) {
|
||||
return R.status(marketCommissionGoodsCostLogService.saveOrUpdate(marketCommissionGoodsCostLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 25%商品成本佣金流水表 删除
|
||||
*/
|
||||
@PostMapping("/remove")
|
||||
@ApiOperationSupport(order = 7)
|
||||
@Operation(summary = "逻辑删除", description = "传入ids")
|
||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
|
||||
return R.status(marketCommissionGoodsCostLogService.deleteLogic(Func.toLongList(ids)));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,137 @@
|
||||
/**
|
||||
* BladeX Commercial License Agreement
|
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p>
|
||||
* Use of this software is governed by the Commercial License Agreement
|
||||
* obtained after purchasing a license from BladeX.
|
||||
* <p>
|
||||
* 1. This software is for development use only under a valid license
|
||||
* from BladeX.
|
||||
* <p>
|
||||
* 2. Redistribution of this software's source code to any third party
|
||||
* without a commercial license is strictly prohibited.
|
||||
* <p>
|
||||
* 3. Licensees may copyright their own code but cannot use segments
|
||||
* from this software for such purposes. Copyright of this software
|
||||
* remains with BladeX.
|
||||
* <p>
|
||||
* Using this software signifies agreement to this License, and the software
|
||||
* must not be used for illegal purposes.
|
||||
* <p>
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
|
||||
* not liable for any claims arising from secondary or illegal development.
|
||||
* <p>
|
||||
* Author: Chill Zhuang (bladejava@qq.com)
|
||||
*/
|
||||
package org.springblade.modules.market.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||
import lombok.AllArgsConstructor;
|
||||
import jakarta.validation.Valid;
|
||||
|
||||
|
||||
import org.springblade.core.mp.support.Condition;
|
||||
import org.springblade.core.mp.support.Query;
|
||||
import org.springblade.core.tool.api.R;
|
||||
import org.springblade.core.tool.utils.Func;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.modules.market.pojo.entity.MarketCommissionOperationLogEntity;
|
||||
import org.springblade.modules.market.pojo.vo.MarketCommissionOperationLogVO;
|
||||
import org.springblade.modules.market.wrapper.MarketCommissionOperationLogWrapper;
|
||||
import org.springblade.modules.market.service.IMarketCommissionOperationLogService;
|
||||
import org.springblade.core.boot.ctrl.BladeController;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* 5%运营佣金流水表 控制器
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/market-commission/operation-log")
|
||||
@Tag(name = "5%运营佣金流水表", description = "5%运营佣金流水表接口")
|
||||
public class MarketCommissionOperationLogController extends BladeController {
|
||||
|
||||
private final IMarketCommissionOperationLogService marketCommissionOperationLogService;
|
||||
|
||||
/**
|
||||
* 5%运营佣金流水表 详情
|
||||
*/
|
||||
@GetMapping("/detail")
|
||||
@ApiOperationSupport(order = 1)
|
||||
@Operation(summary = "详情", description = "传入marketCommissionOperationLog")
|
||||
public R<MarketCommissionOperationLogVO> detail(MarketCommissionOperationLogEntity marketCommissionOperationLog) {
|
||||
MarketCommissionOperationLogEntity detail = marketCommissionOperationLogService.getOne(Condition.getQueryWrapper(marketCommissionOperationLog));
|
||||
return R.data(MarketCommissionOperationLogWrapper.build().entityVO(detail));
|
||||
}
|
||||
/**
|
||||
* 5%运营佣金流水表 分页
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperationSupport(order = 2)
|
||||
@Operation(summary = "分页", description = "传入marketCommissionOperationLog")
|
||||
public R<IPage<MarketCommissionOperationLogVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> marketCommissionOperationLog, Query query) {
|
||||
IPage<MarketCommissionOperationLogEntity> pages = marketCommissionOperationLogService.page(Condition.getPage(query), Condition.getQueryWrapper(marketCommissionOperationLog, MarketCommissionOperationLogEntity.class));
|
||||
return R.data(MarketCommissionOperationLogWrapper.build().pageVO(pages));
|
||||
}
|
||||
|
||||
/**
|
||||
* 5%运营佣金流水表 自定义分页
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@ApiOperationSupport(order = 3)
|
||||
@Operation(summary = "分页", description = "传入marketCommissionOperationLog")
|
||||
public R<IPage<MarketCommissionOperationLogVO>> page(MarketCommissionOperationLogVO marketCommissionOperationLog, Query query) {
|
||||
IPage<MarketCommissionOperationLogVO> pages = marketCommissionOperationLogService.selectMarketCommissionOperationLogPage(Condition.getPage(query), marketCommissionOperationLog);
|
||||
return R.data(pages);
|
||||
}
|
||||
|
||||
/**
|
||||
* 5%运营佣金流水表 新增
|
||||
*/
|
||||
@PostMapping("/save")
|
||||
@ApiOperationSupport(order = 4)
|
||||
@Operation(summary = "新增", description = "传入marketCommissionOperationLog")
|
||||
public R save(@Valid @RequestBody MarketCommissionOperationLogEntity marketCommissionOperationLog) {
|
||||
return R.status(marketCommissionOperationLogService.save(marketCommissionOperationLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 5%运营佣金流水表 修改
|
||||
*/
|
||||
@PostMapping("/update")
|
||||
@ApiOperationSupport(order = 5)
|
||||
@Operation(summary = "修改", description = "传入marketCommissionOperationLog")
|
||||
public R update(@Valid @RequestBody MarketCommissionOperationLogEntity marketCommissionOperationLog) {
|
||||
return R.status(marketCommissionOperationLogService.updateById(marketCommissionOperationLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 5%运营佣金流水表 新增或修改
|
||||
*/
|
||||
@PostMapping("/submit")
|
||||
@ApiOperationSupport(order = 6)
|
||||
@Operation(summary = "新增或修改", description = "传入marketCommissionOperationLog")
|
||||
public R submit(@Valid @RequestBody MarketCommissionOperationLogEntity marketCommissionOperationLog) {
|
||||
return R.status(marketCommissionOperationLogService.saveOrUpdate(marketCommissionOperationLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 5%运营佣金流水表 删除
|
||||
*/
|
||||
@PostMapping("/remove")
|
||||
@ApiOperationSupport(order = 7)
|
||||
@Operation(summary = "逻辑删除", description = "传入ids")
|
||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
|
||||
return R.status(marketCommissionOperationLogService.deleteLogic(Func.toLongList(ids)));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
package org.springblade.modules.market.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||
import lombok.AllArgsConstructor;
|
||||
import jakarta.validation.Valid;
|
||||
|
||||
import org.springblade.core.mp.support.Condition;
|
||||
import org.springblade.core.mp.support.Query;
|
||||
import org.springblade.core.tool.api.R;
|
||||
import org.springblade.core.tool.utils.Func;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.modules.market.pojo.entity.MarketCommissionServiceProviderLogEntity;
|
||||
import org.springblade.modules.market.pojo.vo.MarketCommissionServiceProviderLogVO;
|
||||
import org.springblade.modules.market.wrapper.MarketCommissionServiceProviderLogWrapper;
|
||||
import org.springblade.modules.market.service.IMarketCommissionServiceProviderLogService;
|
||||
import org.springblade.core.boot.ctrl.BladeController;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 5%服务商佣金流水表 控制器
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/market-commission/service-provider-log")
|
||||
@Tag(name = "5%服务商佣金流水表", description = "5%服务商佣金流水表接口")
|
||||
public class MarketCommissionServiceProviderLogController extends BladeController {
|
||||
|
||||
private final IMarketCommissionServiceProviderLogService marketCommissionServiceProviderLogService;
|
||||
|
||||
/**
|
||||
* 5%服务商佣金流水表 详情
|
||||
*/
|
||||
@GetMapping("/detail")
|
||||
@ApiOperationSupport(order = 1)
|
||||
@Operation(summary = "详情", description = "传入marketCommissionServiceProviderLog")
|
||||
public R<MarketCommissionServiceProviderLogVO> detail(MarketCommissionServiceProviderLogEntity marketCommissionServiceProviderLog) {
|
||||
MarketCommissionServiceProviderLogEntity detail = marketCommissionServiceProviderLogService.getOne(Condition.getQueryWrapper(marketCommissionServiceProviderLog));
|
||||
return R.data(MarketCommissionServiceProviderLogWrapper.build().entityVO(detail));
|
||||
}
|
||||
/**
|
||||
* 5%服务商佣金流水表 分页
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperationSupport(order = 2)
|
||||
@Operation(summary = "分页", description = "传入marketCommissionServiceProviderLog")
|
||||
public R<IPage<MarketCommissionServiceProviderLogVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> marketCommissionServiceProviderLog, Query query) {
|
||||
IPage<MarketCommissionServiceProviderLogEntity> pages = marketCommissionServiceProviderLogService.page(Condition.getPage(query), Condition.getQueryWrapper(marketCommissionServiceProviderLog, MarketCommissionServiceProviderLogEntity.class));
|
||||
return R.data(MarketCommissionServiceProviderLogWrapper.build().pageVO(pages));
|
||||
}
|
||||
|
||||
/**
|
||||
* 5%服务商佣金流水表 自定义分页
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@ApiOperationSupport(order = 3)
|
||||
@Operation(summary = "分页", description = "传入marketCommissionServiceProviderLog")
|
||||
public R<IPage<MarketCommissionServiceProviderLogVO>> page(MarketCommissionServiceProviderLogVO marketCommissionServiceProviderLog, Query query) {
|
||||
IPage<MarketCommissionServiceProviderLogVO> pages = marketCommissionServiceProviderLogService.selectMarketCommissionServiceProviderLogPage(Condition.getPage(query), marketCommissionServiceProviderLog);
|
||||
return R.data(pages);
|
||||
}
|
||||
|
||||
/**
|
||||
* 5%服务商佣金流水表 新增
|
||||
*/
|
||||
@PostMapping("/save")
|
||||
@ApiOperationSupport(order = 4)
|
||||
@Operation(summary = "新增", description = "传入marketCommissionServiceProviderLog")
|
||||
public R save(@Valid @RequestBody MarketCommissionServiceProviderLogEntity marketCommissionServiceProviderLog) {
|
||||
return R.status(marketCommissionServiceProviderLogService.save(marketCommissionServiceProviderLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 5%服务商佣金流水表 修改
|
||||
*/
|
||||
@PostMapping("/update")
|
||||
@ApiOperationSupport(order = 5)
|
||||
@Operation(summary = "修改", description = "传入marketCommissionServiceProviderLog")
|
||||
public R update(@Valid @RequestBody MarketCommissionServiceProviderLogEntity marketCommissionServiceProviderLog) {
|
||||
return R.status(marketCommissionServiceProviderLogService.updateById(marketCommissionServiceProviderLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 5%服务商佣金流水表 新增或修改
|
||||
*/
|
||||
@PostMapping("/submit")
|
||||
@ApiOperationSupport(order = 6)
|
||||
@Operation(summary = "新增或修改", description = "传入marketCommissionServiceProviderLog")
|
||||
public R submit(@Valid @RequestBody MarketCommissionServiceProviderLogEntity marketCommissionServiceProviderLog) {
|
||||
return R.status(marketCommissionServiceProviderLogService.saveOrUpdate(marketCommissionServiceProviderLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 5%服务商佣金流水表 删除
|
||||
*/
|
||||
@PostMapping("/remove")
|
||||
@ApiOperationSupport(order = 7)
|
||||
@Operation(summary = "逻辑删除", description = "传入ids")
|
||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
|
||||
return R.status(marketCommissionServiceProviderLogService.deleteLogic(Func.toLongList(ids)));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
package org.springblade.modules.market.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||
import lombok.AllArgsConstructor;
|
||||
import jakarta.validation.Valid;
|
||||
|
||||
import org.springblade.core.mp.support.Condition;
|
||||
import org.springblade.core.mp.support.Query;
|
||||
import org.springblade.core.tool.api.R;
|
||||
import org.springblade.core.tool.utils.Func;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.springblade.modules.market.pojo.entity.MarketCommissionUserPointLogEntity;
|
||||
import org.springblade.modules.market.pojo.vo.MarketCommissionUserPointLogVO;
|
||||
import org.springblade.modules.market.wrapper.MarketCommissionUserPointLogWrapper;
|
||||
import org.springblade.modules.market.service.IMarketCommissionUserPointLogService;
|
||||
import org.springblade.core.boot.ctrl.BladeController;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* 30%购买人获取用户积分佣金流水表 控制器
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/market-commission/user-point-log")
|
||||
@Tag(name = "30%购买人获取用户积分佣金流水表", description = "30%购买人获取用户积分佣金流水表接口")
|
||||
public class MarketCommissionUserPointLogController extends BladeController {
|
||||
|
||||
private final IMarketCommissionUserPointLogService marketCommissionUserPointLogService;
|
||||
|
||||
/**
|
||||
* 30%购买人获取用户积分佣金流水表 详情
|
||||
*/
|
||||
@GetMapping("/detail")
|
||||
@ApiOperationSupport(order = 1)
|
||||
@Operation(summary = "详情", description = "传入marketCommissionUserPointLog")
|
||||
public R<MarketCommissionUserPointLogVO> detail(MarketCommissionUserPointLogEntity marketCommissionUserPointLog) {
|
||||
MarketCommissionUserPointLogEntity detail = marketCommissionUserPointLogService.getOne(Condition.getQueryWrapper(marketCommissionUserPointLog));
|
||||
return R.data(MarketCommissionUserPointLogWrapper.build().entityVO(detail));
|
||||
}
|
||||
/**
|
||||
* 30%购买人获取用户积分佣金流水表 分页
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
@ApiOperationSupport(order = 2)
|
||||
@Operation(summary = "分页", description = "传入marketCommissionUserPointLog")
|
||||
public R<IPage<MarketCommissionUserPointLogVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> marketCommissionUserPointLog, Query query) {
|
||||
IPage<MarketCommissionUserPointLogEntity> pages = marketCommissionUserPointLogService.page(Condition.getPage(query), Condition.getQueryWrapper(marketCommissionUserPointLog, MarketCommissionUserPointLogEntity.class));
|
||||
return R.data(MarketCommissionUserPointLogWrapper.build().pageVO(pages));
|
||||
}
|
||||
|
||||
/**
|
||||
* 30%购买人获取用户积分佣金流水表 自定义分页
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@ApiOperationSupport(order = 3)
|
||||
@Operation(summary = "分页", description = "传入marketCommissionUserPointLog")
|
||||
public R<IPage<MarketCommissionUserPointLogVO>> page(MarketCommissionUserPointLogVO marketCommissionUserPointLog, Query query) {
|
||||
IPage<MarketCommissionUserPointLogVO> pages = marketCommissionUserPointLogService.selectMarketCommissionUserPointLogPage(Condition.getPage(query), marketCommissionUserPointLog);
|
||||
return R.data(pages);
|
||||
}
|
||||
|
||||
/**
|
||||
* 30%购买人获取用户积分佣金流水表 新增
|
||||
*/
|
||||
@PostMapping("/save")
|
||||
@ApiOperationSupport(order = 4)
|
||||
@Operation(summary = "新增", description = "传入marketCommissionUserPointLog")
|
||||
public R save(@Valid @RequestBody MarketCommissionUserPointLogEntity marketCommissionUserPointLog) {
|
||||
return R.status(marketCommissionUserPointLogService.save(marketCommissionUserPointLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 30%购买人获取用户积分佣金流水表 修改
|
||||
*/
|
||||
@PostMapping("/update")
|
||||
@ApiOperationSupport(order = 5)
|
||||
@Operation(summary = "修改", description = "传入marketCommissionUserPointLog")
|
||||
public R update(@Valid @RequestBody MarketCommissionUserPointLogEntity marketCommissionUserPointLog) {
|
||||
return R.status(marketCommissionUserPointLogService.updateById(marketCommissionUserPointLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 30%购买人获取用户积分佣金流水表 新增或修改
|
||||
*/
|
||||
@PostMapping("/submit")
|
||||
@ApiOperationSupport(order = 6)
|
||||
@Operation(summary = "新增或修改", description = "传入marketCommissionUserPointLog")
|
||||
public R submit(@Valid @RequestBody MarketCommissionUserPointLogEntity marketCommissionUserPointLog) {
|
||||
return R.status(marketCommissionUserPointLogService.saveOrUpdate(marketCommissionUserPointLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 30%购买人获取用户积分佣金流水表 删除
|
||||
*/
|
||||
@PostMapping("/remove")
|
||||
@ApiOperationSupport(order = 7)
|
||||
@Operation(summary = "逻辑删除", description = "传入ids")
|
||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) {
|
||||
return R.status(marketCommissionUserPointLogService.deleteLogic(Func.toLongList(ids)));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package org.springblade.modules.market.mapper;
|
||||
|
||||
import org.springblade.modules.market.pojo.entity.MarketCommissionAccountEntity;
|
||||
import org.springblade.modules.market.pojo.vo.MarketCommissionAccountVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户佣金账户表 Mapper 接口
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
public interface MarketCommissionAccountMapper extends BaseMapper<MarketCommissionAccountEntity> {
|
||||
|
||||
/**
|
||||
* 自定义分页
|
||||
*
|
||||
* @param page 分页参数
|
||||
* @param marketCommissionAccount 查询参数
|
||||
* @return List<MarketCommissionAccountVO>
|
||||
*/
|
||||
List<MarketCommissionAccountVO> selectMarketCommissionAccountPage(IPage page, MarketCommissionAccountVO marketCommissionAccount);
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.springblade.modules.market.mapper.MarketCommissionAccountMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="marketCommissionAccountResultMap" type="org.springblade.modules.market.pojo.entity.MarketCommissionAccountEntity">
|
||||
<result column="id" property="id"/>
|
||||
<result column="account_name" property="accountName"/>
|
||||
<result column="account_code" property="accountCode"/>
|
||||
<result column="account_type" property="accountType"/>
|
||||
<result column="amount" property="amount"/>
|
||||
<result column="version" property="version"/>
|
||||
<result column="remark" property="remark"/>
|
||||
<result column="create_user" property="createUser"/>
|
||||
<result column="create_dept" property="createDept"/>
|
||||
<result column="create_time" property="createTime"/>
|
||||
<result column="update_user" property="updateUser"/>
|
||||
<result column="update_time" property="updateTime"/>
|
||||
<result column="status" property="status"/>
|
||||
<result column="is_deleted" property="isDeleted"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<select id="selectMarketCommissionAccountPage" resultMap="marketCommissionAccountResultMap">
|
||||
select * from market_commission_account where is_deleted = 0
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,28 @@
|
||||
package org.springblade.modules.market.mapper;
|
||||
|
||||
import org.springblade.modules.market.pojo.entity.MarketCommissionAdvertisingLogEntity;
|
||||
import org.springblade.modules.market.pojo.vo.MarketCommissionAdvertisingLogVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 5%广告补贴佣金流水表 Mapper 接口
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
public interface MarketCommissionAdvertisingLogMapper extends BaseMapper<MarketCommissionAdvertisingLogEntity> {
|
||||
|
||||
/**
|
||||
* 自定义分页
|
||||
*
|
||||
* @param page 分页参数
|
||||
* @param marketCommissionAdvertisingLog 查询参数
|
||||
* @return List<MarketCommissionAdvertisingLogVO>
|
||||
*/
|
||||
List<MarketCommissionAdvertisingLogVO> selectMarketCommissionAdvertisingLogPage(IPage page, MarketCommissionAdvertisingLogVO marketCommissionAdvertisingLog);
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.springblade.modules.market.mapper.MarketCommissionAdvertisingLogMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="marketCommissionAdvertisingLogResultMap" type="org.springblade.modules.market.pojo.entity.MarketCommissionAdvertisingLogEntity">
|
||||
<result column="id" property="id"/>
|
||||
<result column="account_id" property="accountId"/>
|
||||
<result column="amount" property="amount"/>
|
||||
<result column="last_amount" property="lastAmount"/>
|
||||
<result column="source_type" property="sourceType"/>
|
||||
<result column="source_id" property="sourceId"/>
|
||||
<result column="source_detail" property="sourceDetail"/>
|
||||
<result column="type" property="type"/>
|
||||
<result column="is_complete" property="isComplete"/>
|
||||
<result column="statistical_date" property="statisticalDate"/>
|
||||
<result column="remark" property="remark"/>
|
||||
<result column="create_user" property="createUser"/>
|
||||
<result column="create_dept" property="createDept"/>
|
||||
<result column="create_time" property="createTime"/>
|
||||
<result column="update_user" property="updateUser"/>
|
||||
<result column="update_time" property="updateTime"/>
|
||||
<result column="status" property="status"/>
|
||||
<result column="is_deleted" property="isDeleted"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<select id="selectMarketCommissionAdvertisingLogPage" resultMap="marketCommissionAdvertisingLogResultMap">
|
||||
select * from market_commission_advertising_log where is_deleted = 0
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,28 @@
|
||||
package org.springblade.modules.market.mapper;
|
||||
|
||||
import org.springblade.modules.market.pojo.entity.MarketCommissionAgencyLogEntity;
|
||||
import org.springblade.modules.market.pojo.vo.MarketCommissionAgencyLogVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 15%极差代理佣金流水表 Mapper 接口
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
public interface MarketCommissionAgencyLogMapper extends BaseMapper<MarketCommissionAgencyLogEntity> {
|
||||
|
||||
/**
|
||||
* 自定义分页
|
||||
*
|
||||
* @param page 分页参数
|
||||
* @param marketCommissionAgencyLog 查询参数
|
||||
* @return List<MarketCommissionAgencyLogVO>
|
||||
*/
|
||||
List<MarketCommissionAgencyLogVO> selectMarketCommissionAgencyLogPage(IPage page, MarketCommissionAgencyLogVO marketCommissionAgencyLog);
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.springblade.modules.market.mapper.MarketCommissionAgencyLogMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="marketCommissionAgencyLogResultMap" type="org.springblade.modules.market.pojo.entity.MarketCommissionAgencyLogEntity">
|
||||
<result column="id" property="id"/>
|
||||
<result column="account_id" property="accountId"/>
|
||||
<result column="user_id" property="userId"/>
|
||||
<result column="amount" property="amount"/>
|
||||
<result column="last_amount" property="lastAmount"/>
|
||||
<result column="source_type" property="sourceType"/>
|
||||
<result column="source_id" property="sourceId"/>
|
||||
<result column="source_detail" property="sourceDetail"/>
|
||||
<result column="type" property="type"/>
|
||||
<result column="is_complete" property="isComplete"/>
|
||||
<result column="statistical_date" property="statisticalDate"/>
|
||||
<result column="remark" property="remark"/>
|
||||
<result column="create_user" property="createUser"/>
|
||||
<result column="create_dept" property="createDept"/>
|
||||
<result column="create_time" property="createTime"/>
|
||||
<result column="update_user" property="updateUser"/>
|
||||
<result column="update_time" property="updateTime"/>
|
||||
<result column="status" property="status"/>
|
||||
<result column="is_deleted" property="isDeleted"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<select id="selectMarketCommissionAgencyLogPage" resultMap="marketCommissionAgencyLogResultMap">
|
||||
select * from market_commission_agency_log where is_deleted = 0
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,27 @@
|
||||
package org.springblade.modules.market.mapper;
|
||||
|
||||
import org.springblade.modules.market.pojo.entity.MarketCommissionCoCreatorLogEntity;
|
||||
import org.springblade.modules.market.pojo.vo.MarketCommissionCoCreatorLogVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 5%联创佣金流水表 Mapper 接口
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
public interface MarketCommissionCoCreatorLogMapper extends BaseMapper<MarketCommissionCoCreatorLogEntity> {
|
||||
|
||||
/**
|
||||
* 自定义分页
|
||||
*
|
||||
* @param page 分页参数
|
||||
* @param marketCommissionCoCreatorLog 查询参数
|
||||
* @return List<MarketCommissionCoCreatorLogVO>
|
||||
*/
|
||||
List<MarketCommissionCoCreatorLogVO> selectMarketCommissionCoCreatorLogPage(IPage page, MarketCommissionCoCreatorLogVO marketCommissionCoCreatorLog);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.springblade.modules.market.mapper.MarketCommissionCoCreatorLogMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="marketCommissionCoCreatorLogResultMap" type="org.springblade.modules.market.pojo.entity.MarketCommissionCoCreatorLogEntity">
|
||||
<result column="id" property="id"/>
|
||||
<result column="account_id" property="accountId"/>
|
||||
<result column="amount" property="amount"/>
|
||||
<result column="last_amount" property="lastAmount"/>
|
||||
<result column="source_type" property="sourceType"/>
|
||||
<result column="source_id" property="sourceId"/>
|
||||
<result column="source_detail" property="sourceDetail"/>
|
||||
<result column="type" property="type"/>
|
||||
<result column="is_complete" property="isComplete"/>
|
||||
<result column="statistical_date" property="statisticalDate"/>
|
||||
<result column="remark" property="remark"/>
|
||||
<result column="create_user" property="createUser"/>
|
||||
<result column="create_dept" property="createDept"/>
|
||||
<result column="create_time" property="createTime"/>
|
||||
<result column="update_user" property="updateUser"/>
|
||||
<result column="update_time" property="updateTime"/>
|
||||
<result column="status" property="status"/>
|
||||
<result column="is_deleted" property="isDeleted"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<select id="selectMarketCommissionCoCreatorLogPage" resultMap="marketCommissionCoCreatorLogResultMap">
|
||||
select * from market_commission_co_creator_log where is_deleted = 0
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,27 @@
|
||||
package org.springblade.modules.market.mapper;
|
||||
|
||||
import org.springblade.modules.market.pojo.entity.MarketCommissionDirectPushLogEntity;
|
||||
import org.springblade.modules.market.pojo.vo.MarketCommissionDirectPushLogVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 10%直推人佣金流水表 Mapper 接口
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
public interface MarketCommissionDirectPushLogMapper extends BaseMapper<MarketCommissionDirectPushLogEntity> {
|
||||
|
||||
/**
|
||||
* 自定义分页
|
||||
*
|
||||
* @param page 分页参数
|
||||
* @param marketCommissionDirectPushLog 查询参数
|
||||
* @return List<MarketCommissionDirectPushLogVO>
|
||||
*/
|
||||
List<MarketCommissionDirectPushLogVO> selectMarketCommissionDirectPushLogPage(IPage page, MarketCommissionDirectPushLogVO marketCommissionDirectPushLog);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.springblade.modules.market.mapper.MarketCommissionDirectPushLogMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="marketCommissionDirectPushLogResultMap" type="org.springblade.modules.market.pojo.entity.MarketCommissionDirectPushLogEntity">
|
||||
<result column="id" property="id"/>
|
||||
<result column="account_id" property="accountId"/>
|
||||
<result column="user_id" property="userId"/>
|
||||
<result column="amount" property="amount"/>
|
||||
<result column="last_amount" property="lastAmount"/>
|
||||
<result column="source_type" property="sourceType"/>
|
||||
<result column="source_id" property="sourceId"/>
|
||||
<result column="source_detail" property="sourceDetail"/>
|
||||
<result column="type" property="type"/>
|
||||
<result column="is_complete" property="isComplete"/>
|
||||
<result column="is_salary_paid" property="isSalaryPaid"/>
|
||||
<result column="statistical_date" property="statisticalDate"/>
|
||||
<result column="remark" property="remark"/>
|
||||
<result column="create_user" property="createUser"/>
|
||||
<result column="create_dept" property="createDept"/>
|
||||
<result column="create_time" property="createTime"/>
|
||||
<result column="update_user" property="updateUser"/>
|
||||
<result column="update_time" property="updateTime"/>
|
||||
<result column="status" property="status"/>
|
||||
<result column="is_deleted" property="isDeleted"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<select id="selectMarketCommissionDirectPushLogPage" resultMap="marketCommissionDirectPushLogResultMap">
|
||||
select * from market_commission_direct_push_log where is_deleted = 0
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,28 @@
|
||||
package org.springblade.modules.market.mapper;
|
||||
|
||||
import org.springblade.modules.market.pojo.entity.MarketCommissionGoodsCostLogEntity;
|
||||
import org.springblade.modules.market.pojo.vo.MarketCommissionGoodsCostLogVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 25%商品成本佣金流水表 Mapper 接口
|
||||
*
|
||||
* @author BladeX
|
||||
* @since 2026-02-12
|
||||
*/
|
||||
public interface MarketCommissionGoodsCostLogMapper extends BaseMapper<MarketCommissionGoodsCostLogEntity> {
|
||||
|
||||
/**
|
||||
* 自定义分页
|
||||
*
|
||||
* @param page 分页参数
|
||||
* @param marketCommissionGoodsCostLog 查询参数
|
||||
* @return List<MarketCommissionGoodsCostLogVO>
|
||||
*/
|
||||
List<MarketCommissionGoodsCostLogVO> selectMarketCommissionGoodsCostLogPage(IPage page, MarketCommissionGoodsCostLogVO marketCommissionGoodsCostLog);
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.springblade.modules.market.mapper.MarketCommissionGoodsCostLogMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="marketCommissionGoodsCostLogResultMap" type="org.springblade.modules.market.pojo.entity.MarketCommissionGoodsCostLogEntity">
|
||||
<result column="id" property="id"/>
|
||||
<result column="account_id" property="accountId"/>
|
||||
<result column="user_id" property="userId"/>
|
||||
<result column="amount" property="amount"/>
|
||||
<result column="last_amount" property="lastAmount"/>
|
||||
<result column="source_type" property="sourceType"/>
|
||||
<result column="source_id" property="sourceId"/>
|
||||
<result column="source_detail" property="sourceDetail"/>
|
||||
<result column="type" property="type"/>
|
||||
<result column="is_complete" property="isComplete"/>
|
||||
<result column="statistical_date" property="statisticalDate"/>
|
||||
<result column="remark" property="remark"/>
|
||||
<result column="create_user" property="createUser"/>
|
||||
<result column="create_dept" property="createDept"/>
|
||||
<result column="create_time" property="createTime"/>
|
||||
<result column="update_user" property="updateUser"/>
|
||||
<result column="update_time" property="updateTime"/>
|
||||
<result column="status" property="status"/>
|
||||
<result column="is_deleted" property="isDeleted"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<select id="selectMarketCommissionGoodsCostLogPage" resultMap="marketCommissionGoodsCostLogResultMap">
|
||||
select * from market_commission_goods_cost_log where is_deleted = 0
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user