<?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="org.springblade.modules.permit.mapper.PermitMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="permitResultMap" type="org.springblade.modules.permit.entity.Permit">
|
<id column="id" property="id"/>
|
<result column="creditCode" property="creditcode"/>
|
<result column="enterpriseName" property="enterprisename"/>
|
<result column="representative" property="representative"/>
|
<result column="establishTime" property="establishtime"/>
|
<result column="registeredCapital" property="registeredcapital"/>
|
<result column="organizationCode" property="organizationcode"/>
|
<result column="registrationNumber" property="registrationnumber"/>
|
<result column="identificationNumber" property="identificationnumber"/>
|
<result column="enterprises" property="enterprises"/>
|
<result column="address" property="address"/>
|
<result column="business" property="business"/>
|
<result column="region" property="region"/>
|
<result column="registration" property="registration"/>
|
<result column="industry" property="industry"/>
|
<result column="type" property="type"/>
|
<result column="permitime" property="permitime"/>
|
<result column="deptid" property="deptid"/>
|
<result column="ptype" property="ptype"/>
|
<result column="storage" property="storage"/>
|
<result column="cardid" property="cardid"/>
|
<result column="representativecell" property="representativecell"/>
|
<result column="contacts" property="contacts"/>
|
<result column="contactscell" property="contactscell"/>
|
<result column="approve" property="approve"/>
|
<result column="jurisdiction" property="jurisdiction"/>
|
</resultMap>
|
|
|
<select id="selectPermitPage" resultMap="permitResultMap">
|
select * from sys_permit where 1=1
|
<if test="permit.ptype!=null and permit.ptype!=''">
|
and ptype=#{permit.ptype}
|
</if>
|
<if test="permit.usetype=='1'.toString()">
|
and jurisdiction in(${jurisdiction})
|
</if>
|
<if test="permit.usetype=='2'.toString()">
|
and jurisdiction=#{permit.jurisdiction}
|
</if>
|
</select>
|
|
</mapper>
|