新增羊只时的羊只类型,各页面导出功能需求,改品种功能的原品种回显需求,完成
This commit is contained in:
@@ -48,27 +48,35 @@
|
||||
<select id="selectScBreastRatingList" resultMap="ScBreastRatingResult">
|
||||
<include refid="selectScBreastRatingVo"/>
|
||||
<where>
|
||||
<if test="manageTagsList != null and manageTagsList.size() > 0">
|
||||
<foreach collection="manageTagsList" item="tag" separator="or" open="and (" close=")">
|
||||
bs.manage_tags like concat('%', #{tag}, '%')
|
||||
<if test="sc.ids != null and sc.ids.length > 0">
|
||||
AND sbr.id IN
|
||||
<foreach collection="sc.ids" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="sc.varietyId != null">and bsv.id = #{sc.varietyId}</if>
|
||||
<if test="sc.sheepfoldId != null">and sf.id = #{sc.sheepfoldId}</if>
|
||||
<if test="sc.params != null and sc.params.beginEventDate != null and sc.params.endEventDate != null">
|
||||
and sbr.event_date between #{sc.params.beginEventDate} and #{sc.params.endEventDate}
|
||||
</if>
|
||||
<if test="sc.params != null and sc.params.beginCreateTime != null and sc.params.endCreateTime != null">
|
||||
and sbr.create_time between #{sc.params.beginCreateTime} and #{sc.params.endCreateTime}
|
||||
</if>
|
||||
<if test="sc.isDelete != null">
|
||||
and bs.is_delete = #{sc.isDelete}
|
||||
</if>
|
||||
<if test="sc.technician != null and sc.technician != ''">
|
||||
and sbr.technician = #{sc.technician}
|
||||
</if>
|
||||
<if test="sc.score != null">
|
||||
and sbr.score = #{sc.score}
|
||||
<if test="sc.ids == null or sc.ids.length == 0">
|
||||
<if test="manageTagsList != null and manageTagsList.size() > 0">
|
||||
<foreach collection="manageTagsList" item="tag" separator="or" open="and (" close=")">
|
||||
bs.manage_tags like concat('%', #{tag}, '%')
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="sc.varietyId != null">and bsv.id = #{sc.varietyId}</if>
|
||||
<if test="sc.sheepfoldId != null">and sf.id = #{sc.sheepfoldId}</if>
|
||||
<if test="sc.params != null and sc.params.beginEventDate != null and sc.params.endEventDate != null">
|
||||
and sbr.event_date between #{sc.params.beginEventDate} and #{sc.params.endEventDate}
|
||||
</if>
|
||||
<if test="sc.params != null and sc.params.beginCreateTime != null and sc.params.endCreateTime != null">
|
||||
and sbr.create_time between #{sc.params.beginCreateTime} and #{sc.params.endCreateTime}
|
||||
</if>
|
||||
<if test="sc.isDelete != null">
|
||||
and bs.is_delete = #{sc.isDelete}
|
||||
</if>
|
||||
<if test="sc.technician != null and sc.technician != ''">
|
||||
and sbr.technician = #{sc.technician}
|
||||
</if>
|
||||
<if test="sc.score != null">
|
||||
and sbr.score = #{sc.score}
|
||||
</if>
|
||||
</if>
|
||||
${sc.params.dataScope}
|
||||
</where>
|
||||
|
||||
Reference in New Issue
Block a user