|
|
|
@ -4,25 +4,25 @@
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.ruoyi.programManagement.mapper.BPlanEnterpriseMapper">
|
|
|
|
|
|
|
|
|
|
<resultMap type="BPlanEnterprise" id="BPlanEnterpriseResult">
|
|
|
|
|
<result property="id" column="id"/>
|
|
|
|
|
<result property="enterpriseId" column="enterprise_id"/>
|
|
|
|
|
<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="district" column="district"/>
|
|
|
|
|
<result property="plannedYear" column="planned_year"/>
|
|
|
|
|
<result property="planName" column="plan_name"/>
|
|
|
|
|
<result property="planContent" column="plan_content"/>
|
|
|
|
|
<result property="isPoint" column="is_point"/>
|
|
|
|
|
<result property="enterpriseName" column="enterprise_name"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
<!-- <resultMap type="BPlanEnterprise" id="BPlanEnterpriseResult">-->
|
|
|
|
|
<!-- <result property="id" column="id"/>-->
|
|
|
|
|
<!-- <result property="enterpriseId" column="enterprise_id"/>-->
|
|
|
|
|
<!-- <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="district" column="district"/>-->
|
|
|
|
|
<!-- <result property="plannedYear" column="planned_year"/>-->
|
|
|
|
|
<!-- <result property="planName" column="plan_name"/>-->
|
|
|
|
|
<!-- <result property="planContent" column="plan_content"/>-->
|
|
|
|
|
<!-- <result property="isPoint" column="is_point"/>-->
|
|
|
|
|
<!-- <result property="enterpriseName" column="enterprise_name"/>-->
|
|
|
|
|
<!-- </resultMap>-->
|
|
|
|
|
<sql id="selectBPlanEnterpriseVo">
|
|
|
|
|
select id,
|
|
|
|
|
enterprise_id,
|
|
|
|
@ -40,11 +40,20 @@
|
|
|
|
|
plan_name,
|
|
|
|
|
plan_content,
|
|
|
|
|
is_point,
|
|
|
|
|
enterprise_name
|
|
|
|
|
enterprise_name,
|
|
|
|
|
law_sort,
|
|
|
|
|
law_areas,
|
|
|
|
|
law_level,
|
|
|
|
|
law_hierarchy,
|
|
|
|
|
planned_month,
|
|
|
|
|
status,
|
|
|
|
|
check_status,
|
|
|
|
|
check_id,
|
|
|
|
|
check_ageing
|
|
|
|
|
from b_plan_enterprise
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectBPlanEnterpriseList" parameterType="BPlanEnterprise" resultMap="BPlanEnterpriseResult">
|
|
|
|
|
<select id="selectBPlanEnterpriseList" parameterType="BPlanEnterprise" resultType="BPlanEnterprise">
|
|
|
|
|
<include refid="selectBPlanEnterpriseVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="enterpriseId != null and enterpriseId != ''">and enterprise_id = #{enterpriseId}</if>
|
|
|
|
@ -68,29 +77,7 @@
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<select id="getZhifa" resultType="com.ruoyi.programManagement.entity.response.BPlanEnterpriseZhifaResponse">
|
|
|
|
|
-- SELECT
|
|
|
|
|
-- s.*
|
|
|
|
|
-- FROM
|
|
|
|
|
-- (
|
|
|
|
|
-- SELECT
|
|
|
|
|
-- a.*,
|
|
|
|
|
-- a.planned_year AS plannedYear,
|
|
|
|
|
-- b.id AS longId,
|
|
|
|
|
-- b.EXAMINE_START_TIME,
|
|
|
|
|
-- b.EXAMINE_END_TIME,
|
|
|
|
|
-- b.ENTPR_NAME as entprName,
|
|
|
|
|
-- CASE
|
|
|
|
|
-- WHEN b.USC_CODE IS NOT NULL
|
|
|
|
|
-- AND SUBSTRING( a.planned_year, 1, 7 ) = SUBSTRING( b.EXAMINE_START_TIME, 1, 7 )
|
|
|
|
|
-- THEN 1
|
|
|
|
|
-- ELSE 2
|
|
|
|
|
-- END AS checkStatus
|
|
|
|
|
-- FROM
|
|
|
|
|
-- b_plan_enterprise a
|
|
|
|
|
-- LEFT JOIN sz_enfor_examine b ON a.enterprise_id = b.USC_CODE
|
|
|
|
|
-- WHERE
|
|
|
|
|
-- b.USC_CODE IS NOT NULL
|
|
|
|
|
-- ) s
|
|
|
|
|
|
|
|
|
|
SELECT s.*
|
|
|
|
|
FROM (
|
|
|
|
|
SELECT
|
|
|
|
|