Procházet zdrojové kódy

앱버전관리 테스트 후 커밋

dwkim před 2 roky
rodič
revize
282aac1f85

+ 1 - 1
src/main/java/com/oqpo/api/mapper/system/VerInfoMapper.java

@@ -10,7 +10,7 @@ import java.util.List;
10 10
 @Mapper
11 11
 public interface VerInfoMapper {
12 12
 
13
-    List<VerInfoEntity> selectVerAppGridList(GridRequest gridRequest) throws Exception;
13
+    List<VerInfoEntity> selectVerAppGridList(@Param("userId") String userId, GridRequest gridRequest) throws Exception;
14 14
     int selectVerAppGridCnt() throws Exception;
15 15
     int insertVerInfo(@Param("userId") String userId, VerInfoEntity entity) throws Exception;
16 16
     int updateDelVerInfo(@Param("userId") String userId, @Param("appNo") String  appNo) throws Exception;

+ 1 - 1
src/main/java/com/oqpo/api/service/system/VerInfoService.java

@@ -32,7 +32,7 @@ public class VerInfoService extends CommonService {
32 32
         int gridSize = gridRequest.getGridSize();
33 33
         int gridRecords = verInfoMapper.selectVerAppGridCnt();
34 34
         int gridTotal = fnCalculateGridTotal(gridSize, gridRecords);
35
-        List<VerInfoEntity> entities = verInfoMapper.selectVerAppGridList(gridRequest);
35
+        List<VerInfoEntity> entities = verInfoMapper.selectVerAppGridList("",gridRequest);
36 36
         List<Object> gridRows = entities.stream()
37 37
                 .map(m -> VerInfoSearchResponse.builder()
38 38
                         .viewCd("R")

+ 6 - 6
src/main/resources/mybatis/sqlmaps/system/VerInfo.xml

@@ -4,11 +4,11 @@
4 4
 <mapper namespace="com.oqpo.api.mapper.system.VerInfoMapper">
5 5
 
6 6
     <select id="selectVerAppGridList" resultType="com.oqpo.api.entity.system.VerInfoEntity">
7
-        SELECT /* selectVerAppGridList */
7
+        select /* selectVerAppGridList */
8 8
                 app_no, devi_tp_cd, fn_code_nm('DEVI_TP_CD', devi_tp_cd) as devi_tp_nm, app_ver, des_ver, date_format(app_ver_dt,'%Y.%m.%d %H:%i:%s') AS app_ver_dt
9 9
                 , del_yn, date_format(add_dt,'%Y.%m.%d %H:%i:%s') AS  add_dt, add_id
10
-        FROM np_ver_info
11
-        WHERE del_yn = 'N'
10
+        from np_ver_info
11
+        where del_yn = 'N'
12 12
         <choose>
13 13
             <when test="gridRequest.sidx != null and gridRequest.sidx != ''">
14 14
                 <if test="gridRequest.sidx == 'job_no'.toString()">
@@ -31,8 +31,8 @@
31 31
 
32 32
     <select id="selectVerAppGridCnt" resultType="int">
33 33
         select count(*)
34
-        FROM np_ver_info
35
-        WHERE del_yn = 'N'
34
+        from np_ver_info
35
+        where del_yn = 'N'
36 36
     </select>
37 37
 
38 38
 
@@ -60,7 +60,7 @@
60 60
 
61 61
     <select id="selectVerAppInfo" resultType="com.oqpo.api.entity.system.VerInfoEntity">
62 62
         SELECT /* selectVerAppInfo */
63
-                app_no, app_ver, des_ver
63
+                app_no, app_ver, des_ver, date_format(app_ver_dt,'%Y.%m.%d %H:%i:%s') AS app_ver_dt
64 64
         FROM np_ver_info
65 65
         WHERE app_no = #{appNo}
66 66
     </select>