Commit 0b562cdf authored by 黎博's avatar 黎博

优化渠道/资方默认值

parent 90db3fdc
......@@ -50,8 +50,8 @@ public class QueryLoanUserDataController {
@GetMapping("/getLoanUserData")
public JsonResult getLoanUserData(@RequestParam(value = "namespace") String namespace,
@RequestParam(value = "status") Integer status,
@RequestParam(defaultValue = "0") Integer channel,
@RequestParam(defaultValue = "0") Integer fundId,
@RequestParam(value = "channel" ) Integer channel,
@RequestParam(value = "fundId") Integer fundId,
@RequestParam(defaultValue = "1") Integer pageNum,
@RequestParam(defaultValue = "10") Integer pageSize) {
PageResult result = loanUserDataService.getLoanUserData(namespace, status, channel, fundId, pageNum, pageSize);
......
......@@ -6,7 +6,7 @@
SELECT `uuid` FROM `apply_list`
<where>
`apply_status` = 1
<if test="channel != 0">
<if test="channel != null">
AND `channel_id` = #{channel}
</if>
</where>
......@@ -42,7 +42,7 @@
SELECT `user_id` FROM apply_quota_record
<where>
`apply_status` = #{status}
<if test="channel != 0">
<if test="channel != null">
AND `apply_from` = #{channel}
</if>
</where>
......@@ -56,10 +56,10 @@
<where>
afrr.apply_status = 2
AND ao.status &lt;&gt; 1
<if test="channel != 0">
<if test="channel != null">
AND ao.created_from = #{channel}
</if>
<if test="fundId != 0">
<if test="fundId != null">
AND afrr.funding_corp_id=#{fundId}
</if>
</where>
......@@ -73,10 +73,10 @@
on lah.`user_id` = afrr.`user_id`
<where>
`progress` = #{progress}
<if test="channel != 0">
<if test="channel != null">
AND `channel_id` = #{channel}
</if>
<if test="fundId != 0">
<if test="fundId != null">
AND `funding_corp_id` = #{fundId}
</if>
</where>
......
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