vo

@ApiModel(value="com-entity-GuaranteeRescueTeam")
public class GuaranteeRescueTeam implements Serializable {
    
@ApiModelProperty(value="类型")
private Integer type;
private String typeName;//getter/setter
<select id="select" resultType="com.piesat.iems.entity.GuaranteeRescueTeam">
        select grt.TEAM_ID  as teamId, grt.NAME,               grt.SCALE_NUMBER,
               b.DICT_NAME as typeName,
               grt.STATUS, grt.LOCATION, grt.PRINCIPAL, grt.PHONE
        from guarantee_rescue_team grt
        left outer join base_dict b on grt.TYPE = b.DICT_VALUE and b.DICT_TYPE = 'rescueTeamType'
         <where>
            <if test="name != null and name != ''">
                grt.NAME like concat('%', #{name}, '%')
            </if>
            <if test="type != null">
                and grt.TYPE = #{type}
            </if>
            <if test="status != null">
                and grt.STATUS = #{status}
            </if>
            <if test="scaleNumber != null">
                <if test="scaleNumber == 1">
                    and grt.SCALE_NUMBER &lt; 50
                </if>
                <if test="scaleNumber == 2">
                    and grt.SCALE_NUMBER &gt;= 50 and grt.SCALE_NUMBER &lt; 100
                </if>
                <if test="scaleNumber == 3">
                    and grt.SCALE_NUMBER &gt;= 100 and grt.SCALE_NUMBER &lt;= 500
                </if>
                <if test="scaleNumber == 4">
                    and grt.SCALE_NUMBER &gt; 500
                </if>
            </if>
        </where>
   </select>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值