mirror of
https://github.com/suhf/No1WMS.git
synced 2026-02-04 19:54:00 +09:00
change Category and add category jsp files and add ExcelUtils(test)
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user