1
zj
2024-09-29 4d2d47577b5d6f27288bfcfc60b74435d464dde0
1
5 files modified
25 ■■■■ changed files
src/main/java/com/nq/service/impl/UserPositionServiceImpl.java 2 ●●● patch | view | raw | blame | history
src/main/java/com/nq/service/impl/UserWithdrawServiceImpl.java 3 ●●●● patch | view | raw | blame | history
src/main/java/com/nq/utils/task/stock/StockTask.java 2 ●●● patch | view | raw | blame | history
src/main/resources/mapper/UserRechargeMapper.xml 12 ●●●● patch | view | raw | blame | history
src/main/resources/mapper/UserWithdrawMapper.xml 6 ●●●● patch | view | raw | blame | history
src/main/java/com/nq/service/impl/UserPositionServiceImpl.java
@@ -1255,7 +1255,7 @@
            userPosition.setBuyOrderPrice(userStockSubscribe.getBuyPrice());
            userPosition.setOrderDirection("买涨");
            userPosition.setOrderNum(userStockSubscribe.getApplyNumber());
            userPosition.setOrderNum(userStockSubscribe.getApplyNumber()*stockSubscribe.getLever().intValue());
            userPosition.setIsLock(Integer.valueOf(0));
src/main/java/com/nq/service/impl/UserWithdrawServiceImpl.java
@@ -127,7 +127,7 @@
            String time = iStockConfigServices.queryByKey(EConfigKey.WITHDRAW_TIME_SETTING.getCode()).getCValue();
            if (!WithDrawUtils.checkIsWithTime( Integer.parseInt(time.split("-")[0]), Integer.parseInt(time.split("-")[1]))) {
                return ServerResponse.createByErrorMsg("撤销失败了。提现时间为" + time.split("-")[0] + "点 - " + time.split("-")[1] + "点之间的",request);
                return ServerResponse.createByErrorMsg("提现失败。提现时间为" + time.split("-")[0] + " - " + time.split("-")[1],request);
            }
            BigDecimal useAmt =  iUserAssetsServices.getAvailableBalance(accsetType,user.getId());
            BigDecimal tAmt = new BigDecimal(amt);
@@ -161,7 +161,6 @@
        }
    }
    public ServerResponse<PageInfo> findUserWithList(String withStatus, HttpServletRequest request, int pageNum, int pageSize) {
src/main/java/com/nq/utils/task/stock/StockTask.java
@@ -61,7 +61,7 @@
    /**
     * 同步系统所需要的股票
     */
    @Scheduled(cron = "0 0/30 * * * ?")
    @Scheduled(cron = "0 0/10 * * * ?")
    public void syncINStockData() {
        if (syncINStockData.get()) { // 判断任务是否在处理中
            return;
src/main/resources/mapper/UserRechargeMapper.xml
@@ -219,8 +219,8 @@
    FROM user_recharge s
    join site_pay p
    on s.pay_id = p.id
    where  agent_id != 1
    <if test="agentId != null">
    where  1=1
    <if test="agentId != null and agentId != ''">
      and ( agent_id = #{agentId}
      or agent_id in (
      select agent_user.id
@@ -229,20 +229,20 @@
      )
      )
    </if>
    <if test="userId != null">
    <if test="userId != null and agentId != ''">
      and user_id = #{userId}
    </if>
    <if test="realName != null and realName != '' ">
      and nick_name like CONCAT('%','${realName}','%')
    </if>
    <if test="state != null">
    <if test="state != null and agentId != ''">
      and order_status = #{state}
    </if>
    <if test="begin_time != null ">
    <if test="begin_time != null  and agentId != ''">
      and pay_time <![CDATA[>=]]> #{begin_time}
    </if>
    <if test="end_time != null ">
    <if test="end_time != null and agentId != ''">
      and pay_time <![CDATA[<=]]> #{end_time}
    </if>
    ORDER BY s.id DESC
src/main/resources/mapper/UserWithdrawMapper.xml
@@ -235,8 +235,8 @@
    SELECT
    <include refid="Base_Column_List"/>
    FROM user_withdraw
    where agent_id != 1
      <if test="agentId != null">
    where 1=1
      <if test="agentId != null and agentId != ''">
        and ( agent_id = #{agentId}
        or agent_id in (
        select agent_user.id
@@ -245,7 +245,7 @@
        )
        )
      </if>
      <if test="userId != null">
      <if test="userId != null and agentId != ''">
        and user_id = #{userId}
      </if>
      <if test="realName != null and realName != '' ">