|
@@ -7,7 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<resultMap type="com.project.zcustom.domain.addional.LargeProject" id="LargeProjectResult">
|
|
<resultMap type="com.project.zcustom.domain.addional.LargeProject" id="LargeProjectResult">
|
|
<result property="id" column="id" />
|
|
<result property="id" column="id" />
|
|
<result property="projectName" column="project_name" />
|
|
<result property="projectName" column="project_name" />
|
|
- <result property="unitCode" column="unit_code" />
|
|
|
|
|
|
+ <result property="appOrg" column="app_org" />
|
|
<result property="connectFlag" column="connect_flag" />
|
|
<result property="connectFlag" column="connect_flag" />
|
|
<result property="delFlag" column="del_flag" />
|
|
<result property="delFlag" column="del_flag" />
|
|
<result property="subdivision" column="subdivision" />
|
|
<result property="subdivision" column="subdivision" />
|
|
@@ -18,14 +18,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectLargeProjectVo">
|
|
<sql id="selectLargeProjectVo">
|
|
- select id, project_name, unit_code, connect_flag, del_flag, create_by, create_time, update_by, update_time from large_plat_project
|
|
|
|
|
|
+ select id, project_name, app_org, connect_flag, del_flag, create_by, create_time, update_by, update_time from large_plat_project
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectLargeProjectList" parameterType="LargeProject" resultMap="LargeProjectResult">
|
|
<select id="selectLargeProjectList" parameterType="LargeProject" resultMap="LargeProjectResult">
|
|
<include refid="selectLargeProjectVo"/>
|
|
<include refid="selectLargeProjectVo"/>
|
|
<where>
|
|
<where>
|
|
<if test="projectName != null and projectName != ''"> and project_name like concat('%', #{projectName}, '%')</if>
|
|
<if test="projectName != null and projectName != ''"> and project_name like concat('%', #{projectName}, '%')</if>
|
|
- <if test="unitCode != null "> and unit_code = #{unitCode}</if>
|
|
|
|
|
|
+ <if test="appOrg != null "> and app_org = #{appOrg}</if>
|
|
<if test="connectFlag != null and connectFlag != ''"> and connect_flag = #{connectFlag}</if>
|
|
<if test="connectFlag != null and connectFlag != ''"> and connect_flag = #{connectFlag}</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
@@ -34,7 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
insert into large_plat_project
|
|
insert into large_plat_project
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="projectName != null">project_name,</if>
|
|
<if test="projectName != null">project_name,</if>
|
|
- <if test="unitCode != null">unit_code,</if>
|
|
|
|
|
|
+ <if test="appOrg != null">app_org,</if>
|
|
<if test="connectFlag != null">connect_flag,</if>
|
|
<if test="connectFlag != null">connect_flag,</if>
|
|
<if test="delFlag != null">del_flag,</if>
|
|
<if test="delFlag != null">del_flag,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
@@ -44,7 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="projectName != null">#{projectName},</if>
|
|
<if test="projectName != null">#{projectName},</if>
|
|
- <if test="unitCode != null">#{unitCode},</if>
|
|
|
|
|
|
+ <if test="appOrg != null">#{appOrg},</if>
|
|
<if test="connectFlag != null">#{connectFlag},</if>
|
|
<if test="connectFlag != null">#{connectFlag},</if>
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
@@ -58,7 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
update large_plat_project
|
|
update large_plat_project
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="projectName != null">project_name = #{projectName},</if>
|
|
<if test="projectName != null">project_name = #{projectName},</if>
|
|
- <if test="unitCode != null">unit_code = #{unitCode},</if>
|
|
|
|
|
|
+ <if test="appOrg != null">app_org = #{appOrg},</if>
|
|
<if test="connectFlag != null">connect_flag = #{connectFlag},</if>
|
|
<if test="connectFlag != null">connect_flag = #{connectFlag},</if>
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
@@ -83,6 +83,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
DELETE FROM large_plat_project ${ew.customSqlSegment}
|
|
DELETE FROM large_plat_project ${ew.customSqlSegment}
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
|
|
+ <select id="getProjectNum" resultType="Long">
|
|
|
|
+ select count(*) as num from large_plat_project
|
|
|
|
+ where del_flag = '0'
|
|
|
|
+ </select>
|
|
|
|
+
|
|
<select id="getProjectNumX" parameterType="String" resultMap="LargeProjectResult">
|
|
<select id="getProjectNumX" parameterType="String" resultMap="LargeProjectResult">
|
|
select count(*) as num, subdivision from large_plat_project
|
|
select count(*) as num, subdivision from large_plat_project
|
|
where del_flag = '0' and subdivision <= 10
|
|
where del_flag = '0' and subdivision <= 10
|
|
@@ -104,7 +109,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
FROM
|
|
FROM
|
|
large_plat_project a
|
|
large_plat_project a
|
|
LEFT JOIN large_plat_camera b ON a.id = b.project_id
|
|
LEFT JOIN large_plat_camera b ON a.id = b.project_id
|
|
- WHERE a.del_flag = 0 AND a.unit_code = #{unitCode}
|
|
|
|
|
|
+ WHERE a.del_flag = 0 AND a.app_org = #{appOrg}
|
|
GROUP BY a.id
|
|
GROUP BY a.id
|
|
</select>
|
|
</select>
|
|
|
|
|