Browse Source

测试前最新 -1

main
沈训 4 weeks ago
parent
commit
66e36a75fb
  1. 16
      coin-admin/src/main/resources/application-dev.yml
  2. 1
      coin-app/src/main/java/com/coin/app/controller/common/CaptchaController.java
  3. 14
      coin-app/src/main/java/com/coin/app/controller/common/UserFriendController.java
  4. 24
      coin-app/src/main/java/com/coin/app/controller/user/UserCardController.java
  5. 20
      coin-app/src/main/java/com/coin/app/controller/user/UserPasswdController.java
  6. 16
      coin-app/src/main/resources/application-dev.yml
  7. 12
      coin-app/src/main/resources/application-prod.yml
  8. 4
      coin-common/src/main/java/com/coin/common/utils/code/BusinessCodeUtils.java
  9. 6
      coin-system/src/main/java/com/coin/app/service/impl/AppDealServiceImpl.java
  10. 5
      coin-system/src/main/java/com/coin/business/domain/bo/UserCardBo.java
  11. 5
      coin-system/src/main/java/com/coin/business/service/IUserCardService.java
  12. 28
      coin-system/src/main/java/com/coin/business/service/impl/UserCardServiceImpl.java
  13. 4
      coin-system/src/main/resources/mapper/business/RecordTransactionMapper.xml

16
coin-admin/src/main/resources/application-dev.yml

@ -49,17 +49,21 @@ spring:
driverClassName: com.mysql.cj.jdbc.Driver
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
url: jdbc:mysql://192.168.0.160:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
# url: jdbc:mysql://192.168.0.160:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
url: jdbc:mysql://8.137.52.68:3308/foundhold?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
username: root
password: admin@Passw0rd
password: Coin123654
# admin@Passw0rd
# 从库数据源
slave:
lazy: true
type: ${spring.datasource.type}
driverClassName: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://192.168.0.160:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
# url: jdbc:mysql://192.168.0.160:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
url: jdbc:mysql://8.137.52.68:3308/foundhold?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
username: root
password: admin@Passw0rd
password: Coin123654
# admin@Passw0rd
# oracle:
# type: ${spring.datasource.type}
# driverClassName: oracle.jdbc.OracleDriver
@ -98,13 +102,13 @@ spring:
spring:
redis:
# 地址
host: 192.168.0.160
host: 192.168.0.12
# 端口,默认为6379
port: 6379
# 数据库索引
database: 0
# 密码(如没有密码请注释掉)
password: 123456
# password: 123456
# 连接超时时间
timeout: 10s
# 是否开启ssl

1
coin-app/src/main/java/com/coin/app/controller/common/CaptchaController.java

@ -80,6 +80,7 @@ public class CaptchaController {
userAccountVo.setAccountCode(BusinessCodeUtils.generateAccountCode(String.valueOf(appRegister.getUserId()),appRegister.getPhonenumber()));
userAccountVo.setAccountName(appRegister.getUserName());
userAccountVo.setAccountAmount(BigDecimal.valueOf(0L));
userAccountVo.setIsPrimary("1");
userAccountService.initUserAccount(userAccountVo);
return R.ok("注册成功!");
}

14
coin-app/src/main/java/com/coin/app/controller/common/UserFriendController.java

@ -45,7 +45,7 @@ public class UserFriendController extends BaseController {
/**
* 查询登录用户的好友列表
*/
@SaCheckPermission("business:userFriend:list")
// @SaCheckPermission("business:userFriend:list")
@GetMapping("/listByUser")
public TableDataInfo<SysUser> listByUser(UserFriendBo bo, PageQuery pageQuery) {
return iUserFriendService.queryPageListByUser(bo, pageQuery);
@ -55,7 +55,7 @@ public class UserFriendController extends BaseController {
/**
* 查询用户好友列表
*/
@SaCheckPermission("business:userFriend:list")
// @SaCheckPermission("business:userFriend:list")
@GetMapping("/list")
public TableDataInfo<UserFriendVo> list(UserFriendBo bo, PageQuery pageQuery) {
return iUserFriendService.queryPageList(bo, pageQuery);
@ -64,7 +64,7 @@ public class UserFriendController extends BaseController {
/**
* 导出用户好友列表
*/
@SaCheckPermission("business:userFriend:export")
// @SaCheckPermission("business:userFriend:export")
@Log(title = "用户好友", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(UserFriendBo bo, HttpServletResponse response) {
@ -77,7 +77,7 @@ public class UserFriendController extends BaseController {
*
* @param id 主键
*/
@SaCheckPermission("business:userFriend:query")
// @SaCheckPermission("business:userFriend:query")
@GetMapping("/{id}")
public R<UserFriendVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {
@ -87,7 +87,7 @@ public class UserFriendController extends BaseController {
/**
* 新增用户好友
*/
@SaCheckPermission("business:userFriend:add")
// @SaCheckPermission("business:userFriend:add")
@Log(title = "用户好友", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping()
@ -98,7 +98,7 @@ public class UserFriendController extends BaseController {
/**
* 修改用户好友
*/
@SaCheckPermission("business:userFriend:edit")
// @SaCheckPermission("business:userFriend:edit")
@Log(title = "用户好友", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping()
@ -111,7 +111,7 @@ public class UserFriendController extends BaseController {
*
* @param ids 主键串
*/
@SaCheckPermission("business:userFriend:remove")
// @SaCheckPermission("business:userFriend:remove")
@Log(title = "用户好友", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public R<Void> remove(@NotEmpty(message = "主键不能为空")

24
coin-app/src/main/java/com/coin/app/controller/user/UserCardController.java

@ -41,7 +41,7 @@ public class UserCardController extends BaseController {
/**
* 查询用户银行卡列表 分页
*/
@SaCheckPermission("business:userCard:list")
// @SaCheckPermission("business:userCard:list")
@GetMapping("/list")
public TableDataInfo<UserCardVo> list(UserCardBo bo, PageQuery pageQuery) {
return iUserCardService.queryPageList(bo, pageQuery);
@ -50,7 +50,7 @@ public class UserCardController extends BaseController {
/**
* 查询用户银行卡列表
*/
@SaCheckPermission("business:userCard:export")
// @SaCheckPermission("business:userCard:export")
@Log(title = "用户银行卡", businessType = BusinessType.EXPORT)
@GetMapping("/getBankList")
public List<UserCardVo> getBankList(UserCardBo bo) {
@ -60,7 +60,7 @@ public class UserCardController extends BaseController {
/**
* 导出用户银行卡列表
*/
@SaCheckPermission("business:userCard:export")
// @SaCheckPermission("business:userCard:export")
@Log(title = "用户银行卡", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(UserCardBo bo, HttpServletResponse response) {
@ -73,7 +73,7 @@ public class UserCardController extends BaseController {
*
* @param id 主键
*/
@SaCheckPermission("business:userCard:query")
// @SaCheckPermission("business:userCard:query")
@GetMapping("/{id}")
public R<UserCardVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {
@ -83,7 +83,7 @@ public class UserCardController extends BaseController {
/**
* 新增用户银行卡
*/
@SaCheckPermission("business:userCard:add")
// @SaCheckPermission("business:userCard:add")
@Log(title = "用户银行卡", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping("/addBankCard")
@ -106,7 +106,7 @@ public class UserCardController extends BaseController {
/**
* 修改用户银行卡
*/
@SaCheckPermission("business:userCard:edit")
// @SaCheckPermission("business:userCard:edit")
@Log(title = "用户银行卡", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping()
@ -119,11 +119,21 @@ public class UserCardController extends BaseController {
*
* @param ids 主键串
*/
@SaCheckPermission("business:userCard:remove")
// @SaCheckPermission("business:userCard:remove")
@Log(title = "用户银行卡", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public R<Void> remove(@NotEmpty(message = "主键不能为空")
@PathVariable Long[] ids) {
return toAjax(iUserCardService.deleteWithValidByIds(Arrays.asList(ids), true));
}
/**
* 解绑银行卡
*/
@Log(title = "用户银行卡", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PostMapping("/unbindCard")
public R<Void> unbindCard(@Validated(AddGroup.class) @RequestBody UserCardBo bo) {
return iUserCardService.unbindCard(bo);
}
}

20
coin-app/src/main/java/com/coin/app/controller/user/UserPasswdController.java

@ -42,7 +42,7 @@ public class UserPasswdController extends BaseController {
/**
* 查询用户密码列表
*/
@SaCheckPermission("business:userPasswd:list")
// @SaCheckPermission("business:userPasswd:list")
@GetMapping("/list")
public TableDataInfo<UserPasswdVo> list(UserPasswdBo bo, PageQuery pageQuery) {
return iUserPasswdService.queryPageList(bo, pageQuery);
@ -51,7 +51,7 @@ public class UserPasswdController extends BaseController {
/**
* 校验登录密码
*/
@SaCheckPermission("business:userPasswd:list")
// @SaCheckPermission("business:userPasswd:list")
@GetMapping("/checkPwd")
public R<UserPasswdVo> checkPwd(UserPasswdBo bo) {
return R.ok(iUserPasswdService.checkPwd(bo));
@ -62,15 +62,15 @@ public class UserPasswdController extends BaseController {
*/
// @SaCheckPermission("business:userPasswd:query")
@GetMapping("/haveOrNotPayPwd")
public R<Void> haveOrNotPayPwd() {
public R<Boolean> haveOrNotPayPwd() {
Long userId = LoginHelper.getUserId();
return toAjax(iUserPasswdService.haveOrNotPayPwd(userId));
return R.ok(iUserPasswdService.haveOrNotPayPwd(userId));
}
/**
* 导出用户密码列表
*/
@SaCheckPermission("business:userPasswd:export")
// @SaCheckPermission("business:userPasswd:export")
@Log(title = "用户密码", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(UserPasswdBo bo, HttpServletResponse response) {
@ -83,7 +83,7 @@ public class UserPasswdController extends BaseController {
*
* @param id 主键
*/
@SaCheckPermission("business:userPasswd:query")
// @SaCheckPermission("business:userPasswd:query")
@GetMapping("/{id}")
public R<UserPasswdVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable("id") Long id) {
@ -93,7 +93,7 @@ public class UserPasswdController extends BaseController {
/**
* 新增用户密码
*/
@SaCheckPermission("business:userPasswd:add")
// @SaCheckPermission("business:userPasswd:add")
@Log(title = "用户密码", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping()
@ -104,7 +104,7 @@ public class UserPasswdController extends BaseController {
/**
* 修改用户密码
*/
@SaCheckPermission("business:userPasswd:edit")
// @SaCheckPermission("business:userPasswd:edit")
@Log(title = "用户密码", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping()
@ -116,7 +116,7 @@ public class UserPasswdController extends BaseController {
/**
* 修改用户密码
*/
@SaCheckPermission("business:userPasswd:edit")
// @SaCheckPermission("business:userPasswd:edit")
@Log(title = "通过UserId修改用户密码", businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping("/editByUserId")
@ -129,7 +129,7 @@ public class UserPasswdController extends BaseController {
*
* @param ids 主键串
*/
@SaCheckPermission("business:userPasswd:remove")
// @SaCheckPermission("business:userPasswd:remove")
@Log(title = "用户密码", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public R<Void> remove(@NotEmpty(message = "主键不能为空")

16
coin-app/src/main/resources/application-dev.yml

@ -50,19 +50,25 @@ spring:
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
# url: jdbc:mysql://192.168.0.160:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
url: jdbc:mysql://localhost:3306/ry_vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
# url: jdbc:mysql://localhost:3306/ry_vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
url: jdbc:mysql://8.137.52.68:3308/foundhold?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
username: root
password: Coin123654
# username: root
# password: admin@Passw0rd
password: 199911
# password: 199911
# 从库数据源
slave:
lazy: true
type: ${spring.datasource.type}
driverClassName: com.mysql.cj.jdbc.Driver
# url: jdbc:mysql://192.168.0.160:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
url: jdbc:mysql://localhost:3306/ry_vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
# url: jdbc:mysql://localhost:3306/ry_vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
url: jdbc:mysql://8.137.52.68:3308/foundhold?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
username: root
password: 199911
password: Coin123654
# username: root
# password: 199911
# password: admin@Passw0rd
# oracle:
@ -105,7 +111,7 @@ spring:
# 地址
# host: 192.168.0.160
# host: localhost
host: 192.168.0.34
host: 192.168.0.12
# 端口,默认为6379
port: 6379
# 数据库索引

12
coin-app/src/main/resources/application-prod.yml

@ -52,17 +52,19 @@ spring:
driverClassName: com.mysql.cj.jdbc.Driver
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
url: jdbc:mysql://8.137.52.68:3308/foundhold?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
# url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
username: root
password: root
password: Coin123654
# 从库数据源
slave:
lazy: true
type: ${spring.datasource.type}
driverClassName: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
username:
password:
# url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
url: jdbc:mysql://8.137.52.68:3308/foundhold?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
username: root
password: Coin123654
# oracle:
# type: ${spring.datasource.type}
# driverClassName: oracle.jdbc.OracleDriver

4
coin-common/src/main/java/com/coin/common/utils/code/BusinessCodeUtils.java

@ -117,7 +117,9 @@ public class BusinessCodeUtils {
String uniqueCode = UniqueCodeGenerator.generateTimeBasedCode();
if (type == BusinessType.BC) {
return String.format("%s%s%s%s%s%s%s%s%.3f",
type.name(), SEPARATOR, fromUserId, SEPARATOR, accountId, SEPARATOR, uniqueCode, SEPARATOR, amount);
// type.name(), SEPARATOR, fromUserId, SEPARATOR, accountId, SEPARATOR, uniqueCode, SEPARATOR, amount);
type.name(), SEPARATOR, fromUserId, SEPARATOR, toUserId, SEPARATOR, uniqueCode, SEPARATOR, amount);
} else {
return String.format("%s%s%s%s%s%s%s%s%.3f",
type.name(), SEPARATOR, fromUserId, SEPARATOR, toUserId, SEPARATOR, uniqueCode, SEPARATOR, amount);

6
coin-system/src/main/java/com/coin/app/service/impl/AppDealServiceImpl.java

@ -68,7 +68,7 @@ public class AppDealServiceImpl implements IAppDealService {
}
@Override
@Transactional(rollbackFor = Exception.class)
// @Transactional(rollbackFor = Exception.class)
public DealCashout createCashOut(DealItemVO dealItem) {
try {
DealCashout cashOut = new DealCashout();
@ -113,8 +113,8 @@ public class AppDealServiceImpl implements IAppDealService {
return topUp;
} catch (Exception e) {
log.error("创建提现订单失败", e);
throw new ServiceException("创建提现订单失败: " + e.getMessage());
log.error("创建充值订单失败", e);
throw new ServiceException("创建充值订单失败: " + e.getMessage());
}
}

5
coin-system/src/main/java/com/coin/business/domain/bo/UserCardBo.java

@ -57,5 +57,10 @@ public class UserCardBo extends BaseEntity {
*/
private String status;
/**
* 删除标志0代表存在 2代表删除
*/
private String delFlag;
}

5
coin-system/src/main/java/com/coin/business/service/IUserCardService.java

@ -52,4 +52,9 @@ public interface IUserCardService {
* 查询用户银行卡列表
*/
List<UserCardVo> getBankList(UserCardBo bo);
/**
* 解绑银行卡
*/
R<Void> unbindCard(UserCardBo bo);
}

28
coin-system/src/main/java/com/coin/business/service/impl/UserCardServiceImpl.java

@ -1,6 +1,7 @@
package com.coin.business.service.impl;
import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.coin.business.domain.UserAccount;
import com.coin.business.mapper.UserAccountMapper;
import com.coin.common.core.domain.R;
@ -54,6 +55,7 @@ public class UserCardServiceImpl implements IUserCardService {
result.getRecords().forEach(item -> {
try {
String decrypt = RSAUtils.decrypt(item.getCardNum());
item.setCardNum2(item.getCardNum());
item.setCardNum( "**** **** **** " + decrypt.substring(Math.max(0, decrypt.length() - 4)));
} catch (Exception e) {
throw new RuntimeException(e);
@ -79,7 +81,8 @@ public class UserCardServiceImpl implements IUserCardService {
lqw.eq(bo.getCardAmount() != null, UserCard::getCardAmount, bo.getCardAmount());
lqw.like(StringUtils.isNotBlank(bo.getBankName()), UserCard::getBankName, bo.getBankName());
lqw.like(StringUtils.isNotBlank(bo.getDeptName()), UserCard::getDeptName, bo.getDeptName());
lqw.eq(StringUtils.isNotBlank(bo.getStatus()), UserCard::getStatus, bo.getStatus());
lqw.eq(StringUtils.isNotBlank(bo.getStatus()), UserCard::getStatus, "0");
lqw.eq(StringUtils.isNotBlank(bo.getDelFlag()), UserCard::getDelFlag, "0");
lqw.between(params.get("beginCreateTime") != null && params.get("endCreateTime") != null,
UserCard::getCreateTime ,params.get("beginCreateTime"), params.get("endCreateTime"));
lqw.between(params.get("beginUpdateTime") != null && params.get("endUpdateTime") != null,
@ -167,13 +170,36 @@ public class UserCardServiceImpl implements IUserCardService {
return result;
}
/**
* 解绑银行卡
*/
@Override
public R<Void> unbindCard(UserCardBo bo) {
LambdaUpdateWrapper<UserCard> lqw = Wrappers.lambdaUpdate();
lqw.set(UserCard::getDelFlag, "2")
.eq(StringUtils.isNotBlank(bo.getUserId()), UserCard::getUserId, bo.getUserId())
.eq(StringUtils.isNotBlank(bo.getCardNum()), UserCard::getCardNum, RSAComparator.encrypt(bo.getCardNum()));
int update = baseMapper.update(null, lqw);
if (update > 0) {
return R.ok("解绑成功");
} else {
return R.fail("解绑失败");
}
}
/**
* 查询用户银行卡列表
*/
public List<UserCardVo> selectUserBankCard(UserCardBo bo){
LambdaQueryWrapper<UserCard> lqw = Wrappers.lambdaQuery();
lqw.eq(StringUtils.isNotBlank(bo.getUserId()), UserCard::getUserId, bo.getUserId());
return baseMapper.selectVoList(lqw);
}
/**
* 构建用户账户
*/
public UserAccount buildAccount(UserCardBo vo){
UserAccount account = new UserAccount();
account.setAccountId(vo.getCardNum());

4
coin-system/src/main/resources/mapper/business/RecordTransactionMapper.xml

@ -34,7 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
from t_record_transaction a
left join t_user_account b on a.sender_account = b.account_id
<where>
sender_id = 1 and type like 'BT%'
sender_id = #{search.id} and type like 'BT%'
<if test="search.key != null and search.key != ''">
and (
sender_account like concat('%', #{search.key}, '%')
@ -63,7 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
from t_record_transaction a
left join t_user_account b on a.sender_account = b.account_id
<where>
sender_id = 1 and is_primary = 1
sender_id = #{search.id} and is_primary = 1
<if test="search.key != null and search.key != ''">
and (
sender_account like concat('%', #{search.key}, '%')

Loading…
Cancel
Save