查询客户nc编码

This commit is contained in:
zhaoqing
2026-06-02 11:42:35 +08:00
parent 3c25329187
commit 047335ccbb
9 changed files with 97 additions and 3 deletions
@@ -25,8 +25,7 @@ import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
import java.util.*;
@Api(tags = "用户中台管理-托运人管理")
@Slf4j
@@ -268,4 +267,25 @@ public class UserShipperAPI extends BaseController {
return getDataTable(list);
}
@Log(title = "托运人管理-查询", description ="查询托运人列表",businessType = BusinessType.INQUIRE)
@ApiOperation("查询托运人列表")
@GetMapping("/userShipperList2")
public TableDataInfo userShipperList2(UserShipperDTO userShipperDTO) {
//转换实体
UserShipperDO userShipperDO = userShipperAssember.toUserShipperDO(userShipperDTO);
List<UserShipperPo> list = userShipperApplicationService.userShipperList(userShipperDO);
return getDataTable(list);
}
@PostMapping("/getCustomerNcCodeBatch")
public AjaxResult getCustomerNcCodeBatch(@RequestBody List<Long> shipperIdList){
Map<Long, String> resultMap = new HashMap<>();
if (shipperIdList != null && !shipperIdList.isEmpty()) {
for (Long shipperId : shipperIdList) {
String ncCode = userApplicationService.getCustomerNcCode(shipperId);
resultMap.put(shipperId, ncCode);
}
}
return AjaxResult.success(resultMap);
}
}