Compare commits

...

3 Commits

  1. 2
      src/main/java/com/qs/serve/modules/bir/entity/dto/BirTbsVtbPayJoinDTO.java
  2. 2
      src/main/java/com/qs/serve/modules/bir/entity/so/BirTbsVtbPayJoinSo.java
  3. 19
      src/main/resources/mapper/bir/BirTbsVtbPayJoinMapper.xml

2
src/main/java/com/qs/serve/modules/bir/entity/dto/BirTbsVtbPayJoinDTO.java

@ -52,6 +52,8 @@ public class BirTbsVtbPayJoinDTO {
private String activityTitle; private String activityTitle;
private String centerName;
/** 提交实际 */ /** 提交实际 */
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")

2
src/main/java/com/qs/serve/modules/bir/entity/so/BirTbsVtbPayJoinSo.java

@ -129,5 +129,5 @@ public class BirTbsVtbPayJoinSo {
*/ */
private Integer contractFlag; private Integer contractFlag;
private String centerName;
} }

19
src/main/resources/mapper/bir/BirTbsVtbPayJoinMapper.xml

@ -62,11 +62,17 @@
act.activity_code as activity_code, act.activity_code as activity_code,
act.act_title as activity_title, act.act_title as activity_title,
<if test="query.centerName != null and query.centerName != ''">
ac.center_name,
</if>
act.act_start_date as act_start_date, act.act_start_date as act_start_date,
act.act_end_date as act_end_date, act.act_end_date as act_end_date,
act.total_amount as activity_amount, act.total_amount as activity_amount,
act.release_amount as release_amount act.release_amount as release_amount
<if test="query.showType == 0 or query.showType == 2"> <if test="query.showType == 0 or query.showType == 2">
,v.id as vtb_id, ,v.id as vtb_id,
v.verification_code as vtb_code, v.verification_code as vtb_code,
@ -89,6 +95,16 @@
LEFT JOIN tbs_activity act ON a.id = act.cost_apply_id LEFT JOIN tbs_activity act ON a.id = act.cost_apply_id
LEFT JOIN vtb_verification v ON v.activity_id = act.id LEFT JOIN vtb_verification v ON v.activity_id = act.id
LEFT JOIN pay_payment_item p ON p.verification_id = v.id LEFT JOIN pay_payment_item p ON p.verification_id = v.id
<if test="query.centerName != null and query.centerName != ''">
left join
(select activity_id, GROUP_CONCAT(DISTINCT center_name SEPARATOR ', ') AS center_name
from tbs_activity_center where
center_name LIKE CONCAT('%', #{query.centerSearch}, '%')
GROUP BY activity_id
) as ac on act.id = ac.activity_id
</if>
WHERE WHERE
1=1 1=1
and a.del_flag = 0 and a.del_flag = 0
@ -97,6 +113,9 @@
and (act.del_flag = 0 or act.id is null ) and (act.del_flag = 0 or act.id is null )
and (v.del_flag = 0 or v.id is null ) and (v.del_flag = 0 or v.id is null )
and (p.del_flag = 0 or p.id is null ) and (p.del_flag = 0 or p.id is null )
<if test="query.centerName != null and query.centerName != ''">
AND c.center_name is not null
</if>
<if test="query.contractFlag != null and query.contractFlag != ''"> <if test="query.contractFlag != null and query.contractFlag != ''">
AND a.contract_flag = #{query.contractFlag} AND a.contract_flag = #{query.contractFlag}
</if> </if>

Loading…
Cancel
Save