|
@ -17,9 +17,7 @@ |
|
|
|
|
|
|
|
|
package com.epmet.controller; |
|
|
package com.epmet.controller; |
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
|
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
|
|
|
import com.epmet.commons.tools.utils.ExcelUtils; |
|
|
import com.epmet.commons.tools.utils.ExcelUtils; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.validator.AssertUtils; |
|
|
import com.epmet.commons.tools.validator.AssertUtils; |
|
@ -32,6 +30,7 @@ import com.epmet.dto.form.CustomerFormQueryDTO; |
|
|
import com.epmet.dto.result.CustomerFormResultDTO; |
|
|
import com.epmet.dto.result.CustomerFormResultDTO; |
|
|
import com.epmet.excel.IcFormExcel; |
|
|
import com.epmet.excel.IcFormExcel; |
|
|
import com.epmet.service.IcFormService; |
|
|
import com.epmet.service.IcFormService; |
|
|
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
@ -105,8 +104,10 @@ public class IcFormController { |
|
|
* @date 2021/10/26 2:40 下午 |
|
|
* @date 2021/10/26 2:40 下午 |
|
|
*/ |
|
|
*/ |
|
|
@PostMapping("getcustomerform") |
|
|
@PostMapping("getcustomerform") |
|
|
public Result<CustomerFormResultDTO> getCustomerForm(@LoginUser TokenDto tokenDto, @RequestBody CustomerFormQueryDTO formDto){ |
|
|
public Result<CustomerFormResultDTO> getCustomerForm(@RequestHeader String customerId, @RequestBody CustomerFormQueryDTO formDto){ |
|
|
formDto.setCustomerId(tokenDto.getCustomerId()); |
|
|
if (StringUtils.isBlank(formDto.getCustomerId())){ |
|
|
|
|
|
formDto.setCustomerId(customerId); |
|
|
|
|
|
} |
|
|
ValidatorUtils.validateEntity(formDto,CustomerFormQueryDTO.AddUserInternalGroup.class); |
|
|
ValidatorUtils.validateEntity(formDto,CustomerFormQueryDTO.AddUserInternalGroup.class); |
|
|
return new Result<CustomerFormResultDTO>().ok(icFormService.getCustomerForm(formDto)); |
|
|
return new Result<CustomerFormResultDTO>().ok(icFormService.getCustomerForm(formDto)); |
|
|
|
|
|
|
|
|