|
@@ -4,12 +4,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.project.zcustom.mapper.unit.LargeProjectMapper">
|
|
|
|
|
|
- <resultMap type="com.project.zcustom.domain.unit.LargeProject" id="LargeProjectResult">
|
|
|
+ <resultMap type="com.project.zcustom.domain.addional.LargeProject" id="LargeProjectResult">
|
|
|
<result property="id" column="id" />
|
|
|
<result property="projectName" column="project_name" />
|
|
|
<result property="unitCode" column="unit_code" />
|
|
|
<result property="connectFlag" column="connect_flag" />
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
+ <result property="subdivision" column="subdivision" />
|
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
@@ -82,14 +83,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
DELETE FROM large_project ${ew.customSqlSegment}
|
|
|
</delete>
|
|
|
|
|
|
- <select id="getProjectNumX" parameterType="String" resultType="int">
|
|
|
- select count(*) from large_project
|
|
|
- where del_flag = '0' and type = '0' and subdivision = #{subdivision}
|
|
|
+ <select id="getProjectNumX" parameterType="String" resultMap="LargeProjectResult">
|
|
|
+ select count(*) as num, subdivision from large_project
|
|
|
+ where del_flag = '0' and type = '0'
|
|
|
+ group by subdivision
|
|
|
</select>
|
|
|
|
|
|
- <select id="getProjectNumY" parameterType="String" resultType="int">
|
|
|
- select count(*) from large_project
|
|
|
- where del_flag = '0' and type = '2' and subdivision = #{subdivision}
|
|
|
+ <select id="getProjectNumY" parameterType="String" resultMap="LargeProjectResult">
|
|
|
+ select count(*) as num, subdivision from large_project
|
|
|
+ where del_flag = '0' and type = '2'
|
|
|
+ group by subdivision
|
|
|
</select>
|
|
|
|
|
|
<select id="getCameraNumList" parameterType="String" resultMap="LargeProjectResult">
|