Commit 9ebfaaac authored by zhangfeng's avatar zhangfeng

feat-481: 积分记录列表,添加会员编号查询条件

parent f58accb7
...@@ -65,6 +65,7 @@ public class ScoreRuleGenCodeUtils { ...@@ -65,6 +65,7 @@ public class ScoreRuleGenCodeUtils {
} }
} }
// 获得5位序列号,不足位前面补0 // 获得5位序列号,不足位前面补0
codeNum = codeNum % 100000;
code.append(String.format("%05d", codeNum)); code.append(String.format("%05d", codeNum));
return code.toString(); return code.toString();
} }
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<sql id="pageCondition"> <sql id="pageCondition">
<if test="query.key !=null and query.key != ''"> <if test="query.key !=null and query.key != ''">
and (mu.nickname like '%${query.key}%' or mu.mobile like '%${query.key}%') and (mu.nickname like '%${query.key}%' or mu.mobile like '%${query.key}%' or mu.code like '%${query.key}%')
</if> </if>
<if test="query.sourceType !=null"> <if test="query.sourceType !=null">
and musl.source_type = #{query.sourceType} and musl.source_type = #{query.sourceType}
......
...@@ -65,6 +65,7 @@ public class RewardGenCodeUtils { ...@@ -65,6 +65,7 @@ public class RewardGenCodeUtils {
} }
} }
// 获得5位序列号,不足位前面补0 // 获得5位序列号,不足位前面补0
codeNum = codeNum % 100000;
code.append(String.format("%05d", codeNum)); code.append(String.format("%05d", codeNum));
return code.toString(); return code.toString();
} }
...@@ -103,6 +104,7 @@ public class RewardGenCodeUtils { ...@@ -103,6 +104,7 @@ public class RewardGenCodeUtils {
} }
} }
// 获得5位序列号,不足位前面补0 // 获得5位序列号,不足位前面补0
codeNum = codeNum % 100000;
code.append(String.format("%05d", codeNum)); code.append(String.format("%05d", codeNum));
return code.toString(); return code.toString();
} }
......
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