|
@@ -1,7 +1,7 @@
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<?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">
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.jeeplus.modules.projectcontentinfo.dao.ProjectReportDataDao">
|
|
<mapper namespace="com.jeeplus.modules.projectcontentinfo.dao.ProjectReportDataDao">
|
|
-
|
|
|
|
|
|
+
|
|
<sql id="projectReportDataColumns">
|
|
<sql id="projectReportDataColumns">
|
|
a.id AS "id",
|
|
a.id AS "id",
|
|
a.create_by AS "createBy.id",
|
|
a.create_by AS "createBy.id",
|
|
@@ -53,12 +53,12 @@
|
|
a.technicist_date as "technicistDate"
|
|
a.technicist_date as "technicistDate"
|
|
|
|
|
|
</sql>
|
|
</sql>
|
|
-
|
|
|
|
|
|
+
|
|
<sql id="projectReportDataJoins">
|
|
<sql id="projectReportDataJoins">
|
|
LEFT JOIN sys_user m ON m.id = a.master
|
|
LEFT JOIN sys_user m ON m.id = a.master
|
|
</sql>
|
|
</sql>
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
<select id="get" resultType="ProjectReportData" >
|
|
<select id="get" resultType="ProjectReportData" >
|
|
SELECT
|
|
SELECT
|
|
<include refid="projectReportDataColumns"/>
|
|
<include refid="projectReportDataColumns"/>
|
|
@@ -145,7 +145,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="findList" resultType="ProjectReportData" >
|
|
<select id="findList" resultType="ProjectReportData" >
|
|
- SELECT
|
|
|
|
|
|
+ SELECT
|
|
<include refid="projectReportDataColumns"/>
|
|
<include refid="projectReportDataColumns"/>
|
|
FROM project_report_data a
|
|
FROM project_report_data a
|
|
<include refid="projectReportDataJoins"/>
|
|
<include refid="projectReportDataJoins"/>
|
|
@@ -496,13 +496,13 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="findAllList" resultType="ProjectReportData" >
|
|
<select id="findAllList" resultType="ProjectReportData" >
|
|
- SELECT
|
|
|
|
|
|
+ SELECT
|
|
<include refid="projectReportDataColumns"/>
|
|
<include refid="projectReportDataColumns"/>
|
|
FROM project_report_data a
|
|
FROM project_report_data a
|
|
<include refid="projectReportDataJoins"/>
|
|
<include refid="projectReportDataJoins"/>
|
|
<where>
|
|
<where>
|
|
a.del_flag = #{DEL_FLAG_NORMAL}
|
|
a.del_flag = #{DEL_FLAG_NORMAL}
|
|
- </where>
|
|
|
|
|
|
+ </where>
|
|
<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}
|
|
@@ -512,7 +512,7 @@
|
|
</otherwise>
|
|
</otherwise>
|
|
</choose>
|
|
</choose>
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
|
|
+
|
|
<insert id="insert">
|
|
<insert id="insert">
|
|
INSERT INTO project_report_data(
|
|
INSERT INTO project_report_data(
|
|
id,
|
|
id,
|
|
@@ -604,9 +604,9 @@
|
|
#{technicistDate}
|
|
#{technicistDate}
|
|
)
|
|
)
|
|
</insert>
|
|
</insert>
|
|
-
|
|
|
|
|
|
+
|
|
<update id="update">
|
|
<update id="update">
|
|
- UPDATE project_report_data SET
|
|
|
|
|
|
+ UPDATE project_report_data SET
|
|
update_by = #{updateBy.id}
|
|
update_by = #{updateBy.id}
|
|
,update_date = #{updateDate}
|
|
,update_date = #{updateDate}
|
|
,remarks = #{remarks}
|
|
,remarks = #{remarks}
|
|
@@ -727,21 +727,21 @@
|
|
WHERE id = #{id}
|
|
WHERE id = #{id}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
<!--物理删除-->
|
|
<!--物理删除-->
|
|
<update id="delete">
|
|
<update id="delete">
|
|
DELETE FROM project_report_data
|
|
DELETE FROM project_report_data
|
|
WHERE id = #{id}
|
|
WHERE id = #{id}
|
|
</update>
|
|
</update>
|
|
-
|
|
|
|
|
|
+
|
|
<!--逻辑删除-->
|
|
<!--逻辑删除-->
|
|
<update id="deleteByLogic">
|
|
<update id="deleteByLogic">
|
|
- UPDATE project_report_data SET
|
|
|
|
|
|
+ UPDATE project_report_data SET
|
|
del_flag = #{DEL_FLAG_DELETE}
|
|
del_flag = #{DEL_FLAG_DELETE}
|
|
WHERE id = #{id}
|
|
WHERE id = #{id}
|
|
</update>
|
|
</update>
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
<!-- 根据实体名称和字段名称和字段值获取唯一记录 -->
|
|
<!-- 根据实体名称和字段名称和字段值获取唯一记录 -->
|
|
<select id="findUniqueByProperty" resultType="ProjectReportData" statementType="STATEMENT">
|
|
<select id="findUniqueByProperty" resultType="ProjectReportData" statementType="STATEMENT">
|
|
select * FROM project_report_data where ${propertyName} = '${value}'
|
|
select * FROM project_report_data where ${propertyName} = '${value}'
|
|
@@ -935,4 +935,4 @@
|
|
where projectId = #{projectId}
|
|
where projectId = #{projectId}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
-</mapper>
|
|
|
|
|
|
+</mapper>
|