Commit 415842d2cc4882cb89c56757d544f79af9767641
1 parent
c982b168
20240408
Showing
1 changed file
with
12 additions
and
12 deletions
Show diff stats
src/main/resources/mybatis/primaryMapper/MatchingInnerDelingMapper.xml
| @@ -49,11 +49,11 @@ | @@ -49,11 +49,11 @@ | ||
| 49 | and accnut_ym = #{accnutYm} | 49 | and accnut_ym = #{accnutYm} |
| 50 | and mtch_ty is null | 50 | and mtch_ty is null |
| 51 | and dta_ty in ('12','22','32','34','36','38','42') | 51 | and dta_ty in ('12','22','32','34','36','38','42') |
| 52 | - <if test='cpr_code != null and !cpr_code.equals("")'> | ||
| 53 | - and partn_cpr = #{partn_cpr} | ||
| 54 | - </if> | ||
| 55 | <if test='partn_cpr != null and !partn_cpr.equals("")'> | 52 | <if test='partn_cpr != null and !partn_cpr.equals("")'> |
| 56 | - and cpr_code = #{cpr_code} | 53 | + and cpr_code = #{partn_cpr} |
| 54 | + </if> | ||
| 55 | + <if test='cpr_code != null and !cpr_code.equals("")'> | ||
| 56 | + and partn_cpr = #{cpr_code} | ||
| 57 | </if> | 57 | </if> |
| 58 | GROUP BY | 58 | GROUP BY |
| 59 | sys_se | 59 | sys_se |
| @@ -566,11 +566,11 @@ | @@ -566,11 +566,11 @@ | ||
| 566 | and accnut_ym = #{accnutYm} | 566 | and accnut_ym = #{accnutYm} |
| 567 | and mtch_ty is null | 567 | and mtch_ty is null |
| 568 | and dta_ty in ('12','22','32','34','36','38','42') | 568 | and dta_ty in ('12','22','32','34','36','38','42') |
| 569 | - <if test='cpr_code != null and !cpr_code.equals("")'> | ||
| 570 | - and partn_cpr = #{partn_cpr} | ||
| 571 | - </if> | ||
| 572 | <if test='partn_cpr != null and !partn_cpr.equals("")'> | 569 | <if test='partn_cpr != null and !partn_cpr.equals("")'> |
| 573 | - and cpr_code = #{cpr_code} | 570 | + and cpr_code = #{partn_cpr} |
| 571 | + </if> | ||
| 572 | + <if test='cpr_code != null and !cpr_code.equals("")'> | ||
| 573 | + and partn_cpr = #{cpr_code} | ||
| 574 | </if> | 574 | </if> |
| 575 | GROUP BY | 575 | GROUP BY |
| 576 | sys_se | 576 | sys_se |
| @@ -705,11 +705,11 @@ | @@ -705,11 +705,11 @@ | ||
| 705 | and accnut_ym = #{accnutYm} | 705 | and accnut_ym = #{accnutYm} |
| 706 | and mtch_ty = #{mtch_ty} | 706 | and mtch_ty = #{mtch_ty} |
| 707 | and dta_ty in ('12','22','32','34','36','38','42') | 707 | and dta_ty in ('12','22','32','34','36','38','42') |
| 708 | - <if test='cpr_code != null and !cpr_code.equals("")'> | ||
| 709 | - and partn_cpr = #{partn_cpr} | ||
| 710 | - </if> | ||
| 711 | <if test='partn_cpr != null and !partn_cpr.equals("")'> | 708 | <if test='partn_cpr != null and !partn_cpr.equals("")'> |
| 712 | - and cpr_code = #{cpr_code} | 709 | + and cpr_code = #{partn_cpr} |
| 710 | + </if> | ||
| 711 | + <if test='cpr_code != null and !cpr_code.equals("")'> | ||
| 712 | + and partn_cpr = #{cpr_code} | ||
| 713 | </if> | 713 | </if> |
| 714 | GROUP BY | 714 | GROUP BY |
| 715 | sys_se | 715 | sys_se |