去重, 删除无用日志(导致在只有一个时报错)

pull/5/head
infin_caishuxiao 8 years ago
parent d5518d76c8
commit aa49efb50a

@ -61,9 +61,9 @@ public class CronCollectionServiceImpl implements CronCollectionService
//FIXME 存量怎么办 //FIXME 存量怎么办
List<TBizCollection> list = entry.getValue(); List<TBizCollection> list = entry.getValue();
XxlJobLogger.log("\n\n``````````list size\n\n"+list.size()); XxlJobLogger.log("\n\n``````````list size\n\n"+list.size());
for (int x=0; x<5; x++) { // for (int x=0; x<5; x++) {
XxlJobLogger.log("\n"+ x +"\n"+list.get(x).getProjectNumber()); // XxlJobLogger.log("\n"+ x +"\n"+list.get(x).getProjectNumber());
} // }
for (int a=0; a<list.size(); a++) { for (int a=0; a<list.size(); a++) {
//序列化深拷贝 //序列化深拷贝
TBizCollection s = JSON.parseObject(JSON.toJSONString(list.get(a)), TBizCollection.class); TBizCollection s = JSON.parseObject(JSON.toJSONString(list.get(a)), TBizCollection.class);

@ -29,36 +29,42 @@
</resultMap> </resultMap>
<select id="queryAll" parameterType="java.lang.String" resultMap="BaseResultMap"> <select id="queryAll" parameterType="java.lang.String" resultMap="BaseResultMap">
select select tmp_2.*
t_biz.project_number,
t_u.login_name user_login_name,
t_ub.real_name user_real_name,
t_u.phone user_phone,
t_biz.user_id fk_t_user,
t_biz.fk_t_project,
t_biz.loan_time,
t_biz.deadline,
t_biz.unit,
t_biz.first_price_loan,
t_biz.repayment_date
from from
t_biz_collection tmp_1
right join
( (
select select
t1.user_id, t_biz.project_number,
t1.id fk_t_project, t_u.login_name user_login_name,
t1.number project_number, t_ub.real_name user_real_name,
t1.loan_time, t_u.phone user_phone,
t1.deadline, t_biz.user_id fk_t_user,
t1.unit, t_biz.fk_t_project,
t1.first_price_loan, t_biz.loan_time,
t2.repayment_date t_biz.deadline,
from t_project t1 inner join t_project_refund t2 on t1.id=t2.project_id and t1.status in ('7') t_biz.unit,
where t2.repayment_date > #{_parameter} t_biz.first_price_loan,
) t_biz t_biz.repayment_date
inner join from
t_user t_u ON t_u.user_id = t_biz.user_id (
inner join select
t_user_basis t_ub on t_ub.user_id=t_u.user_id; t1.user_id,
t1.id fk_t_project,
t1.number project_number,
t1.loan_time,
t1.deadline,
t1.unit,
t1.first_price_loan,
t2.repayment_date
from t_project t1 inner join t_project_refund t2 on t1.id=t2.project_id and t1.status in ('7')
where t2.repayment_date > #{_parameter}
) t_biz
inner join
t_user t_u ON t_u.user_id = t_biz.user_id
inner join
t_user_basis t_ub on t_ub.user_id=t_u.user_id
) tmp_2 on tmp_2.fk_t_project = tmp_1.fk_t_project where tmp_1.fk_t_project is null;
</select> </select>
<select id="queryUserByRoleId" parameterType="java.lang.String" resultType="java.util.HashMap"> <select id="queryUserByRoleId" parameterType="java.lang.String" resultType="java.util.HashMap">

Loading…
Cancel
Save