feat:购方

release
gongquanlin 2 years ago
parent 4b08be4735
commit 2c4bbbcd65
  1. 2
      order-management-base-service/src/main/java/com/dxhy/order/baseservice/module/buyer/controller/BuyerController.java
  2. 1
      order-management-base-service/src/main/java/com/dxhy/order/baseservice/module/buyer/service/impl/BuyerServiceImpl.java

@ -293,7 +293,7 @@ public class BuyerController {
*/
@PostMapping("/quote")
@ApiOperation(value = "引用购方信息", notes = "购房信息列表-引用购方信息")
public R quote(@RequestParam Map<String, Object> map) {
public R quote(@RequestBody Map<String, Object> map) {
String buyerName = (String) map.get("buyerName"); // 购方名称
String buyerCode = (String) map.get("buyerCode"); // 购方编码
if (StringUtils.isEmpty(buyerName) && StringUtils.isEmpty(buyerCode)) {

@ -788,6 +788,7 @@ public class BuyerServiceImpl implements BuyerService {
return R.error("此购方已经被引用");
}
// 去集团库查询购方信息,集团库在入库时候销方税号为-1
buyer = buyerMapper.selectBuyerByCodeOrNameAndNsrsbh(buyerName, buyerCode, "-1");
if (buyer == null) {
return R.error("未找到购方信息");

Loading…
Cancel
Save