Pārlūkot izejas kodu

施工流程实体类,mapper,service,controller,jsp页面,js文件

yue 5 gadi atpakaļ
vecāks
revīzija
37b91dca38

+ 19 - 0
src/main/java/com/jeeplus/modules/sg/materialmodule/activiti/mapper/MaterialModuleMapper.java

@@ -0,0 +1,19 @@
+/**
+ * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
+ */
+package com.jeeplus.modules.sg.materialmodule.activiti.mapper;
+
+import com.jeeplus.core.persistence.BaseMapper;
+import com.jeeplus.core.persistence.annotation.MyBatisMapper;
+import com.jeeplus.modules.sg.advence.activiti.entity.Advance;
+import com.jeeplus.modules.sg.materialmodule.activiti.entity.MaterialModule;
+
+/**
+ * 请假表单MAPPER接口
+ * @author lgf
+ * @version 2018-06-12
+ */
+@MyBatisMapper
+public interface MaterialModuleMapper extends BaseMapper<MaterialModule> {
+
+}

+ 47 - 0
src/main/java/com/jeeplus/modules/sg/materialmodule/activiti/mapper/xml/MaterialModuleMapper.xml

@@ -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>