冻胚冻精完善
This commit is contained in:
@@ -1,49 +1,75 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zhyc.module.frozen.mapper.DdFeMapper">
|
||||
|
||||
|
||||
<resultMap type="com.zhyc.module.frozen.domain.DdFe" id="DdFeResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="code" column="code" />
|
||||
<result property="freezeDate" column="freeze_date" />
|
||||
<result property="drId" column="dr_id" />
|
||||
<result property="drBreed" column="dr_breed" />
|
||||
<result property="deId" column="de_id" />
|
||||
<result property="deBreed" column="de_breed" />
|
||||
<result property="embBreed" column="emb_breed" />
|
||||
<result property="grade" column="grade" />
|
||||
<result property="qty" column="qty" />
|
||||
<result property="sexCtl" column="sex_ctl" />
|
||||
<result property="status" column="status" />
|
||||
<result property="tech" column="tech" />
|
||||
<result property="tankId" column="tank_id" />
|
||||
<result property="bucketId" column="bucket_id" />
|
||||
<result property="rackId" column="rack_id" />
|
||||
<result property="outDate" column="out_date" />
|
||||
<result property="discardTxt" column="discard_txt" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="id" column="id"/>
|
||||
<result property="code" column="code"/>
|
||||
<result property="freezeDate" column="freeze_date"/>
|
||||
<result property="drId" column="dr_id"/>
|
||||
<result property="drBreed" column="dr_breed"/>
|
||||
<result property="deId" column="de_id"/>
|
||||
<result property="deBreed" column="de_breed"/>
|
||||
<result property="embBreed" column="emb_breed"/>
|
||||
<result property="grade" column="grade"/>
|
||||
<result property="qty" column="qty"/>
|
||||
<result property="sexCtl" column="sex_ctl"/>
|
||||
<result property="status" column="status"/>
|
||||
<result property="tech" column="tech"/>
|
||||
<result property="tankId" column="tank_id"/>
|
||||
<result property="bucketId" column="bucket_id"/>
|
||||
<result property="rackId" column="rack_id"/>
|
||||
<result property="outDate" column="out_date"/>
|
||||
<result property="discardTxt" column="discard_txt"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDdFeVo">
|
||||
select id, code, freeze_date, dr_id, dr_breed, de_id, de_breed, emb_breed, grade, qty, sex_ctl, status, tech, tank_id, bucket_id, rack_id, out_date, discard_txt, remark, create_by, create_time from dd_fe
|
||||
select id,
|
||||
code,
|
||||
freeze_date,
|
||||
dr_id,
|
||||
dr_breed,
|
||||
de_id,
|
||||
de_breed,
|
||||
emb_breed,
|
||||
grade,
|
||||
qty,
|
||||
sex_ctl,
|
||||
status,
|
||||
tech,
|
||||
tank_id,
|
||||
bucket_id,
|
||||
rack_id,
|
||||
out_date,
|
||||
discard_txt,
|
||||
remark,
|
||||
create_by,
|
||||
create_time
|
||||
from dd_fe
|
||||
</sql>
|
||||
|
||||
<select id="selectDdFeList" parameterType="DdFe" resultMap="DdFeResult">
|
||||
<include refid="selectDdFeVo"/>
|
||||
<where>
|
||||
<if test="code != null and code != ''"> and code like concat('%', #{code}, '%')</if>
|
||||
<if test="freezeDate != null "> and freeze_date = #{freezeDate}</if>
|
||||
<if test="grade != null and grade != ''"> and grade = #{grade}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="tech != null and tech != ''"> and tech = #{tech}</if>
|
||||
<if test="outDate != null "> and out_date = #{outDate}</if>
|
||||
<where>
|
||||
<if test="code != null and code != ''">and code like concat('%', #{code}, '%')</if>
|
||||
<if test="grade != null and grade != ''">and grade = #{grade}</if>
|
||||
<if test="status != null and status != ''">and status = #{status}</if>
|
||||
<if test="tech != null and tech != ''">and tech = #{tech}</if>
|
||||
<if test="outDate != null "> and out_date = #{outDate}</if>
|
||||
<if test="params.beginFreezeDate != null and params.endFreezeDate != null">
|
||||
and freeze_date between #{params.beginFreezeDate} and #{params.endFreezeDate}
|
||||
</if>
|
||||
<if test="params.beginOutDate != null and params.endOutDate != null">
|
||||
and out_date between #{params.beginOutDate} and #{params.endOutDate}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectDdFeById" parameterType="Long" resultMap="DdFeResult">
|
||||
<include refid="selectDdFeVo"/>
|
||||
where id = #{id}
|
||||
@@ -72,7 +98,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
</trim>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="code != null">#{code},</if>
|
||||
<if test="freezeDate != null">#{freezeDate},</if>
|
||||
@@ -94,7 +120,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
</trim>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDdFe" parameterType="DdFe">
|
||||
@@ -125,13 +151,36 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</update>
|
||||
|
||||
<delete id="deleteDdFeById" parameterType="Long">
|
||||
delete from dd_fe where id = #{id}
|
||||
delete
|
||||
from dd_fe
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDdFeByIds" parameterType="String">
|
||||
delete from dd_fe where id in
|
||||
delete from dd_fe where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="selectFlushByEwe" resultType="map">
|
||||
SELECT grade_a gradeA,
|
||||
grade_b gradeB,
|
||||
grade_c gradeC,
|
||||
grade_d gradeD,
|
||||
cell_2_4 cell24,
|
||||
cell_8 cell8,
|
||||
donor_male_no ramId
|
||||
FROM sc_embryo_flush
|
||||
WHERE donor_female_no = #{eweNo}
|
||||
ORDER BY flush_time DESC
|
||||
LIMIT 1
|
||||
</select>
|
||||
|
||||
<update id="updateDiscard" parameterType="DdFe">
|
||||
UPDATE dd_fe
|
||||
SET status = #{status},
|
||||
discard_txt = #{discardTxt}
|
||||
WHERE id = #{id}
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -33,9 +33,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<include refid="selectDdFsVo"/>
|
||||
<where>
|
||||
<if test="code != null and code != ''"> and code like concat('%', #{code}, '%')</if>
|
||||
<if test="freezeDt != null "> and freeze_dt = #{freezeDt}</if>
|
||||
<if test="tech != null and tech != ''"> and tech like concat('%', #{tech}, '%')</if>
|
||||
<if test="outDt != null "> and out_dt = #{outDt}</if>
|
||||
<if test="params.beginFreezeDt != null and params.endFreezeDt != null">
|
||||
and freeze_dt between #{params.beginFreezeDt} and #{params.endFreezeDt}
|
||||
</if>
|
||||
<if test="params.beginOutDt != null and params.endOutDt != null">
|
||||
and out_dt between #{params.beginOutDt} and #{params.endOutDt}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
@@ -102,30 +102,7 @@
|
||||
and sm.create_time between #{params.beginCreateTime} and #{params.endCreateTime}
|
||||
</if>
|
||||
</where>
|
||||
<if test="orderBy != null and orderBy != '' and sortDirection != null and sortDirection != ''">
|
||||
ORDER BY
|
||||
<choose>
|
||||
<when test="orderBy == 'weaningWeight'">bs.weaning_weight</when>
|
||||
<when test="orderBy == 'bodyLength'">sm.body_length</when>
|
||||
<when test="orderBy == 'birthWeight'">bs.birth_weight</when>
|
||||
<when test="orderBy == 'currentWeight'">bs.current_weight</when>
|
||||
<when test="orderBy == 'lactationDay'">bs.lactation_day</when>
|
||||
<when test="orderBy == 'gestationDay'">bs.gestation_day</when>
|
||||
<when test="orderBy == 'postMatingDay'">post_mating_day</when>
|
||||
<when test="orderBy == 'parity'">bs.parity</when>
|
||||
<when test="orderBy == 'height'">sm.height</when>
|
||||
<when test="orderBy == 'bust'">sm.bust</when>
|
||||
<when test="orderBy == 'pipeLength'">sm.pipe_length</when>
|
||||
<when test="orderBy == 'chestDepth'">sm.chest_depth</when>
|
||||
<when test="orderBy == 'hipHeight'">sm.hip_height</when>
|
||||
<when test="orderBy == 'rumpWidth'">sm.rump_width</when>
|
||||
<when test="orderBy == 'rumpHeignt'">sm.rump_heignt</when>
|
||||
<when test="orderBy == 'hipWidth'">sm.hip_width</when>
|
||||
<when test="orderBy == 'hipCrossHeight'">sm.hip_cross_height</when>
|
||||
<otherwise>${orderBy}</otherwise>
|
||||
</choose>
|
||||
${sortDirection}
|
||||
</if>
|
||||
<if test="true">ORDER BY sm.create_time DESC</if>
|
||||
</select>
|
||||
|
||||
<select id="selectScBodyMeasureById" parameterType="Long" resultMap="ScBodyMeasureResult">
|
||||
|
||||
@@ -58,12 +58,7 @@
|
||||
and bs.manage_tags like concat('%', #{manageTags}, '%')
|
||||
</if>
|
||||
</where>
|
||||
<if test="orderBy != null and orderBy != '' and sortDirection != null and sortDirection != ''">
|
||||
ORDER BY sbs.${orderBy} ${sortDirection}
|
||||
</if>
|
||||
<if test="(orderBy == null or orderBy == '') or (sortDirection == null or sortDirection == '')">
|
||||
ORDER BY sbs.create_time DESC
|
||||
</if>
|
||||
<if test="true">ORDER BY sbs.create_time DESC</if>
|
||||
</select>
|
||||
|
||||
<select id="selectScBodyScoreById" parameterType="Long" resultMap="ScBodyScoreResult">
|
||||
|
||||
@@ -56,13 +56,7 @@
|
||||
and sbr.create_time between #{params.beginCreateTime} and #{params.endCreateTime}
|
||||
</if>
|
||||
</where>
|
||||
<if test="orderBy != null and orderBy != '' and sortDirection != null and sortDirection != ''">
|
||||
ORDER BY sbr.${orderBy} ${sortDirection}
|
||||
</if>
|
||||
<if test="(orderBy == null or orderBy == '') or (sortDirection == null or sortDirection == '')">
|
||||
ORDER BY sbr.create_time DESC
|
||||
</if>
|
||||
|
||||
<if test="true">ORDER BY sbr.create_time DESC</if>
|
||||
</select>
|
||||
|
||||
<select id="selectScBreastRatingById" parameterType="Long" resultMap="ScBreastRatingResult">
|
||||
|
||||
Reference in New Issue
Block a user