feat (farm): 业务功能
- 字典表,收纳所有的字典内容 - 管理中心 (农事类型,农事名称)维护到字典表中 - 种植中心 (生产计划,农事记录)业务逻辑接口实现
This commit is contained in:
@@ -10,16 +10,16 @@
|
||||
-->
|
||||
|
||||
<sql id="all_fields">
|
||||
id,
|
||||
primary_class_code,
|
||||
primary_class_name,
|
||||
secondary_class_code,
|
||||
secondary_class_name,
|
||||
use_status,
|
||||
creator,
|
||||
create_time,
|
||||
updater,
|
||||
update_time
|
||||
t.id,
|
||||
t.primary_class_code,
|
||||
t.primary_class_name,
|
||||
t.secondary_class_code,
|
||||
t.secondary_class_name,
|
||||
t.use_status,
|
||||
t.creator,
|
||||
t.create_time,
|
||||
t.updater,
|
||||
t.update_time
|
||||
</sql>
|
||||
|
||||
<select id="getSpeciesClassifyLibraryList"
|
||||
@@ -29,39 +29,24 @@
|
||||
SELECT <include refid="all_fields"/> FROM farm_species_classify_library t
|
||||
<where>
|
||||
<if test="req.id != null">
|
||||
AND id = #{req.id}
|
||||
AND t.id = #{req.id}
|
||||
</if>
|
||||
<if test="req.primaryClassCode != null and req.primaryClassCode != ''">
|
||||
AND primary_class_code = #{req.primaryClassCode}
|
||||
AND t.tprimary_class_code = #{req.primaryClassCode}
|
||||
</if>
|
||||
<if test="req.primaryClassName != null and req.primaryClassName != ''">
|
||||
AND primary_class_name LIKE CONCAT('%', #{req.primaryClassName}, '%')
|
||||
AND t.primary_class_name LIKE CONCAT('%', #{req.primaryClassName}, '%')
|
||||
</if>
|
||||
<if test="req.secondaryClassCode != null and req.secondaryClassCode != ''">
|
||||
AND secondary_class_code = #{req.secondaryClassCode}
|
||||
AND t.secondary_class_code = #{req.secondaryClassCode}
|
||||
</if>
|
||||
<if test="req.secondaryClassName != null and req.secondaryClassName != ''">
|
||||
AND secondary_class_name LIKE CONCAT('%', #{req.secondaryClassName}, '%')
|
||||
AND t.secondary_class_name LIKE CONCAT('%', #{req.secondaryClassName}, '%')
|
||||
</if>
|
||||
<if test="req.useStatus != null">
|
||||
AND use_status = #{req.useStatus}
|
||||
</if>
|
||||
<if test="req.creator != null and req.creator != ''">
|
||||
AND creator = #{req.creator}
|
||||
</if>
|
||||
<if test="req.createTime != null">
|
||||
AND create_time >= #{req.createTime}
|
||||
</if>
|
||||
<if test="req.updater != null and req.updater != ''">
|
||||
AND updater = #{req.updater}
|
||||
</if>
|
||||
<if test="req.updateTime != null">
|
||||
AND update_time >= #{req.updateTime}
|
||||
AND t.use_status = #{req.useStatus}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY t.id DESC
|
||||
|
||||
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user