新功能及bug修改
This commit is contained in:
+9
-4
@@ -141,6 +141,7 @@
|
|||||||
LEFT JOIN st_bbzx_order_info sboi ON a.order_no = sboi.order_no
|
LEFT JOIN st_bbzx_order_info sboi ON a.order_no = sboi.order_no
|
||||||
</if>
|
</if>
|
||||||
LEFT JOIN sys_user_sub AS c ON a.member_id = c.id
|
LEFT JOIN sys_user_sub AS c ON a.member_id = c.id
|
||||||
|
LEFT JOIN sys_user_sub AS pay ON a.pay_member_id = pay.id
|
||||||
WHERE a.is_del = 0
|
WHERE a.is_del = 0
|
||||||
<if test="vo.startTime != null and vo.endTime !=''">
|
<if test="vo.startTime != null and vo.endTime !=''">
|
||||||
<choose>
|
<choose>
|
||||||
@@ -175,7 +176,9 @@
|
|||||||
and c.work_no like CONCAT('%',#{vo.workNo,jdbcType=VARCHAR},'%')
|
and c.work_no like CONCAT('%',#{vo.workNo,jdbcType=VARCHAR},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="vo.userName != null and vo.userName != ''">
|
<if test="vo.userName != null and vo.userName != ''">
|
||||||
and c.realname like CONCAT('%',#{vo.userName,jdbcType=VARCHAR},'%')
|
and (c.realname like CONCAT('%',#{vo.userName,jdbcType=VARCHAR},'%') or
|
||||||
|
pay.realname like CONCAT('%',#{vo.userName,jdbcType=VARCHAR},'%')
|
||||||
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="vo.canteenId != null and vo.canteenId != ''">
|
<if test="vo.canteenId != null and vo.canteenId != ''">
|
||||||
and a.canteen_id = #{vo.canteenId}
|
and a.canteen_id = #{vo.canteenId}
|
||||||
@@ -191,8 +194,7 @@
|
|||||||
a.id,
|
a.id,
|
||||||
a.serial_no as serialNo,
|
a.serial_no as serialNo,
|
||||||
a.order_no as orderNo,
|
a.order_no as orderNo,
|
||||||
c.realname as userName,
|
IF(a.member_id = a.pay_member_id,pay.realname,CONCAT(pay.realname,'-',c.realname)) as userName,
|
||||||
|
|
||||||
c.phone,
|
c.phone,
|
||||||
c.work_no as workNo,
|
c.work_no as workNo,
|
||||||
a.status,
|
a.status,
|
||||||
@@ -211,6 +213,7 @@
|
|||||||
LEFT JOIN st_bbzx_order_info sboi ON a.order_no = sboi.order_no
|
LEFT JOIN st_bbzx_order_info sboi ON a.order_no = sboi.order_no
|
||||||
</if>
|
</if>
|
||||||
LEFT JOIN sys_user_sub AS c ON a.member_id = c.id
|
LEFT JOIN sys_user_sub AS c ON a.member_id = c.id
|
||||||
|
LEFT JOIN sys_user_sub AS pay ON a.pay_member_id = pay.id
|
||||||
WHERE a.is_del = 0
|
WHERE a.is_del = 0
|
||||||
<if test="vo.startTime != null and vo.endTime !=''">
|
<if test="vo.startTime != null and vo.endTime !=''">
|
||||||
<choose>
|
<choose>
|
||||||
@@ -245,7 +248,9 @@
|
|||||||
and c.work_no like CONCAT('%',#{vo.workNo,jdbcType=VARCHAR},'%')
|
and c.work_no like CONCAT('%',#{vo.workNo,jdbcType=VARCHAR},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="vo.userName != null and vo.userName != ''">
|
<if test="vo.userName != null and vo.userName != ''">
|
||||||
and c.realname like CONCAT('%',#{vo.userName,jdbcType=VARCHAR},'%')
|
and (c.realname like CONCAT('%',#{vo.userName,jdbcType=VARCHAR},'%') or
|
||||||
|
pay.realname like CONCAT('%',#{vo.userName,jdbcType=VARCHAR},'%')
|
||||||
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="vo.canteenId != null and vo.canteenId != ''">
|
<if test="vo.canteenId != null and vo.canteenId != ''">
|
||||||
and a.canteen_id = #{vo.canteenId}
|
and a.canteen_id = #{vo.canteenId}
|
||||||
|
|||||||
+4
@@ -421,6 +421,10 @@ public class StClientMemberLevelDeductRuleServiceImpl extends JeecgServiceImpl<S
|
|||||||
if(CollectionUtils.isEmpty(voListAll)){
|
if(CollectionUtils.isEmpty(voListAll)){
|
||||||
return Result.error("扣费信息不能为空");
|
return Result.error("扣费信息不能为空");
|
||||||
}
|
}
|
||||||
|
voListAll.forEach(vo -> {
|
||||||
|
vo.setRestId(restId);
|
||||||
|
vo.setDeviceCode(deviceCode);
|
||||||
|
});
|
||||||
// //去重
|
// //去重
|
||||||
// voListAll = filterDuplicateTimestamp(voListAll);
|
// voListAll = filterDuplicateTimestamp(voListAll);
|
||||||
//数据预处理: 一人 一餐 除二次扣费外 只有一条扣费数据
|
//数据预处理: 一人 一餐 除二次扣费外 只有一条扣费数据
|
||||||
|
|||||||
Reference in New Issue
Block a user