Commit 1ed6d19b authored by hanfeng's avatar hanfeng

Merge branch 'base-modify' of http://10.5.52.3/youjj/cloud-platform into base-modify

parents 7b6c102b 2a790c7f
...@@ -9,6 +9,7 @@ import com.github.wxiaoqi.security.admin.mapper.MyWalletMapper; ...@@ -9,6 +9,7 @@ import com.github.wxiaoqi.security.admin.mapper.MyWalletMapper;
import com.github.wxiaoqi.security.common.biz.BaseBiz; import com.github.wxiaoqi.security.common.biz.BaseBiz;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse; import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.xxfc.platform.activity.feign.ActivityFeign; import com.xxfc.platform.activity.feign.ActivityFeign;
import com.xxl.job.core.log.XxlJobLogger;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -186,11 +187,13 @@ public class MyWaterBiz extends BaseBiz<MyWalletMapper, MyWallet>{ ...@@ -186,11 +187,13 @@ public class MyWaterBiz extends BaseBiz<MyWalletMapper, MyWallet>{
example.createCriteria().andGreaterThan("todayAmount",0).andEqualTo("isFrozen",0); example.createCriteria().andGreaterThan("todayAmount",0).andEqualTo("isFrozen",0);
List<MyWallet> list=selectByExample(example); List<MyWallet> list=selectByExample(example);
log.info("---钱包定时处理今日收益updTodayAmount----size==="+list.size()); log.info("---钱包定时处理今日收益updTodayAmount----size==="+list.size());
XxlJobLogger.log("---钱包定时处理今日收益updTodayAmount----size==="+list.size());
if (list.size()>0){ if (list.size()>0){
for (MyWallet myWallet:list){ for (MyWallet myWallet:list){
log.info("---钱包定时处理今日收益updTodayAmount----userId==="+myWallet.getUserId()); log.info("---钱包定时处理今日收益updTodayAmount----userId==="+myWallet.getUserId());
XxlJobLogger.log("---钱包定时处理今日收益updTodayAmount----userId==="+myWallet.getUserId());
MyWallet myWallet1=new MyWallet(); MyWallet myWallet1=new MyWallet();
myWallet1.setId(myWallet.getId()); myWallet1.setUserId(myWallet.getUserId());
myWallet1.setTodayAmount(new BigDecimal("0.00")); myWallet1.setTodayAmount(new BigDecimal("0.00"));
updateSelectiveById(myWallet1); updateSelectiveById(myWallet1);
} }
......
...@@ -19,22 +19,21 @@ import java.io.Serializable; ...@@ -19,22 +19,21 @@ import java.io.Serializable;
*/ */
@JobHandler(value = "walletHandler") @JobHandler(value = "walletHandler")
@Component @Component
//@Slf4j @Slf4j
public class RentDepositJobHandler extends IJobHandler { public class RentDepositJobHandler extends IJobHandler {
// @Autowired @Autowired
// MyWaterBiz myWaterBiz; MyWaterBiz myWaterBiz;
@Override @Override
public ReturnT<String> execute(String var1) throws Exception { public ReturnT<String> execute(String var1) {
try { try {
XxlJobLogger.log("-----定时器进入---walletHandler---"); XxlJobLogger.log("-----定时器进入---walletHandler---");
// log.info("-----定时器进入---walletHandler---"); log.info("-----定时器进入---walletHandler---");
// myWaterBiz.updTodayAmount(); myWaterBiz.updTodayAmount();
ReturnT returnT = new ReturnT(){{ ReturnT returnT = new ReturnT();
setCode(100); returnT.setCode(100);
setMsg("成功"); returnT.setMsg("成功");
}};
return returnT; return returnT;
} catch (Exception e) { } catch (Exception e) {
XxlJobLogger.log(e); XxlJobLogger.log(e);
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</update> </update>
<select id="findExportDataPage" resultType="com.github.wxiaoqi.security.admin.dto.BaseUserMemberExportDTO"> <select id="findExportDataPage" resultType="com.github.wxiaoqi.security.admin.dto.BaseUserMemberExportDTO">
select `id`,`member_level` as `memberLevel`,`rent_free_days` as `rentFreeDays`,`total_number` as `totalNumber`,`username`,`status`,`crt_name` as `crtName`,`crt_time`as `crtTime` from `base_user_member_export` where `is_del`=0 select `id`,`member_level` as `memberLevel`,`member_name` as `memberName`,`rent_free_days` as `rentFreeDays`,`total_number` as `totalNumber`,`username`,`status`,`crt_name` as `crtName`,`crt_time`as `crtTime` from `base_user_member_export` where `is_del`=0
<if test="username != null and username != ''"> <if test="username != null and username != ''">
and `username`=#{username} and `username`=#{username}
</if> </if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment