Browse Source

任务状态BUG修复

anderx 7 years ago
parent
commit
56e6e0cdfe

+ 1 - 0
src/main/java/com/goafanti/common/mapper/TOrderNewMapper.xml

@@ -1137,6 +1137,7 @@
   	</if>
   	<if test="specially == 4">
   	and a.process_status in (4,5,6)
+  	and a.order_status not in(5,7)
   	</if>
   	<if test="specially == 5">
   	and c.department_id=(select department_id from admin where  id= #{aid,jdbcType=VARCHAR})

+ 2 - 2
src/main/java/com/goafanti/common/mapper/TOrderTaskMapper.xml

@@ -668,7 +668,7 @@
     left join admin d on a.task_receiver=d.id
     left join t_order_new e on a.order_no=e.order_no
     left join user f on e.buyer_id=f.id
-    where e.delete_sign=0 
+    where e.delete_sign=0  and e.order_status not in (5,7)
     <if test="specially == 0">
     and a.task_receiver= #{aid,jdbcType=VARCHAR}
     and a.commodity_quantity =1
@@ -709,7 +709,7 @@
   	from t_order_task a 
     left join admin d on a.task_receiver=d.id
     left join t_order_new e on a.order_no=e.order_no
-    where e.delete_sign=0 
+    where e.delete_sign=0  and e.order_status not in (5,7)
     <if test="specially == 0">
     and a.task_receiver= #{aid,jdbcType=VARCHAR}
     and a.commodity_quantity =1

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

@@ -177,6 +177,7 @@ public class OrderProjectServiceImpl extends BaseMybatisDao<TOrderTaskMapper> im
 		if (task2.getSuperId()!=null) {//是否有父项目
 			TOrderTask task3 =tOrderTaskMapper.selectBySuperId(task2.getSuperId());
 			task3.setId(Integer.valueOf(task2.getSuperId()));
+			task3.setSuperId(null);
 			tOrderTaskMapper.updateByPrimaryKeySelective(task3);
 			TOrderTask task4 = tOrderTaskMapper.selectByPrimaryKey(Integer.valueOf(task2.getSuperId()));
 			meanwhileUpdateOrder(task4);