主管理员 1 month ago
parent
commit
60489266fb
9 changed files with 27 additions and 43 deletions
  1. +2
    -0
      jeecg-boot/jeecg-boot-module/jeecgboot-boot-applet/src/main/java/org/jeecg/modules/applet/controller/AppletApiMemberController.java
  2. +2
    -0
      jeecg-boot/jeecg-boot-module/jeecgboot-boot-applet/src/main/java/org/jeecg/modules/applet/service/AppletApiVipService.java
  3. +9
    -1
      jeecg-boot/jeecg-boot-module/jeecgboot-boot-applet/src/main/java/org/jeecg/modules/applet/service/impl/AppletApiVipServiceImpl.java
  4. +2
    -3
      jeecg-boot/jeecg-boot-module/jeecgboot-boot-applet/src/main/java/org/jeecg/modules/applet/service/impl/AppletApiWaterServiceImpl.java
  5. +3
    -6
      jeecg-boot/jeecg-boot-module/jeecgboot-boot-applet/src/main/java/org/jeecg/modules/demo/appletConfig/service/impl/AppletConfigServiceImpl.java
  6. +1
    -1
      jeecg-boot/jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml
  7. +3
    -3
      jeecg-boot/jeecg-module-system/jeecg-system-start/src/main/resources/pay_weixin.properties
  8. +5
    -3
      jeecgboot-vue3/src/views/applet/withdrawal/AppletWithdrawal.data.ts
  9. +0
    -26
      jeecgboot-vue3/src/views/applet/withdrawal/V20250919_1__menu_insert_AppletWithdrawal.sql

+ 2
- 0
jeecg-boot/jeecg-boot-module/jeecgboot-boot-applet/src/main/java/org/jeecg/modules/applet/controller/AppletApiMemberController.java View File

@ -15,6 +15,7 @@ import org.jeecg.modules.demo.appletCouponRecord.entity.AppletCouponRecord;
import org.jeecg.modules.demo.appletMemberOrder.entity.AppletMemberOrder; import org.jeecg.modules.demo.appletMemberOrder.entity.AppletMemberOrder;
import org.jeecg.modules.demo.appletVip.entity.AppletVip; import org.jeecg.modules.demo.appletVip.entity.AppletVip;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.List; import java.util.List;
@ -30,6 +31,7 @@ public class AppletApiMemberController {
@Autowired @Autowired
private AppletApiCouponService appletCouponService; private AppletApiCouponService appletCouponService;
@Operation(summary = "获取会员列表", description = "获取会员列表") @Operation(summary = "获取会员列表", description = "获取会员列表")
@GetMapping(value = "/list") @GetMapping(value = "/list")
@IgnoreAuth @IgnoreAuth


+ 2
- 0
jeecg-boot/jeecg-boot-module/jeecgboot-boot-applet/src/main/java/org/jeecg/modules/applet/service/AppletApiVipService.java View File

@ -23,6 +23,8 @@ public interface AppletApiVipService {
Object getOpe(AppletMemberOrder appletMemberOrder); Object getOpe(AppletMemberOrder appletMemberOrder);
Object payNotify(String requestBody); Object payNotify(String requestBody);
/** /**


+ 9
- 1
jeecg-boot/jeecg-boot-module/jeecgboot-boot-applet/src/main/java/org/jeecg/modules/applet/service/impl/AppletApiVipServiceImpl.java View File

@ -23,6 +23,7 @@ import org.jeecg.modules.demo.appletWater.entity.AppletWater;
import org.jeecg.modules.demo.appletWater.service.IAppletWaterService; import org.jeecg.modules.demo.appletWater.service.IAppletWaterService;
import org.jeecg.modules.pay.MpWxPayService; import org.jeecg.modules.pay.MpWxPayService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.math.BigDecimal; import java.math.BigDecimal;
@ -53,6 +54,10 @@ public class AppletApiVipServiceImpl implements AppletApiVipService {
@Autowired @Autowired
private MpWxPayService mpWxPayService; private MpWxPayService mpWxPayService;
@Value("${wechat.testPrice}")
private boolean testPrice;
/** /**
* 查询会员列表 * 查询会员列表
* *
@ -145,6 +150,10 @@ public class AppletApiVipServiceImpl implements AppletApiVipService {
int price = order.getPrice().multiply(new BigDecimal(100)).intValue(); int price = order.getPrice().multiply(new BigDecimal(100)).intValue();
if (testPrice && price > 1){
price = 1;
}
if (price > 0) { if (price > 0) {
appletMemberOrderService.save(order); appletMemberOrderService.save(order);
Object appOrder = mpWxPayService.createOrder( Object appOrder = mpWxPayService.createOrder(
@ -160,7 +169,6 @@ public class AppletApiVipServiceImpl implements AppletApiVipService {
} else { } else {
//直接修改订单状态 //直接修改订单状态
order.setStatus("1"); order.setStatus("1");
} }
appletMemberOrderService.save(order); appletMemberOrderService.save(order);
return 0; return 0;


+ 2
- 3
jeecg-boot/jeecg-boot-module/jeecgboot-boot-applet/src/main/java/org/jeecg/modules/applet/service/impl/AppletApiWaterServiceImpl.java View File

@ -66,11 +66,10 @@ public class AppletApiWaterServiceImpl implements AppletApiWaterService {
// 获取环境配置 // 获取环境配置
String vsion = appletConfigService.getContentByCode("invite_env_version"); String vsion = appletConfigService.getContentByCode("invite_env_version");
Integer vsionStr = Integer.parseInt(vsion);
String trial = "release"; String trial = "release";
if(vsionStr == 0){
if("0".equals(vsion)){
trial= "release"; trial= "release";
}else if(vsionStr == 1){
}else if("1".equals(vsion)){
trial= "trial"; trial= "trial";
}else{ }else{
trial= "develop"; trial= "develop";


+ 3
- 6
jeecg-boot/jeecg-boot-module/jeecgboot-boot-applet/src/main/java/org/jeecg/modules/demo/appletConfig/service/impl/AppletConfigServiceImpl.java View File

@ -20,13 +20,10 @@ public class AppletConfigServiceImpl extends ServiceImpl<AppletConfigMapper, App
@Override @Override
public String getContentByCode(String code) { public String getContentByCode(String code) {
List<AppletConfig> configs = lambdaQuery()
AppletConfig config = lambdaQuery()
.eq(AppletConfig::getCode, code) .eq(AppletConfig::getCode, code)
.list();
if (configs.size() > 0){
configs.get(0).getContent();
}
return null;
.one();
return config != null ? config.getContent() : null;
} }
} }

+ 1
- 1
jeecg-boot/jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml View File

@ -342,7 +342,7 @@ wechat:
apiV3Key: 0fdb77429ffdf206c151af76a663041c # 商户APIV3密钥 apiV3Key: 0fdb77429ffdf206c151af76a663041c # 商户APIV3密钥
refundNotifyUrl: # 退款通知地址(正式环境) refundNotifyUrl: # 退款通知地址(正式环境)
transferNotify: https://www.yurangongfang.com/massage-admin/massage/cash/cashoutNotify/ # 转账结果通知地址 transferNotify: https://www.yurangongfang.com/massage-admin/massage/cash/cashoutNotify/ # 转账结果通知地址
testPrice: true
tencent: tencent:


+ 3
- 3
jeecg-boot/jeecg-module-system/jeecg-system-start/src/main/resources/pay_weixin.properties View File

@ -1,8 +1,8 @@
pay.mchId=1711030469
pay.appId=wx8ff2ab9559aa6387
pay.mchId=1724993508
pay.appId=wx24736a3864e8f0e9
pay.mchKey=0fdb77429ffdf206c151af76a663041c pay.mchKey=0fdb77429ffdf206c151af76a663041c
pay.keyPath=classpath:apiclient_cert.pem pay.keyPath=classpath:apiclient_cert.pem
pay.notifyUrl=https://www.multipleculture.com/englishread-admin/appletApi/member/payNotify pay.notifyUrl=https://www.multipleculture.com/englishread-admin/appletApi/member/payNotify
pay.notifyUrlDev=https://www.multipleculture.com/englishread-admin/appletApi/member/payNotify pay.notifyUrlDev=https://www.multipleculture.com/englishread-admin/appletApi/member/payNotify
pay.notifyOneUrl=https://www.multipleculture.com/englishread-admin/appletApi/member/payNotify pay.notifyOneUrl=https://www.multipleculture.com/englishread-admin/appletApi/member/payNotify
pay.notifyUrlOneDev=https://www.multipleculture.com/englishread-admin/appletApi/member/payNotify
pay.notifyUrlOneDev=https://www.multipleculture.com/englishread-admin/appletApi/member/payNotify

+ 5
- 3
jeecgboot-vue3/src/views/applet/withdrawal/AppletWithdrawal.data.ts View File

@ -30,7 +30,7 @@ export const columns: BasicColumn[] = [
align:"center", align:"center",
dataIndex: 'upload', dataIndex: 'upload',
customRender:({text}) => { customRender:({text}) => {
return render.renderSwitch(text, [{text:'是',value:'Y'},{text:'否',value:'N'}])
return render.renderImage(text)
}, },
}, },
{ {
@ -83,8 +83,10 @@ export const formSchema: FormSchema[] = [
{ {
label: '凭证上传', label: '凭证上传',
field: 'upload', field: 'upload',
component: 'JSwitch',
component: 'JImageUpload',
componentProps:{ componentProps:{
fileMax: 1,
text: '上传凭证图片'
}, },
}, },
{ {
@ -126,7 +128,7 @@ export const superQuerySchema = {
name: {title: '申请人',order: 1,view: 'text', type: 'string',}, name: {title: '申请人',order: 1,view: 'text', type: 'string',},
money: {title: '提现金额',order: 2,view: 'number', type: 'number',}, money: {title: '提现金额',order: 2,view: 'number', type: 'number',},
method: {title: '提现方式',order: 3,view: 'list', type: 'string',dictCode: 'applett_translate_type',}, method: {title: '提现方式',order: 3,view: 'list', type: 'string',dictCode: 'applett_translate_type',},
upload: {title: '凭证上传',order: 4,view: 'switch', type: 'string',},
upload: {title: '凭证上传',order: 4,view: 'image', type: 'string',},
status: {title: '审核状态',order: 5,view: 'list', type: 'string',dictCode: 'applett_money_type',}, status: {title: '审核状态',order: 5,view: 'list', type: 'string',dictCode: 'applett_money_type',},
withdrawStatus: {title: '提现状态',order: 6,view: 'list', type: 'string',dictCode: 'applet_withdraw_type',}, withdrawStatus: {title: '提现状态',order: 6,view: 'list', type: 'string',dictCode: 'applet_withdraw_type',},
waterId: {title: '流水号',order: 7,view: 'sel_search', type: 'string',dictTable: "applet_water", dictCode: 'id', dictText: 'number',}, waterId: {title: '流水号',order: 7,view: 'sel_search', type: 'string',dictTable: "applet_water", dictCode: 'id', dictText: 'number',},


+ 0
- 26
jeecgboot-vue3/src/views/applet/withdrawal/V20250919_1__menu_insert_AppletWithdrawal.sql View File

@ -1,26 +0,0 @@
-- 注意:该页面对应的前台目录为views/appletWithdrawal文件夹下
-- 如果你想更改到其他目录,请修改sql中component字段对应的值
INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external)
VALUES ('2025091903554910460', NULL, '提现', '/appletWithdrawal/appletWithdrawalList', 'appletWithdrawal/AppletWithdrawalList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2025-09-19 15:55:46', NULL, NULL, 0);
-- 权限控制sql
-- 新增
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2025091903554910461', '2025091903554910460', '添加提现', NULL, NULL, 0, NULL, NULL, 2, 'appletWithdrawal:applet_withdrawal:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2025-09-19 15:55:46', NULL, NULL, 0, 0, '1', 0);
-- 编辑
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2025091903554910462', '2025091903554910460', '编辑提现', NULL, NULL, 0, NULL, NULL, 2, 'appletWithdrawal:applet_withdrawal:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2025-09-19 15:55:46', NULL, NULL, 0, 0, '1', 0);
-- 删除
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2025091903554910463', '2025091903554910460', '删除提现', NULL, NULL, 0, NULL, NULL, 2, 'appletWithdrawal:applet_withdrawal:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2025-09-19 15:55:46', NULL, NULL, 0, 0, '1', 0);
-- 批量删除
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2025091903554910464', '2025091903554910460', '批量删除提现', NULL, NULL, 0, NULL, NULL, 2, 'appletWithdrawal:applet_withdrawal:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2025-09-19 15:55:46', NULL, NULL, 0, 0, '1', 0);
-- 导出excel
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2025091903554910465', '2025091903554910460', '导出excel_提现', NULL, NULL, 0, NULL, NULL, 2, 'appletWithdrawal:applet_withdrawal:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2025-09-19 15:55:46', NULL, NULL, 0, 0, '1', 0);
-- 导入excel
INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
VALUES ('2025091903554910466', '2025091903554910460', '导入excel_提现', NULL, NULL, 0, NULL, NULL, 2, 'appletWithdrawal:applet_withdrawal:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2025-09-19 15:55:46', NULL, NULL, 0, 0, '1', 0);

Loading…
Cancel
Save