commit
5be41793ed
|
@ -15,6 +15,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.security.PermitAll;
|
||||
import javax.validation.Valid;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -46,7 +47,7 @@ public class FinanceController {
|
|||
* @param param
|
||||
* @return
|
||||
*/
|
||||
|
||||
@PermitAll
|
||||
@GetMapping("/getIncomeAndTax")
|
||||
public CommonResult<List<FinanceVO>> getIncomeAndTax(@Valid @RequestBody IncomeAndTaxParam param) {
|
||||
return CommonResult.success(financeService.getIncomeAndTax(param));
|
||||
|
|
|
@ -35,8 +35,6 @@ public class FinanceServiceImpl implements FinanceService {
|
|||
public List<FinanceVO> getIncomeAndTax(IncomeAndTaxParam param) {
|
||||
String[] split = param.getCreditCodes().split(",");
|
||||
List<FinanceBO> financeBOList = financeMapper.getIncomeAndTax(Arrays.asList(split), param.getYear());
|
||||
List<FinanceVO> financeVOList = new ArrayList<>();
|
||||
BeanUtils.copyProperties(financeBOList, financeVOList);
|
||||
return financeVOList;
|
||||
return BeanUtils.toBean(financeBOList, FinanceVO.class);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue