|
|
|
@ -12,6 +12,7 @@ import com.dxhy.order.baseservice.config.BaseServiceConfig; |
|
|
|
|
import com.dxhy.order.baseservice.module.buyer.model.BuyerEntity; |
|
|
|
|
import com.dxhy.order.baseservice.module.buyer.service.BuyerService; |
|
|
|
|
import com.dxhy.order.baseservice.module.commodity.model.CommodityCodeEntity; |
|
|
|
|
import com.dxhy.order.baseservice.module.groupmanagement.dao.GroupManagementMapper; |
|
|
|
|
import com.dxhy.order.baseservice.module.taxclass.dao.TaxClassCodeMapper; |
|
|
|
|
import com.dxhy.order.baseservice.module.thirdservice.simsback.service.SimsBackService; |
|
|
|
|
import com.dxhy.order.baseservice.module.thirdservice.user.model.DeptEntity; |
|
|
|
@ -21,6 +22,7 @@ import com.dxhy.order.constant.OrderInfoContentEnum; |
|
|
|
|
import com.dxhy.order.constant.OrderInfoEnum; |
|
|
|
|
import com.dxhy.order.constant.OrderManagementConstant; |
|
|
|
|
import com.dxhy.order.consumer.dao.GroupCommodityCodeMapper; |
|
|
|
|
import com.dxhy.order.consumer.dao.GsClientMapper; |
|
|
|
|
import com.dxhy.order.consumer.dao.OrderBatchRequestMapper; |
|
|
|
|
import com.dxhy.order.consumer.dao.OrderProcessInfoMapper; |
|
|
|
|
import com.dxhy.order.consumer.model.OderDetailInfo; |
|
|
|
@ -164,6 +166,12 @@ public class OrderInfoServiceImpl implements OrderInfoService { |
|
|
|
|
@Resource |
|
|
|
|
private OrderBatchRequestMapper orderBatchRequestMapper; |
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
private GroupManagementMapper groupManagementMapper; |
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
private GsClientMapper gsClientMapper; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public PageUtils selectOrderInfo(Map<String, Object> map, List<String> shList, List<String> entList) { |
|
|
|
|
return orderProcessService.selectOrderInfo(map, shList, entList); |
|
|
|
@ -1920,6 +1928,31 @@ public class OrderInfoServiceImpl implements OrderInfoService { |
|
|
|
|
return R.ok(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
@Transactional(readOnly = true) |
|
|
|
|
public Boolean checkInvoiceRemarksFlag(String xfnsrsbh, String ghfId) { |
|
|
|
|
log.info("判断内部关联交易填写备注,xfnsrsbh:{},ghfId:{}",xfnsrsbh, ghfId); |
|
|
|
|
if (StringUtils.isBlank(xfnsrsbh)) { |
|
|
|
|
return Boolean.FALSE; |
|
|
|
|
} |
|
|
|
|
if (StringUtils.isBlank(ghfId)) { |
|
|
|
|
return Boolean.FALSE; |
|
|
|
|
} |
|
|
|
|
if (groupManagementMapper.countEntIdNumByXfnsrsbh(xfnsrsbh) <= 1) { |
|
|
|
|
return Boolean.FALSE; |
|
|
|
|
} |
|
|
|
|
if (ghfId.length()<=6) { |
|
|
|
|
return Boolean.FALSE; |
|
|
|
|
} |
|
|
|
|
if (!"000060".equals(ghfId.substring(0,6))) { |
|
|
|
|
return Boolean.FALSE; |
|
|
|
|
} |
|
|
|
|
if (gsClientMapper.countGsdm(ghfId.replace("000060","")) == 0) { |
|
|
|
|
return Boolean.FALSE; |
|
|
|
|
} |
|
|
|
|
return Boolean.TRUE; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void completeCommodityMessageBySpid(OrderItemInfo item, CommodityCodeEntity commodity) { |
|
|
|
|
//商品编码
|
|
|
|
|
item.setSpbm(commodity.getSpbm()); |
|
|
|
|