feat_crud

This commit is contained in:
2025-09-23 17:24:11 +08:00
parent f475d940be
commit 6af0ab37d4
7 changed files with 145 additions and 10 deletions
@@ -6,6 +6,20 @@
<resultMap id="PackagePlanResultMap" type="com.central.order.model.PackagePlan">
</resultMap>
<select id="findList" resultMap="PackagePlanResultMap">
SELECT *
FROM packages t
<where>
<if test="p.codeId != null and p.codeId != ''">
AND t.code_id = #{p.codeId}
</if>
<if test="p.isDel != null">
AND t.is_del = #{p.isDel}
</if>
</where>
ORDER BY t.create_time DESC
</select>
<select id="findByCodeId" resultMap="PackagePlanResultMap">
SELECT *
FROM packages
@@ -15,4 +29,3 @@
</select>
</mapper>