@@ -135,4 +135,6 @@ public interface UserLockReleaseMapper {
void updateReleaseUser(String orderNo);
+ void updateByAidAndUid(@Param("aid")String aid, @Param("uid")String uid);
+
}
@@ -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>
@@ -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();