feat_crud
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user