|
@ -6,6 +6,8 @@ import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
|
|
import com.epmet.commons.tools.validator.group.DefaultGroup; |
|
|
import com.epmet.commons.tools.validator.group.DefaultGroup; |
|
|
|
|
|
import com.epmet.dto.CustomerMpDTO; |
|
|
|
|
|
import com.epmet.dto.PaCustomerDTO; |
|
|
import com.epmet.dto.form.*; |
|
|
import com.epmet.dto.form.*; |
|
|
import com.epmet.dto.result.*; |
|
|
import com.epmet.dto.result.*; |
|
|
import com.epmet.service.*; |
|
|
import com.epmet.service.*; |
|
@ -35,6 +37,12 @@ public class PaCustomerController { |
|
|
@Autowired |
|
|
@Autowired |
|
|
private CustomerMpService customerMpService; |
|
|
private CustomerMpService customerMpService; |
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("{id}") |
|
|
|
|
|
public Result<PaCustomerDTO> get(@PathVariable("id") String id){ |
|
|
|
|
|
PaCustomerDTO data = paCustomerService.get(id); |
|
|
|
|
|
return new Result<PaCustomerDTO>().ok(data); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @param formDTO |
|
|
* @param formDTO |
|
|
* @return |
|
|
* @return |
|
|