|
@@ -203,10 +203,12 @@ public class AdminUserServiceImpl extends ServiceImpl<AdminUserMapper, AdminUser
|
|
@Override
|
|
@Override
|
|
public Result<?> giveMoney(AdminUser adminUser1) {
|
|
public Result<?> giveMoney(AdminUser adminUser1) {
|
|
String id = adminUser1.getId();
|
|
String id = adminUser1.getId();
|
|
- AdminUser adminUser = this.getById(id);
|
|
|
|
- String yzh = adminUser.getYzh();
|
|
|
|
- if ("0".equals(yzh)) {
|
|
|
|
- return Result.error("请确认云账户转账权限是否开启");
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ AdminCompSelect adminCompSelect = adminCompSelectService.getById(id);
|
|
|
|
+ String yzh = adminCompSelect.getYzh();
|
|
|
|
+ if ("0".equals(yzh)){
|
|
|
|
+ return Result.error("请确认云账户权限是否开启");
|
|
}
|
|
}
|
|
|
|
|
|
CreateBankpayOrderRequest request = new CreateBankpayOrderRequest();
|
|
CreateBankpayOrderRequest request = new CreateBankpayOrderRequest();
|
|
@@ -218,10 +220,12 @@ public class AdminUserServiceImpl extends ServiceImpl<AdminUserMapper, AdminUser
|
|
request.setOrderId("BL" + format + randomNumber);
|
|
request.setOrderId("BL" + format + randomNumber);
|
|
request.setDealerId(dealer_id);
|
|
request.setDealerId(dealer_id);
|
|
request.setBrokerId(broker_id);
|
|
request.setBrokerId(broker_id);
|
|
- request.setRealName(adminUser.getName());
|
|
|
|
- request.setCardNo(adminUser.getBackCard());
|
|
|
|
- request.setPhoneNo(adminUser.getCardholderPhone());
|
|
|
|
- request.setIdCard(adminUser.getCard());
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ request.setRealName(adminCompSelect.getName());
|
|
|
|
+ request.setCardNo(adminCompSelect.getBackCard());
|
|
|
|
+ request.setPhoneNo(adminCompSelect.getCardholderPhone());
|
|
|
|
+ request.setIdCard(adminCompSelect.getCard());
|
|
request.setPay(String.valueOf(adminUser1.getMoney()));
|
|
request.setPay(String.valueOf(adminUser1.getMoney()));
|
|
request.setPayRemark(adminUser1.getNotes());
|
|
request.setPayRemark(adminUser1.getNotes());
|
|
|
|
|
|
@@ -469,22 +473,17 @@ public class AdminUserServiceImpl extends ServiceImpl<AdminUserMapper, AdminUser
|
|
@Override
|
|
@Override
|
|
public void updateByUser(AdminUser adminUser) {
|
|
public void updateByUser(AdminUser adminUser) {
|
|
String phone = adminUser.getPhone();
|
|
String phone = adminUser.getPhone();
|
|
- LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
|
- QueryWrapper<AdminCompSelect> adminCompSelectQueryWrapper = new QueryWrapper<>();
|
|
|
|
- adminCompSelectQueryWrapper.eq("phone", phone);
|
|
|
|
- adminCompSelectQueryWrapper.eq("sys_org_code", sysUser.getOrgCode());
|
|
|
|
- adminCompSelectQueryWrapper.eq("doctor_and_specialist", "1");
|
|
|
|
- AdminCompSelect adminCompSelect = adminCompSelectService.getOne(adminCompSelectQueryWrapper);
|
|
|
|
- if (null != adminCompSelect) {
|
|
|
|
- adminCompSelect.setKsName(adminUser.getKsname());
|
|
|
|
- adminCompSelect.setDwName(adminUser.getDwname());
|
|
|
|
- adminCompSelect.setAvatar(adminUser.getAvatar());
|
|
|
|
- adminCompSelect.setCardPic(adminUser.getCardPic());
|
|
|
|
- adminCompSelect.setName(adminUser.getName());
|
|
|
|
- adminCompSelect.setWisWjdc(adminUser.getWisWjdc());
|
|
|
|
- adminCompSelect.setWisMhu(adminUser.getWisMhu());
|
|
|
|
- adminCompSelectService.updateById(adminCompSelect);
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ AdminCompSelect adminCompSelect = adminCompSelectService.getById(adminUser.getId());
|
|
|
|
+ adminCompSelect.setKsName(adminUser.getKsname());
|
|
|
|
+ adminCompSelect.setDwName(adminUser.getDwname());
|
|
|
|
+ adminCompSelect.setAvatar(adminUser.getAvatar());
|
|
|
|
+ adminCompSelect.setCardPic(adminUser.getCardPic());
|
|
|
|
+ adminCompSelect.setName(adminUser.getName());
|
|
|
|
+ adminCompSelect.setWisWjdc(adminUser.getWisWjdc());
|
|
|
|
+ adminCompSelect.setWisMhu(adminUser.getWisMhu());
|
|
|
|
+
|
|
|
|
+
|
|
adminUserService.updateById(adminUser);
|
|
adminUserService.updateById(adminUser);
|
|
|
|
|
|
}
|
|
}
|
|
@@ -673,21 +672,16 @@ public class AdminUserServiceImpl extends ServiceImpl<AdminUserMapper, AdminUser
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void updateByUser2(AdminUser adminUser) {
|
|
public void updateByUser2(AdminUser adminUser) {
|
|
- String phone = adminUser.getPhone();
|
|
|
|
- LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
|
- QueryWrapper<AdminCompSelect> adminCompSelectQueryWrapper = new QueryWrapper<>();
|
|
|
|
- adminCompSelectQueryWrapper.eq("phone", phone);
|
|
|
|
- adminCompSelectQueryWrapper.eq("sys_org_code", sysUser.getOrgCode());
|
|
|
|
- adminCompSelectQueryWrapper.eq("doctor_and_specialist", "2");
|
|
|
|
- AdminCompSelect adminCompSelect = adminCompSelectService.getOne(adminCompSelectQueryWrapper);
|
|
|
|
- if (null != adminCompSelect) {
|
|
|
|
- adminCompSelect.setKsName(adminUser.getKsname());
|
|
|
|
- adminCompSelect.setDwName(adminUser.getDwname());
|
|
|
|
- adminCompSelect.setAvatar(adminUser.getAvatar());
|
|
|
|
- adminCompSelect.setCardPic(adminUser.getCardPic());
|
|
|
|
- adminCompSelect.setName(adminUser.getName());
|
|
|
|
- adminCompSelectService.updateById(adminCompSelect);
|
|
|
|
- }
|
|
|
|
|
|
+ AdminCompSelect adminCompSelect = adminCompSelectService.getById(adminUser.getId());
|
|
|
|
+ adminCompSelect.setKsName(adminUser.getKsname());
|
|
|
|
+ adminCompSelect.setDwName(adminUser.getDwname());
|
|
|
|
+ adminCompSelect.setAvatar(adminUser.getAvatar());
|
|
|
|
+ adminCompSelect.setCardPic(adminUser.getCardPic());
|
|
|
|
+ adminCompSelect.setName(adminUser.getName());
|
|
|
|
+ adminCompSelect.setWisWjdc(adminUser.getWisWjdc());
|
|
|
|
+ adminCompSelect.setWisMhu(adminUser.getWisMhu());
|
|
|
|
+
|
|
|
|
+
|
|
adminUserService.updateById(adminUser);
|
|
adminUserService.updateById(adminUser);
|
|
|
|
|
|
}
|
|
}
|