change Category and add category jsp files and add ExcelUtils(test)

This commit is contained in:
Kana
2024-01-04 16:23:39 +09:00
parent 629fb32e63
commit 06bac5a89b
7 changed files with 363 additions and 39 deletions

View File

@@ -12,14 +12,26 @@
<!-- update -->
<update id="updatebyCanCode" parameterType="CategoryDto">
<update id="updateByKanCode" parameterType="CategoryDto">
UPDATE product_category
SET cls_nm_1 = #{dto.cls_nm_1}, cls_nm_2 = #{dto.cls_nm_2},cls_nm_3 = #{dto.cls_nm_3}, cls_nm_4 = #{dto.cls_nm_4}
WHERE kan_code = {dto.kan_code}
</update>
<!-- delete -->
<update id="deactivateByKanCode" parameterType="String">
UPDATE product_category
SET activation = 0
WHERE kan_code = {kan_code}
</update>
<update id="activateByKanCode" parameterType="String">
UPDATE product_category
SET activation = 1
WHERE kan_code = {kan_code}
</update>
<!-- delete -->
<!-- select -->
@@ -28,7 +40,7 @@
<select id="categoryList" parameterType="map" resultType="CategoryDto">
select * from product_category
order by kan_code desc limit #{start} , #{count}
order by kan_code limit #{start} , #{count}
</select>
<select id="selectByKanCode" parameterType="String" resultType="CategoryDto">
@@ -40,4 +52,9 @@
</select>
</mapper>