支行名称改为关联sys_dept表获取

This commit is contained in:
CYQ 2025-10-21 16:45:38 +08:00
parent 4009c675c4
commit 0f7bff9922

View File

@ -52,11 +52,11 @@ public class MarketingValidInvalidProcessor extends AbstractBusinessProcessor {
" ,record_month " +
")( " +
"select " +
" dept_name " +
" ,jb_name " +
" ,jb_id " +
" ,cust_name " +
" ,cust_id " +
" e.dept_name " +
" ,a.jb_name " +
" ,a.jb_id " +
" ,a.cust_name " +
" ,a.cust_id " +
" ,CASE " +
" WHEN check_flag='9' " +
" then subcategory_name " +
@ -75,14 +75,15 @@ public class MarketingValidInvalidProcessor extends AbstractBusinessProcessor {
" ,? " +
"from mps_market a " +
"INNER JOIN sys_user b ON a.jb_id = b.mkt_no AND b.del_flag = '0' " +
"left join sys_dept e ON b.dept_id = e.dept_id " +
"where SUBSTR(a.entry_date,1,7)=? and a.del_flag='0' and a.check_flag<>'0' " +
"union " +
"select " +
" dept_name " +
" ,yx_name " +
" ,yx_id " +
" ,cust_name " +
" ,cust_id " +
" e.dept_name " +
" ,a.yx_name " +
" ,a.yx_id " +
" ,a.cust_name " +
" ,a.cust_id " +
" ,CASE " +
" WHEN check_flag='9' " +
" then subcategory_name " +
@ -101,7 +102,8 @@ public class MarketingValidInvalidProcessor extends AbstractBusinessProcessor {
" ,? " +
"from mps_market a " +
"INNER JOIN sys_user b ON a.yx_id = b.mkt_no AND b.del_flag = '0' " +
"where SUBSTR(a.entry_date,1,7)=? and a.del_flag='0' and a.check_flag<>'0'" +
"left join sys_dept e ON b.dept_id = e.dept_id " +
"where SUBSTR(a.entry_date,1,7)=? and a.del_flag='0' and a.check_flag<>'0' " +
")";
Timestamp now = Timestamp.valueOf(LocalDateTime.now());