You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.5 KiB
XML
56 lines
1.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTO Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
|
<mapper namespace="com.icomsys.main_vm.db.mybatis.mapper.BgmManageMapper">
|
|
|
|
<select id="selectBgmList" resultType="oprManageBgmListVo">
|
|
SELECT
|
|
(SELECT @ROWNUM := @ROWNUM + 1) AS 'rowNum'
|
|
, A.*
|
|
FROM (
|
|
SELECT
|
|
file_name AS fileName
|
|
, regist_id AS registId
|
|
, regist_date AS registDate
|
|
FROM TB_BGM_MNG
|
|
WHERE file_name LIKE CONCAT("%", #{searchKeyword}, "%")
|
|
) A , (SELECT @ROWNUM := 0) B
|
|
</select>
|
|
|
|
<!--
|
|
<select id="selectBgmList" resultType="java.util.HashMap">
|
|
SELECT
|
|
*
|
|
FROM (
|
|
SELECT
|
|
(SELECT @ROWNUM := @ROWNUM + 1) AS 'rownum'
|
|
, A.*
|
|
FROM (
|
|
SELECT
|
|
z.SEQ AS seq
|
|
, z.FILE_NAME AS fileName
|
|
, z.REGIST_ID AS registId
|
|
, z.REGIST_DATE AS registDate
|
|
FROM TB_BGM_MNG z
|
|
WHERE 1=1
|
|
ORDER BY ROWNUM ASC
|
|
) A
|
|
</select>
|
|
-->
|
|
|
|
<insert id="insertBgm">
|
|
INSERT INTO TB_BGM_MNG (
|
|
CUST_CODE
|
|
, FILE_NAME
|
|
, FILE_PATH
|
|
, REGIST_ID
|
|
<!-- , REGIST_DATE-->
|
|
|
|
) VALUES (
|
|
#{custCode}
|
|
, #{fileName}
|
|
, #{filePath}
|
|
, #{registId}
|
|
<!--, curdate()-->
|
|
)
|
|
</insert>
|
|
</mapper> |