@ -7,21 +7,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<resultMap type= "RecordInvalidated" id= "RecordInvalidatedResult" >
<result property= "objid" column= "objid" />
<result property= "epc" column= "epc" />
<result property= "createBy" column= "create_by" />
<result property= "createTime" column= "create_time" />
<result property= "typeName" column= "type_name" />
<result property= "reason" column= "reason" />
<result property= "remark" column= "remark" />
<result property= "createBy" column= "create_by" />
<result property= "createTime" column= "create_time" />
</resultMap>
<sql id= "selectRecordInvalidatedVo" >
select objid, epc, create_by, create_time,reason,remark from record_invalidated
select objid, epc, type_name, reason, remark, create_by, create_time from record_invalidated
</sql>
<select id= "selectRecordInvalidatedList" parameterType= "RecordInvalidated" resultMap= "RecordInvalidatedResult" >
<include refid= "selectRecordInvalidatedVo" />
<where >
<if test= "epc != null and epc != ''" > and epc = #{epc}</if>
<if test= " createBy != null and createBy != ''"> and create_by = #{createBy }</if>
<if test= " typeName != null "> and type_name = #{typeName }</if>
<if test= "params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''" > and create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
</where>
</select>
@ -35,15 +36,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
insert into record_invalidated
<trim prefix= "(" suffix= ")" suffixOverrides= "," >
<if test= "epc != null" > epc,</if>
<if test= "typeName != null" > type_name,</if>
<if test= "reason != null" > reason,</if>
<if test= "remark != null" > remark,</if>
<if test= "createBy != null" > create_by,</if>
<if test= "createTime != null" > create_time,</if>
<if test= "remark != null" > remark,</if>
</trim>
<trim prefix= "values (" suffix= ")" suffixOverrides= "," >
<if test= "epc != null" > #{epc},</if>
<if test= "typeName != null" > #{typeName},</if>
<if test= "reason != null" > #{reason},</if>
<if test= "remark != null" > #{remark},</if>
<if test= "createBy != null" > #{createBy},</if>
<if test= "createTime != null" > #{createTime},</if>
<if test= "remark != null" > #{remark },</if>
</trim>
</insert>
@ -51,6 +56,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
update record_invalidated
<trim prefix= "SET" suffixOverrides= "," >
<if test= "epc != null" > epc = #{epc},</if>
<if test= "typeName != null" > type_name = #{typeName},</if>
<if test= "reason != null" > reason = #{reason},</if>
<if test= "remark != null" > remark = #{remark},</if>
<if test= "createBy != null" > create_by = #{createBy},</if>
<if test= "createTime != null" > create_time = #{createTime},</if>
</trim>