Browse Source

公出详情查看权限设置

anderx 2 years ago
parent
commit
b1a52523a9

+ 15 - 5
src/main/java/com/goafanti/common/mapper/PublicExamineMapper.xml

@@ -7,9 +7,10 @@
     <result column="aid" jdbcType="VARCHAR" property="aid" />
     <result column="status" jdbcType="INTEGER" property="status" />
     <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="aname" jdbcType="VARCHAR" property="aname" />
   </resultMap>
   <sql id="Base_Column_List">
-    id, prid, aid, `status`, create_time
+    id, prid, aid, `status`, create_time, aname
   </sql>
   <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
     select
@@ -17,16 +18,15 @@
     from public_examine
     where id = #{id,jdbcType=INTEGER}
   </select>
-
   <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
     delete from public_examine
     where id = #{id,jdbcType=INTEGER}
   </delete>
   <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.PublicExamine" useGeneratedKeys="true">
     insert into public_examine (prid, aid, `status`,
-      create_time)
+      create_time, aname)
     values (#{prid,jdbcType=INTEGER}, #{aid,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
-      #{createTime,jdbcType=TIMESTAMP})
+      #{createTime,jdbcType=TIMESTAMP}, #{aname,jdbcType=VARCHAR})
   </insert>
   <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.PublicExamine" useGeneratedKeys="true">
     insert into public_examine
@@ -43,6 +43,9 @@
       <if test="createTime != null">
         create_time,
       </if>
+      <if test="aname != null">
+        aname,
+      </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
       <if test="prid != null">
@@ -57,6 +60,9 @@
       <if test="createTime != null">
         #{createTime,jdbcType=TIMESTAMP},
       </if>
+      <if test="aname != null">
+        #{aname,jdbcType=VARCHAR},
+      </if>
     </trim>
   </insert>
   <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.PublicExamine">
@@ -74,6 +80,9 @@
       <if test="createTime != null">
         create_time = #{createTime,jdbcType=TIMESTAMP},
       </if>
+      <if test="aname != null">
+        aname = #{aname,jdbcType=VARCHAR},
+      </if>
     </set>
     where id = #{id,jdbcType=INTEGER}
   </update>
@@ -82,7 +91,8 @@
     set prid = #{prid,jdbcType=INTEGER},
       aid = #{aid,jdbcType=VARCHAR},
       `status` = #{status,jdbcType=INTEGER},
-      create_time = #{createTime,jdbcType=TIMESTAMP}
+      create_time = #{createTime,jdbcType=TIMESTAMP},
+      aname = #{aname,jdbcType=VARCHAR}
     where id = #{id,jdbcType=INTEGER}
   </update>
   <update id="updatePrid">

+ 13 - 0
src/main/java/com/goafanti/common/model/PublicExamine.java

@@ -30,6 +30,11 @@ public class PublicExamine implements Serializable {
      */
     private Date createTime;
 
+    /**
+     * 审核人名称
+     */
+    private String aname;
+
     private static final long serialVersionUID = 1L;
 
     public Integer getId() {
@@ -71,4 +76,12 @@ public class PublicExamine implements Serializable {
     public void setCreateTime(Date createTime) {
         this.createTime = createTime;
     }
+
+    public String getAname() {
+        return aname;
+    }
+
+    public void setAname(String aname) {
+        this.aname = aname;
+    }
 }

+ 1 - 0
src/main/java/com/goafanti/weChat/service/impl/PublicReleaseServiceImpl.java

@@ -148,6 +148,7 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
 		PublicExamine pe=new PublicExamine();
 		pe.setPrid(id);
 		pe.setAid(a.getAid());
+		pe.setAname(a.getName());
 		pe.setStatus(0);
 		publicExamineMapper.insertSelective(pe);
 	}