Browse Source

정산현황

marseyes 2 years ago
parent
commit
e67f19aba8
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/main/resources/mybatis/sqlmaps/sttlmng/SttlState.xml

+ 4 - 4
src/main/resources/mybatis/sqlmaps/sttlmng/SttlState.xml

@@ -16,13 +16,13 @@
16
         FROM stl_mgnt_base_info A
16
         FROM stl_mgnt_base_info A
17
         WHERE A.brand_id = #{sBrandId}
17
         WHERE A.brand_id = #{sBrandId}
18
         AND A.sttl_req_dt BETWEEN #{fromDt} AND #{toDt}
18
         AND A.sttl_req_dt BETWEEN #{fromDt} AND #{toDt}
19
-        <if test="sGubun == '1'">
19
+        <if test="sGubun == 1">
20
             AND A.store_id IS NOT NULL
20
             AND A.store_id IS NOT NULL
21
             <if test="sStoreId != null and sStoreId != ''">
21
             <if test="sStoreId != null and sStoreId != ''">
22
                 AND A.store_id = #{sStoreId}
22
                 AND A.store_id = #{sStoreId}
23
             </if>
23
             </if>
24
         </if>
24
         </if>
25
-        <if test="sGubun == '2'">
25
+        <if test="sGubun == 2">
26
             AND A.spply_id IS NOT NULL
26
             AND A.spply_id IS NOT NULL
27
             <if test="sSpplyId != null and sSpplyId != ''">
27
             <if test="sSpplyId != null and sSpplyId != ''">
28
                 AND A.spply_id = #{sSpplyId}
28
                 AND A.spply_id = #{sSpplyId}
@@ -60,13 +60,13 @@
60
         FROM stl_mgnt_base_info A
60
         FROM stl_mgnt_base_info A
61
         WHERE A.brand_id = #{sBrandId}
61
         WHERE A.brand_id = #{sBrandId}
62
         AND A.sttl_req_dt BETWEEN #{fromDt} AND #{toDt}
62
         AND A.sttl_req_dt BETWEEN #{fromDt} AND #{toDt}
63
-        <if test="sGubun == '1'">
63
+        <if test="sGubun == 1">
64
             AND A.store_id IS NOT NULL
64
             AND A.store_id IS NOT NULL
65
             <if test="sStoreId != null and sStoreId != ''">
65
             <if test="sStoreId != null and sStoreId != ''">
66
                 AND A.store_id = #{sStoreId}
66
                 AND A.store_id = #{sStoreId}
67
             </if>
67
             </if>
68
         </if>
68
         </if>
69
-        <if test="sGubun == '2'">
69
+        <if test="sGubun == 2">
70
             AND A.spply_id IS NOT NULL
70
             AND A.spply_id IS NOT NULL
71
             <if test="sSpplyId != null and sSpplyId != ''">
71
             <if test="sSpplyId != null and sSpplyId != ''">
72
                 AND A.spply_id = #{sSpplyId}
72
                 AND A.spply_id = #{sSpplyId}