浏览代码

聚水潭分销商

yzc 1 年之前
父节点
当前提交
460ef31e54

+ 13 - 0
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDept.java

@@ -91,6 +91,11 @@ public class SysDept extends BaseEntity {
     private Long dingDeptId;
 
     /**
+     * 聚水潭分销商
+     */
+    private Long jstDistributor;
+
+    /**
      * 父部门名称
      */
     @TableField(exist = false)
@@ -236,6 +241,14 @@ public class SysDept extends BaseEntity {
         this.dingDeptId = dingDeptId;
     }
 
+    public Long getJstDistributor() {
+        return jstDistributor;
+    }
+
+    public void setJstDistributor(Long jstDistributor) {
+        this.jstDistributor = jstDistributor;
+    }
+
     @Override
     public String toString() {
         return "SysDept{" +

+ 11 - 8
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml

@@ -132,10 +132,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="phone != null and phone != ''">phone,</if>
         <if test="email != null and email != ''">email,</if>
         <if test="status != null">status,</if>
-        <if test="tenantId != null and tenantId != ''">tenant_id,</if>
+		<if test="tenantId != null and tenantId != ''">tenant_id,</if>
         <if test="createBy != null and createBy != ''">create_by,</if>
-        create_time
-        )values(
+        create_time,
+		jst_distributor
+		)values(
         <if test="deptId != null and deptId != 0">#{deptId},</if>
         <if test="parentId != null and parentId != 0">#{parentId},</if>
         <if test="deptName != null and deptName != ''">#{deptName},</if>
@@ -147,9 +148,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="phone != null and phone != ''">#{phone},</if>
         <if test="email != null and email != ''">#{email},</if>
         <if test="status != null">#{status},</if>
-        <if test="tenantId != null and tenantId != ''">#{tenantId},</if>
+		<if test="tenantId != null and tenantId != ''">#{tenantId},</if>
         <if test="createBy != null and createBy != ''">#{createBy},</if>
-        sysdate()
+        sysdate(),
+		#{jstDistributor}
         )
     </insert>
 
@@ -166,9 +168,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  			<if test="phone != null">phone = #{phone},</if>
  			<if test="email != null">email = #{email},</if>
  			<if test="status != null and status != ''">status = #{status},</if>
- 			<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
- 			update_time = sysdate()
- 		</set>
+			<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
+ 			update_time = sysdate(),
+			jst_distributor = #{jstDistributor}
+		</set>
  		where dept_id = #{deptId}
 	</update>