|
@@ -137,6 +137,22 @@ public class SupplierController extends BaseController {
|
|
|
return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
|
|
|
}
|
|
|
|
|
|
+ @GetMapping(value = "/checkIsTelephoneAndTypeExist")
|
|
|
+ @ApiOperation(value = "检查手机号码和类型是否存在")
|
|
|
+ public String checkIsTelephoneAndTypeExist(@RequestParam Long id,
|
|
|
+ @RequestParam(value ="telephone", required = false) String telephone,
|
|
|
+ @RequestParam(value ="type") String type,
|
|
|
+ HttpServletRequest request){
|
|
|
+ Map<String, Object> objectMap = new HashMap<>();
|
|
|
+ int exist = supplierService.checkIsTelephoneAndTypeExist(id, telephone, type);
|
|
|
+ if (exist > 0) {
|
|
|
+ objectMap.put("status", true);
|
|
|
+ } else {
|
|
|
+ objectMap.put("status", false);
|
|
|
+ }
|
|
|
+ return returnJson(objectMap, ErpInfo.OK.name, ErpInfo.OK.code);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 查找客户信息-下拉框
|
|
|
* @param request
|