anderx лет назад: 5
Родитель
Сommit
59e5fbe8d6

+ 2 - 0
src/main/java/com/goafanti/common/dao/UserLockReleaseMapper.java

@@ -135,4 +135,6 @@ public interface UserLockReleaseMapper {
 
 	void updateReleaseUser(String orderNo);
 
+	void updateByAidAndUid(@Param("aid")String aid, @Param("uid")String uid);
+
 }

+ 5 - 0
src/main/java/com/goafanti/common/mapper/UserLockReleaseMapper.xml

@@ -513,4 +513,9 @@
 	where a.order_no = #{orderNo} and a.buyer_id =b.id  
 	and a.buyer_id =c.uid and a.salesman_id =c.aid and c.follow_situation =5
   </update>
+  <update id="updateByAidAndUid">
+  	update user_lock_release 
+	set status =2,release_time =now()
+	where aid= #{aid} and uid= #{uid} and `type` =0
+  </update>
 </mapper>

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

@@ -189,6 +189,7 @@ public class OrderProjectServiceImpl extends BaseMybatisDao<TOrderTaskMapper> im
 				ulr.setAid(tn.getSalesmanId());
 				ulr.setStatus(0);
 				ulr.setLockTime(date);
+				userLockReleaseMapper.updateByAidAndUid(tn.getSalesmanId(),tn.getBuyerId());
 				userLockReleaseMapper.insertSelective(ulr);
 			}
 				UserBusiness ub=new UserBusiness();