|
@@ -1,6 +1,6 @@
|
|
|
<?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">
|
|
|
-<mapper namespace="com.jeeplus.modules.sg.material.mapper.MaterialMapper">
|
|
|
+<mapper namespace="com.jeeplus.modules.sg.audit.material.mapper.MaterialMapper">
|
|
|
|
|
|
<sql id="materialColumns">
|
|
|
id,
|
|
@@ -24,14 +24,14 @@
|
|
|
info
|
|
|
</sql>
|
|
|
|
|
|
- <select id="findByMaterialId" resultType="com.jeeplus.modules.sg.material.entity.Material">
|
|
|
+ <select id="findByMaterialId" resultType="com.jeeplus.modules.sg.audit.material.entity.Material">
|
|
|
SELECT
|
|
|
<include refid="materialColumns"/>
|
|
|
FROM sj_material_information
|
|
|
where project_Id = #{projectId} and infor_id = #{inforId} and material_name = #{materialName}
|
|
|
</select>
|
|
|
|
|
|
- <update id="updateInfo" parameterType="com.jeeplus.modules.sg.material.entity.Material">
|
|
|
+ <update id="updateInfo" parameterType="com.jeeplus.modules.sg.audit.material.entity.Material">
|
|
|
update sj_material_information set status = #{status},info = #{info},isback = "是",isBackNo=0,afterNumber=#{afterNumber},afterAuthor=#{afterAuthor} where id = #{id};
|
|
|
</update>
|
|
|
<select id="findList" resultType="Material">
|
|
@@ -73,7 +73,7 @@
|
|
|
<select id="get" resultType="Material">
|
|
|
select id,status,info from sj_material_information where id = #{id}
|
|
|
</select>
|
|
|
- <select id="projectNeed" resultType="com.jeeplus.modules.sg.material.entity.Material">
|
|
|
+ <select id="projectNeed" resultType="com.jeeplus.modules.sg.audit.material.entity.Material">
|
|
|
select project_id from sj_material_information where project_id
|
|
|
in(
|
|
|
<foreach collection="list" index="index" item="material" separator=",">
|
|
@@ -214,14 +214,14 @@
|
|
|
del_flag = #{delFlag}
|
|
|
</insert>
|
|
|
|
|
|
-<select id="findByProIn" resultType="com.jeeplus.modules.sg.material.entity.Material">
|
|
|
+<select id="findByProIn" resultType="com.jeeplus.modules.sg.audit.material.entity.Material">
|
|
|
SELECT
|
|
|
<include refid="materialColumns"/>
|
|
|
FROM sj_material_information
|
|
|
where project_Id = #{projectId} and infor_id = #{inforId}
|
|
|
</select>
|
|
|
|
|
|
- <select id="findInformation" resultType="com.jeeplus.modules.sg.material.entity.Material">
|
|
|
+ <select id="findInformation" resultType="com.jeeplus.modules.sg.audit.material.entity.Material">
|
|
|
select project_id,SUM(isBackNo) as isBackNo
|
|
|
from sj_material_information
|
|
|
where project_id
|
|
@@ -233,11 +233,11 @@
|
|
|
GROUP BY project_id
|
|
|
</select>
|
|
|
|
|
|
- <select id="findNeedInfor" resultType="com.jeeplus.modules.sg.information.entity.Information">
|
|
|
+ <select id="findNeedInfor" resultType="com.jeeplus.modules.sg.audit.information.entity.Information">
|
|
|
select * from sj_project_information where project_id = #{projectId}
|
|
|
</select>
|
|
|
|
|
|
- <update id="updateNeed" parameterType="com.jeeplus.modules.sg.information.entity.Information">
|
|
|
+ <update id="updateNeed" parameterType="com.jeeplus.modules.sg.audit.information.entity.Information">
|
|
|
update sj_project_information
|
|
|
<trim prefix="set" suffixOverrides=",">
|
|
|
secondFinishDate=#{secondFinishDate},
|
|
@@ -254,7 +254,7 @@
|
|
|
where project_id=#{projectId}
|
|
|
</update>
|
|
|
|
|
|
- <update id="updateStatus" parameterType="com.jeeplus.modules.sg.material.entity.Material">
|
|
|
+ <update id="updateStatus" parameterType="com.jeeplus.modules.sg.audit.material.entity.Material">
|
|
|
<foreach collection="list" item="item" index="index" separator=";">
|
|
|
update sj_material_information
|
|
|
<trim prefix="set" suffixOverrides=",">
|
|
@@ -281,7 +281,7 @@
|
|
|
</foreach>
|
|
|
</update>
|
|
|
|
|
|
- <select id="findIsBack" resultType="com.jeeplus.modules.sg.material.entity.Material">
|
|
|
+ <select id="findIsBack" resultType="com.jeeplus.modules.sg.audit.material.entity.Material">
|
|
|
SELECT project_id from sj_material_information where project_id in(
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
|
#{item.projectId}
|
|
@@ -290,7 +290,7 @@
|
|
|
GROUP BY project_id HAVING SUM(isBackNo) = 0
|
|
|
</select>
|
|
|
|
|
|
- <select id="findProId" resultType="com.jeeplus.modules.sg.material.entity.Material">
|
|
|
+ <select id="findProId" resultType="com.jeeplus.modules.sg.audit.material.entity.Material">
|
|
|
SELECT project_id from sj_material_information where (status is not null or status != '')
|
|
|
and project_id in(
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
@@ -300,7 +300,7 @@
|
|
|
GROUP BY project_id
|
|
|
</select>
|
|
|
|
|
|
- <select id="proIdName" resultType="com.jeeplus.modules.sg.information.entity.Information">
|
|
|
+ <select id="proIdName" resultType="com.jeeplus.modules.sg.audit.information.entity.Information">
|
|
|
select project_id,project_name from sj_project_information where project_id in
|
|
|
(
|
|
|
<foreach collection="list" item="item" separator=",">
|
|
@@ -309,7 +309,7 @@
|
|
|
)
|
|
|
</select>
|
|
|
|
|
|
- <select id="findMateial" resultType="com.jeeplus.modules.sg.material.entity.Material">
|
|
|
+ <select id="findMateial" resultType="com.jeeplus.modules.sg.audit.material.entity.Material">
|
|
|
select infor_id,material_name,outbound_number,authorized_number,status,afterNumber,afterAuthor
|
|
|
from sj_material_information
|
|
|
where (status is not null
|
|
@@ -318,7 +318,7 @@
|
|
|
</select>
|
|
|
|
|
|
|
|
|
- <select id="findStatus" resultType="com.jeeplus.modules.sg.material.entity.Material">
|
|
|
+ <select id="findStatus" resultType="com.jeeplus.modules.sg.audit.material.entity.Material">
|
|
|
select * from sj_material_information where status is not null
|
|
|
</select>
|
|
|
|
|
@@ -326,7 +326,7 @@
|
|
|
select isBack from sj_material_information where id = #{id};
|
|
|
</select>
|
|
|
|
|
|
- <select id="idFormId" resultType="com.jeeplus.modules.sg.material.entity.Material">
|
|
|
+ <select id="idFormId" resultType="com.jeeplus.modules.sg.audit.material.entity.Material">
|
|
|
select * from sj_material_information where id =#{id};
|
|
|
</select>
|
|
|
</mapper>
|