Browse Source

转交BUG修复

anderx 2 years ago
parent
commit
3f54d84fa4

+ 2 - 1
src/main/java/com/goafanti/common/dao/OrderExamineMapper.java

@@ -112,7 +112,8 @@ public interface OrderExamineMapper {
      * @param transferId
      * @param type 0咨询师 1经理 2咨询师转交经理 3经理转交咨询师
      */
-	void updateDimissionTransfer(@Param("aid")String aid, @Param("transferId")String transferId, @Param("type")Integer type);
+	void updateDimissionTransfer(@Param("aid")String aid, @Param("transferId")String transferId, @Param("type")Integer type,
+                                 @Param("orderNo") String orderNo);
 
     /**
      * 删除变更更审核人

+ 3 - 3
src/main/java/com/goafanti/common/mapper/OrderExamineMapper.xml

@@ -302,7 +302,8 @@
     where id = #{id,jdbcType=INTEGER}
   </update>
   <update id="updateByOrderNoAndAid">
-  update order_examine set status=1 where aid= #{aid} and order_no= #{orderNo} and type= #{type}
+  update order_examine set status=1
+  where aid= #{aid} and order_no= #{orderNo} and type= #{type}
   </update>
   <select id="checkCountStatus" resultType="java.lang.Integer">
   select count(*) from order_examine where order_no = #{orderNo}
@@ -341,8 +342,7 @@
      <if test="type==4">
        ,type=0
      </if>
-
-	where status=0 and aid= #{aid}
+	where status=0 and aid= #{aid} and order_no=#{orderNo}
      <if test="type==0 or type==1">
        and type= #{type}
      </if>

+ 1 - 1
src/main/java/com/goafanti/order/service/impl/OrderProjectServiceImpl.java

@@ -191,7 +191,7 @@ public class OrderProjectServiceImpl extends BaseMybatisDao<TOrderTaskMapper> im
 	 */
 	private void pushTaskChange(String aid, String taskReceiverId,Integer type,String orderNo) {
 		if (type==1||type==3){
-			orderExamineMapper.updateDimissionTransfer(aid,taskReceiverId,null);
+			orderExamineMapper.updateDimissionTransfer(aid,taskReceiverId,null,orderNo);
 		}else if (type==2){
 			OrderExamine o=new OrderExamine();
 			o.setAid(taskReceiverId);