Browse Source

审核BUG修复

anderx 1 year ago
parent
commit
d4f99be1bb

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

@@ -130,7 +130,11 @@
     </set>
     where prid = #{prid}
   </update>
-
+  <update id="updateStatusByPrid">
+    update public_examine
+    set status= #{status,jdbcType=INTEGER}
+    where prid = #{id,jdbcType=INTEGER}
+  </update>
 
 
   <select id="selectByPrid" parameterType="java.lang.Integer" resultMap="BaseResultMap">

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

@@ -950,7 +950,7 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
 						PublicExamine newp=new PublicExamine();
 						newp.setId(pe.getId());
 						newp.setStatus(1);
-						publicExamineMapper.updateByPrimaryKey(newp);
+						publicExamineMapper.updateByPrimaryKeySelective(newp);
 						x++;
 					}else {
 						if (pe.getStatus()==1){