|
|
|
@ -1,47 +1,68 @@
|
|
|
|
|
<?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">
|
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.ruoyi.programManagement.mapper.BEnterpriseNewMapper">
|
|
|
|
|
|
|
|
|
|
<resultMap type="BEnterpriseNew" id="BEnterpriseNewResult">
|
|
|
|
|
<result property="id" column="id" />
|
|
|
|
|
<result property="enterpriseId" column="enterprise_id" />
|
|
|
|
|
<result property="enterpriseName" column="enterprise_name" />
|
|
|
|
|
<result property="district" column="district" />
|
|
|
|
|
<result property="supervisionLarge" column="SUPERVISION_LARGE" />
|
|
|
|
|
<result property="riskLevel" column="RISK_LEVEL" />
|
|
|
|
|
<result property="standLevel" column="STAND_LEVEL" />
|
|
|
|
|
<result property="examineEndTime" column="EXAMINE_END_TIME" />
|
|
|
|
|
<result property="createId" column="create_id" />
|
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
|
<result property="createTime" column="create_time" />
|
|
|
|
|
<result property="updateId" column="update_id" />
|
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
|
|
<result property="remark" column="remark" />
|
|
|
|
|
<result property="userId" column="user_id" />
|
|
|
|
|
<result property="deptId" column="dept_id" />
|
|
|
|
|
<result property="id" column="id"/>
|
|
|
|
|
<result property="enterpriseId" column="enterprise_id"/>
|
|
|
|
|
<result property="enterpriseName" column="enterprise_name"/>
|
|
|
|
|
<result property="district" column="district"/>
|
|
|
|
|
<result property="supervisionLarge" column="SUPERVISION_LARGE"/>
|
|
|
|
|
<result property="riskLevel" column="RISK_LEVEL"/>
|
|
|
|
|
<result property="standLevel" column="STAND_LEVEL"/>
|
|
|
|
|
<result property="examineEndTime" column="EXAMINE_END_TIME"/>
|
|
|
|
|
<result property="createId" column="create_id"/>
|
|
|
|
|
<result property="createBy" column="create_by"/>
|
|
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
|
|
<result property="updateId" column="update_id"/>
|
|
|
|
|
<result property="updateBy" column="update_by"/>
|
|
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
|
|
<result property="remark" column="remark"/>
|
|
|
|
|
<result property="userId" column="user_id"/>
|
|
|
|
|
<result property="deptId" column="dept_id"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectBEnterpriseNewVo">
|
|
|
|
|
select id, enterprise_id, enterprise_name, district, SUPERVISION_LARGE, RISK_LEVEL, STAND_LEVEL, EXAMINE_END_TIME, create_id, create_by, create_time, update_id, update_by, update_time, remark, user_id, dept_id from b_enterprise_new
|
|
|
|
|
select id,
|
|
|
|
|
enterprise_id,
|
|
|
|
|
enterprise_name,
|
|
|
|
|
district,
|
|
|
|
|
SUPERVISION_LARGE,
|
|
|
|
|
RISK_LEVEL,
|
|
|
|
|
STAND_LEVEL,
|
|
|
|
|
EXAMINE_END_TIME,
|
|
|
|
|
create_id,
|
|
|
|
|
create_by,
|
|
|
|
|
create_time,
|
|
|
|
|
update_id,
|
|
|
|
|
update_by,
|
|
|
|
|
update_time,
|
|
|
|
|
remark,
|
|
|
|
|
user_id,
|
|
|
|
|
dept_id
|
|
|
|
|
from b_enterprise_new
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectBEnterpriseNewList" parameterType="BEnterpriseNew" resultMap="BEnterpriseNewResult">
|
|
|
|
|
<include refid="selectBEnterpriseNewVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="enterpriseId != null and enterpriseId != ''"> and enterprise_id = #{enterpriseId}</if>
|
|
|
|
|
<if test="enterpriseName != null and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if>
|
|
|
|
|
<if test="district != null and district != ''"> and district = #{district}</if>
|
|
|
|
|
<if test="supervisionLarge != null and supervisionLarge != ''"> and SUPERVISION_LARGE = #{supervisionLarge}</if>
|
|
|
|
|
<if test="riskLevel != null and riskLevel != ''"> and RISK_LEVEL = #{riskLevel}</if>
|
|
|
|
|
<if test="standLevel != null and standLevel != ''"> and STAND_LEVEL = #{standLevel}</if>
|
|
|
|
|
<if test="examineEndTime != null "> and EXAMINE_END_TIME = #{examineEndTime}</if>
|
|
|
|
|
<if test="createId != null "> and create_id = #{createId}</if>
|
|
|
|
|
<if test="updateId != null "> and update_id = #{updateId}</if>
|
|
|
|
|
<if test="userId != null "> and user_id = #{userId}</if>
|
|
|
|
|
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
|
|
|
<if test="enterpriseId != null and enterpriseId != ''">and enterprise_id = #{enterpriseId}</if>
|
|
|
|
|
<if test="enterpriseName != null and enterpriseName != ''">and enterprise_name like concat('%',
|
|
|
|
|
#{enterpriseName}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="district != null and district != ''">and district like concat('%', #{district}, '%')</if>
|
|
|
|
|
<if test="supervisionLarge != null and supervisionLarge != ''">and SUPERVISION_LARGE =
|
|
|
|
|
#{supervisionLarge}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="riskLevel != null and riskLevel != ''">and RISK_LEVEL = #{riskLevel}</if>
|
|
|
|
|
<if test="standLevel != null and standLevel != ''">and STAND_LEVEL = #{standLevel}</if>
|
|
|
|
|
<if test="examineEndTime != null ">and EXAMINE_END_TIME = #{examineEndTime}</if>
|
|
|
|
|
<if test="createId != null ">and create_id = #{createId}</if>
|
|
|
|
|
<if test="updateId != null ">and update_id = #{updateId}</if>
|
|
|
|
|
<if test="userId != null ">and user_id = #{userId}</if>
|
|
|
|
|
<if test="deptId != null ">and dept_id = #{deptId}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
@ -114,7 +135,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteBEnterpriseNewById" parameterType="Long">
|
|
|
|
|
delete from b_enterprise_new where id = #{id}
|
|
|
|
|
delete
|
|
|
|
|
from b_enterprise_new
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteBEnterpriseNewByIds" parameterType="String">
|
|
|
|
|