1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?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="cn.ezhizao.project.business.mapper.BizMeasurementMapper">
- <resultMap type="cn.ezhizao.project.business.domain.BizMeasurement" id="BizMeasurementResult">
- <id column="id" property="id"/>
- </resultMap>
- <select id="getList" parameterType="BizMeasurement" resultMap="BizMeasurementResult">
- SELECT * FROM biz_measurement
- <trim prefix=" WHERE" suffix="" suffixOverrides="AND">
- deleted = 0
- <if test="code != null "> AND code = #{code}</if>
- <if test="numerator != null "> AND numerator = #{numerator}</if>
- <if test="denominator != null and denominator != ''"> AND denominator = #{denominator}</if>
- <if test="name != null and name != ''"> AND name like concat('%', #{name}, '%')</if>
- <if test="remake != null and remake != ''"> AND remake = #{remake}</if>
- <if test="group != null and group != ''"> AND group = #{group}</if>
- <if test="standard != null and standard != ''"> AND standard = #{standard}</if>
- <if test="conversionType != null and conversionType != ''"> AND conversion_type = #{conversionType}</if>
- <if test="precision != null "> AND precision = #{precision}</if>
- <if test="roundingType != null and roundingType != ''"> AND rounding_type = #{roundingType}</if>
- <if test="status != null and status != ''"> AND status = #{status}</if>
- <if test="forbidden != null and forbidden != ''"> AND forbidden = #{forbidden}</if>
- <if test="createName != null and createName != ''"> AND create_name like concat('%', #{createName}, '%')</if>
- <if test="updateName != null and updateName != ''"> AND update_name like concat('%', #{updateName}, '%')</if>
- <if test="auditTime != null "> AND audit_time = #{auditTime}</if>
- <if test="auditName != null and auditName != ''"> AND audit_name like concat('%', #{auditName}, '%')</if>
- <if test="forbiddenTime != null "> AND forbidden_time = #{forbiddenTime}</if>
- <if test="forbiddenName != null and forbiddenName != ''"> AND forbidden_name like concat('%', #{forbiddenName}, '%')</if>
- <if test="init != null and init != ''"> AND init = #{init}</if>
- </trim>
- </select>
- <delete id="physicalDelete">
- DELETE FROM biz_measurement
- <trim prefix=" WHERE" suffix="" suffixOverrides="AND">
- <if test="id != null">
- id = #{id} AND
- </if>
- <!-- 删除条件为其他外键可以在这里加 -->
- </trim>
- </delete>
- </mapper>
|