|
@@ -0,0 +1,47 @@
|
|
|
|
+<?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.materialmodule.activiti.mapper.MaterialModuleMapper">
|
|
|
|
+
|
|
|
|
+ <sql id="materialColumns">
|
|
|
|
+ a.id AS "id",
|
|
|
|
+ a.create_by AS "createBy.id",
|
|
|
|
+ a.create_date AS "createDate",
|
|
|
|
+ a.update_by AS "updateBy.id",
|
|
|
|
+ a.update_date AS "updateDate",
|
|
|
|
+ a.remarks AS "remarks",
|
|
|
|
+ a.del_flag AS "delFlag",
|
|
|
|
+ a.proc_ins_id AS "procInsId",
|
|
|
|
+ a.user_name AS "userName",
|
|
|
|
+ a.project_id AS "projectId",
|
|
|
|
+ a.project_name AS "projectName",
|
|
|
|
+ a.project_type AS "projectType"
|
|
|
|
+ </sql>
|
|
|
|
+
|
|
|
|
+ <select id="get" resultType="MaterialModule" >
|
|
|
|
+ SELECT
|
|
|
|
+ <include refid="materialColumns"/>
|
|
|
|
+ FROM sg_construction_process a
|
|
|
|
+ WHERE a.id = #{id}
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+ <select id="findList" resultType="MaterialModule" >
|
|
|
|
+ SELECT
|
|
|
|
+ <include refid="materialColumns"/>
|
|
|
|
+ FROM sg_construction_process a
|
|
|
|
+ <choose>
|
|
|
|
+ <when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
|
|
+ ORDER BY ${page.orderBy}
|
|
|
|
+ </when>
|
|
|
|
+ <otherwise>
|
|
|
|
+ ORDER BY a.update_date DESC
|
|
|
|
+ </otherwise>
|
|
|
|
+ </choose>
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+<!-- 修改提前施工状态0未提前施工,1提前施工
|
|
|
|
+ <update id="updatePreConstruction">
|
|
|
|
+ update xm_project_details set preConstruction = #{preConstruction} where id = #{id};
|
|
|
|
+ </update>-->
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+</mapper>
|