|
@@ -19,6 +19,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="isDel" column="is_del" />
|
|
|
</resultMap>
|
|
|
|
|
|
+ <sql id="selectYmjzImportErrorLogVo">
|
|
|
+ select id,username,town,vaccine_name,jici,vaccination_time,vaccination_place,create_by,create_time,update_by,update_time,is_del
|
|
|
+ from ymjz_import_error_log
|
|
|
+
|
|
|
+ </sql>
|
|
|
+ <select id="selectYmjzImportErrorLogList" resultMap="YmjzImportErrorLogResult">
|
|
|
+ <include refid="selectYmjzImportErrorLogVo"/>
|
|
|
+ <where>
|
|
|
+ is_del = 'N'
|
|
|
+ <if test="username != null and username != ''"> and username = #{username}</if>
|
|
|
+ <if test="jici != null and jici != ''"> and jici <= #{jici}</if>
|
|
|
+ <if test="vaccineName != null and vaccineName != ''"> and vaccine_name like concat('%', #{vaccineName}, '%')</if>
|
|
|
+ <if test="vaccinationTime != null "> and DATE_FORMAT(vaccination_time,'%Y-%m-%d') = DATE_FORMAT(#{vaccinationTime},'%Y-%m-%d')</if>
|
|
|
+ </where>
|
|
|
+ order by create_time DESC
|
|
|
+ </select>
|
|
|
<insert id="insertErrorLog" parameterType="com.boman.domain.YmjzImportErrorLog">
|
|
|
insert into ymjz_import_error_log (
|
|
|
<if test="username != null and username != ''">username,</if>
|