|
|
|
@ -12,6 +12,8 @@ import com.glxp.sale.common.res.BaseResponse;
|
|
|
|
|
import com.glxp.sale.common.util.ResultVOUtils;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
@ -37,8 +39,8 @@ public class SupContactController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("salewarehouse/customerContact/add")
|
|
|
|
|
public BaseResponse addContact(CustomerContactEntity customerContactEntity) {
|
|
|
|
|
@PostMapping("salewarehouse/customerContact/add")
|
|
|
|
|
public BaseResponse addContact(@RequestBody CustomerContactEntity customerContactEntity) {
|
|
|
|
|
|
|
|
|
|
boolean b = customerContactService.insertCustomerContact(customerContactEntity);
|
|
|
|
|
if (b)
|
|
|
|
@ -50,8 +52,8 @@ public class SupContactController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("salewarehouse/customerContact/delete")
|
|
|
|
|
public BaseResponse deleteContact(DeleteRequest deleteRequest) {
|
|
|
|
|
@PostMapping("salewarehouse/customerContact/delete")
|
|
|
|
|
public BaseResponse deleteContact(@RequestBody DeleteRequest deleteRequest) {
|
|
|
|
|
boolean b = customerContactService.deleteById(Long.parseLong(deleteRequest.getId()));
|
|
|
|
|
if (b)
|
|
|
|
|
return ResultVOUtils.success("删除成功");
|
|
|
|
|