全量提交
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?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">
|
||||
<mapper namespace="com.zf.foodpurchase.fdsafe.mapper.MorningInspectionDetailMapper">
|
||||
|
||||
<!-- 通用查询结果列 -->
|
||||
<sql id="Base_Column_List">
|
||||
md.morning_detail_id, md.check_in_id, md.person_name, md.person_sex, md.remark, md.abnormal_img as abnormal_img_str, md.create_time, md.update_time
|
||||
</sql>
|
||||
<select id="queryMorningInspectionDetailVO"
|
||||
resultType="com.zf.foodpurchase.fdsafe.vo.MorningInspectionDetailVO">
|
||||
select <include refid="Base_Column_List"/>
|
||||
from morning_inspection_detail md
|
||||
<where>
|
||||
<if test="morningDetailId != null">
|
||||
and md.morning_detail_id = #{morningDetailId}
|
||||
</if>
|
||||
<if test="checkInId != null">
|
||||
and md.check_in_id = #{checkInId}
|
||||
</if>
|
||||
<if test="personName != null and personName != ''">
|
||||
and md.person_name like concat('%', #{personName}, '%')
|
||||
</if>
|
||||
</where>
|
||||
order by md.create_time desc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user