Commit a105918f by 王祖波

清除建联逻辑

parent 7c25782e
......@@ -11,6 +11,7 @@ import com.gic.haoban.manage.service.service.contact.ContactLogService;
import com.gic.haoban.manage.service.service.contact.ContactOrderService;
import com.gic.order.api.dto.resp.OrderInfoResp;
import com.gic.order.api.service.member.MemberOrderReadApiService;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
......@@ -39,8 +40,9 @@ public class ContactOrderApiServiceImpl implements ContactOrderApiService {
return ServiceResponse.success();
}
OrderInfoResp result = serviceResponse.getResult();
boolean clearFlag = CollectionUtils.isNotEmpty(result.getOrderItems()) && result.getPaidAmount() > 0;
boolean contactOrder = contactOrderService.saveContactOrder(result);
if (contactOrder) {
if (clearFlag || contactOrder) {
contactLogService.clearContactLog(memberId, 1,"");
}
return ServiceResponse.success();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment