|
@@ -56,11 +56,11 @@
|
|
a.overdue
|
|
a.overdue
|
|
</sql>
|
|
</sql>
|
|
<select id="findAllInformationList" resultType="com.jeeplus.modules.sg.information.entity.Information">
|
|
<select id="findAllInformationList" resultType="com.jeeplus.modules.sg.information.entity.Information">
|
|
- select project_id,project_name from project_information
|
|
|
|
|
|
+ select project_id,project_name from sj_project_information
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<insert id="insert">
|
|
<insert id="insert">
|
|
- INSERT INTO project_information(
|
|
|
|
|
|
+ INSERT INTO sj_project_information(
|
|
id,
|
|
id,
|
|
project_id,
|
|
project_id,
|
|
project_name,
|
|
project_name,
|
|
@@ -137,7 +137,7 @@
|
|
|
|
|
|
|
|
|
|
<insert id="insertInfor">
|
|
<insert id="insertInfor">
|
|
- INSERT INTO project_information(
|
|
|
|
|
|
+ INSERT INTO sj_project_information(
|
|
id,
|
|
id,
|
|
project_id,
|
|
project_id,
|
|
project_name,
|
|
project_name,
|
|
@@ -212,13 +212,13 @@
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<update id="updateInformationDate" parameterType="com.jeeplus.modules.sg.information.entity.Information">
|
|
<update id="updateInformationDate" parameterType="com.jeeplus.modules.sg.information.entity.Information">
|
|
- update project_information set
|
|
|
|
|
|
+ update sj_project_information set
|
|
approvalDate = #{approvalDate}
|
|
approvalDate = #{approvalDate}
|
|
where project_Id = #{projectId} and project_Name = #{projectName}
|
|
where project_Id = #{projectId} and project_Name = #{projectName}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
<update id="updateDate">
|
|
<update id="updateDate">
|
|
- update project_information set firstFinishDate = CURDATE(),firstFinish = '是'
|
|
|
|
|
|
+ update sj_project_information set firstFinishDate = CURDATE(),firstFinish = '是'
|
|
where project_Id in(
|
|
where project_Id in(
|
|
<foreach collection="list" item="item" separator=",">
|
|
<foreach collection="list" item="item" separator=",">
|
|
#{item.projectId}
|
|
#{item.projectId}
|
|
@@ -228,15 +228,15 @@
|
|
</update>
|
|
</update>
|
|
|
|
|
|
<select id="findInformationByID" resultType="com.jeeplus.modules.sg.information.entity.Information">
|
|
<select id="findInformationByID" resultType="com.jeeplus.modules.sg.information.entity.Information">
|
|
- select * from project_information where project_Id = #{projectId} and project_Name = #{projectName}
|
|
|
|
|
|
+ select * from sj_project_information where project_Id = #{projectId} and project_Name = #{projectName}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="findList" resultType="Information">
|
|
<select id="findList" resultType="Information">
|
|
SELECT
|
|
SELECT
|
|
<include refid="newInformationColumns"/>,b.trial,b.construction,b.outConstruction,b.settlement,b.underCentralized,
|
|
<include refid="newInformationColumns"/>,b.trial,b.construction,b.outConstruction,b.settlement,b.underCentralized,
|
|
datediff(if(firstFinish='否' or secondFinish = '否',NOW(),if(secondFinish = '是',secondFinishDate,firstFinishDate)),approvalDate) as newdate
|
|
datediff(if(firstFinish='否' or secondFinish = '否',NOW(),if(secondFinish = '是',secondFinishDate,firstFinishDate)),approvalDate) as newdate
|
|
- FROM project_information as a
|
|
|
|
- left JOIN project_append as b on a.project_id = b.project_id
|
|
|
|
|
|
+ FROM sj_project_information as a
|
|
|
|
+ left JOIN sj_project_append as b on a.project_id = b.project_id
|
|
<where>
|
|
<where>
|
|
1=1
|
|
1=1
|
|
<if test="projectName != null and projectName != ''">
|
|
<if test="projectName != null and projectName != ''">
|
|
@@ -310,7 +310,7 @@
|
|
<select id="findAllList" resultType="Information">
|
|
<select id="findAllList" resultType="Information">
|
|
SELECT
|
|
SELECT
|
|
<include refid="informationColumns"/>
|
|
<include refid="informationColumns"/>
|
|
- FROM project_information a
|
|
|
|
|
|
+ FROM sj_project_information a
|
|
<choose>
|
|
<choose>
|
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
ORDER BY ${page.orderBy}
|
|
ORDER BY ${page.orderBy}
|
|
@@ -322,7 +322,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<insert id="saveInfo" parameterType="java.util.List">
|
|
<insert id="saveInfo" parameterType="java.util.List">
|
|
- replace into project_information(
|
|
|
|
|
|
+ replace into sj_project_information(
|
|
id,
|
|
id,
|
|
project_id,
|
|
project_id,
|
|
project_name,
|
|
project_name,
|
|
@@ -387,7 +387,7 @@
|
|
<select id="findListBy" resultType="com.jeeplus.modules.sg.information.entity.Information">
|
|
<select id="findListBy" resultType="com.jeeplus.modules.sg.information.entity.Information">
|
|
select
|
|
select
|
|
<include refid="informationColumns"/>
|
|
<include refid="informationColumns"/>
|
|
- from project_information
|
|
|
|
|
|
+ from sj_project_information
|
|
where project_Id in
|
|
where project_Id in
|
|
<foreach collection="list" item="information" index="index" open="(" separator="," close=")">
|
|
<foreach collection="list" item="information" index="index" open="(" separator="," close=")">
|
|
#{information.projectId}
|
|
#{information.projectId}
|
|
@@ -396,7 +396,7 @@
|
|
<if test="information.projectName != null and information.projectName !='' ">
|
|
<if test="information.projectName != null and information.projectName !='' ">
|
|
or
|
|
or
|
|
project_Name in (
|
|
project_Name in (
|
|
- SELECT project_Name from project_information where
|
|
|
|
|
|
+ SELECT project_Name from sj_project_information where
|
|
<foreach collection="list" item="information" index="index" separator="or" >
|
|
<foreach collection="list" item="information" index="index" separator="or" >
|
|
<if test="information.projectName != null and information.projectName !='' ">
|
|
<if test="information.projectName != null and information.projectName !='' ">
|
|
project_Name LIKE concat('%',#{information.projectName},'%')
|
|
project_Name LIKE concat('%',#{information.projectName},'%')
|
|
@@ -408,11 +408,11 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="findListById" resultType="com.jeeplus.modules.sg.information.entity.Information">
|
|
<select id="findListById" resultType="com.jeeplus.modules.sg.information.entity.Information">
|
|
- select project_id,project_name,firstFinish,firstFinishDate,secondFinish,secondFinishDate from project_information where project_Id=#{projectId}
|
|
|
|
|
|
+ select project_id,project_name,firstFinish,firstFinishDate,secondFinish,secondFinishDate from sj_project_information where project_Id=#{projectId}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<insert id="updateAppend">
|
|
<insert id="updateAppend">
|
|
- replace into project_append(
|
|
|
|
|
|
+ replace into sj_project_append(
|
|
project_id,
|
|
project_id,
|
|
trial,
|
|
trial,
|
|
construction,
|
|
construction,
|
|
@@ -435,7 +435,7 @@
|
|
|
|
|
|
<select id="allNoBack" resultType="com.jeeplus.modules.sg.material.entity.Material">
|
|
<select id="allNoBack" resultType="com.jeeplus.modules.sg.material.entity.Material">
|
|
select *
|
|
select *
|
|
- from material_information
|
|
|
|
|
|
+ from sj_material_information
|
|
where project_Id in(
|
|
where project_Id in(
|
|
<foreach collection="list" item="item" index="index" separator=",">
|
|
<foreach collection="list" item="item" index="index" separator=",">
|
|
#{item.projectId}
|
|
#{item.projectId}
|
|
@@ -445,7 +445,7 @@
|
|
|
|
|
|
<select id="allNo" resultType="com.jeeplus.modules.sg.material.entity.Material">
|
|
<select id="allNo" resultType="com.jeeplus.modules.sg.material.entity.Material">
|
|
select *
|
|
select *
|
|
- from material_information
|
|
|
|
|
|
+ from sj_material_information
|
|
where project_Id in(
|
|
where project_Id in(
|
|
<foreach collection="list" item="items" index="index" separator=",">
|
|
<foreach collection="list" item="items" index="index" separator=",">
|
|
#{items.projectId}
|
|
#{items.projectId}
|
|
@@ -456,8 +456,8 @@
|
|
<select id="exportInfor" resultType="com.jeeplus.modules.sg.information.entity.Information">
|
|
<select id="exportInfor" resultType="com.jeeplus.modules.sg.information.entity.Information">
|
|
SELECT
|
|
SELECT
|
|
a.*,b.trial,b.construction,b.outConstruction,b.settlement
|
|
a.*,b.trial,b.construction,b.outConstruction,b.settlement
|
|
- FROM project_information as a
|
|
|
|
- left JOIN project_append as b on a.project_id = b.project_id
|
|
|
|
|
|
+ FROM sj_project_information as a
|
|
|
|
+ left JOIN sj_project_append as b on a.project_id = b.project_id
|
|
where a.project_Id in(
|
|
where a.project_Id in(
|
|
<foreach collection="list" item="items" index="index" separator=",">
|
|
<foreach collection="list" item="items" index="index" separator=",">
|
|
#{items.projectId}
|
|
#{items.projectId}
|
|
@@ -468,8 +468,8 @@
|
|
<select id="export" resultType="com.jeeplus.modules.sg.information.entity.Information">
|
|
<select id="export" resultType="com.jeeplus.modules.sg.information.entity.Information">
|
|
SELECT
|
|
SELECT
|
|
a.*,b.trial,b.construction,b.outConstruction,b.settlement,b.underCentralized
|
|
a.*,b.trial,b.construction,b.outConstruction,b.settlement,b.underCentralized
|
|
- FROM project_information as a
|
|
|
|
- left JOIN project_append as b on a.project_id = b.project_id
|
|
|
|
|
|
+ FROM sj_project_information as a
|
|
|
|
+ left JOIN sj_project_append as b on a.project_id = b.project_id
|
|
where 1=1
|
|
where 1=1
|
|
<foreach collection="list" item="items" index="index">
|
|
<foreach collection="list" item="items" index="index">
|
|
<if test="items.projectId != null and items.projectId != ''">
|
|
<if test="items.projectId != null and items.projectId != ''">
|
|
@@ -498,7 +498,7 @@
|
|
<select id="findIdByList" resultType="com.jeeplus.modules.sg.information.entity.Information">
|
|
<select id="findIdByList" resultType="com.jeeplus.modules.sg.information.entity.Information">
|
|
SELECT
|
|
SELECT
|
|
a.project_Id
|
|
a.project_Id
|
|
- FROM project_information as a
|
|
|
|
|
|
+ FROM sj_project_information as a
|
|
<where>
|
|
<where>
|
|
1=1
|
|
1=1
|
|
<foreach collection="list" item="items" index="index">
|
|
<foreach collection="list" item="items" index="index">
|
|
@@ -526,11 +526,11 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="findOverTime" resultType="string">
|
|
<select id="findOverTime" resultType="string">
|
|
- select overTime from project_constant where overType = #{overType} ;
|
|
|
|
|
|
+ select overTime from sj_project_constant where overType = #{overType} ;
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<update id="updateConstant" parameterType="com.jeeplus.modules.sg.information.entity.constant">
|
|
<update id="updateConstant" parameterType="com.jeeplus.modules.sg.information.entity.constant">
|
|
- update project_constant set overTime = #{overTime} where overType = 'overTime';
|
|
|
|
|
|
+ update sj_project_constant set overTime = #{overTime} where overType = 'overTime';
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
|
|
@@ -538,13 +538,13 @@
|
|
SELECT
|
|
SELECT
|
|
<include refid="newInformationColumns"/>,b.trial,b.construction,b.outConstruction,b.settlement,b.underCentralized,
|
|
<include refid="newInformationColumns"/>,b.trial,b.construction,b.outConstruction,b.settlement,b.underCentralized,
|
|
datediff(if(firstFinish='否' or secondFinish = '否',NOW(),if(secondFinish = '是',secondFinishDate,firstFinishDate)),approvalDate) as newdate
|
|
datediff(if(firstFinish='否' or secondFinish = '否',NOW(),if(secondFinish = '是',secondFinishDate,firstFinishDate)),approvalDate) as newdate
|
|
- FROM project_information as a
|
|
|
|
- left JOIN project_append as b on a.project_id = b.project_id
|
|
|
|
|
|
+ FROM sj_project_information as a
|
|
|
|
+ left JOIN sj_project_append as b on a.project_id = b.project_id
|
|
<where>
|
|
<where>
|
|
1=1
|
|
1=1
|
|
and a.project_Id in (
|
|
and a.project_Id in (
|
|
select project_Id
|
|
select project_Id
|
|
- from material_information
|
|
|
|
|
|
+ from sj_material_information
|
|
where (status is not null
|
|
where (status is not null
|
|
or status != '') group by project_id
|
|
or status != '') group by project_id
|
|
)
|
|
)
|