|
|
@ -1,7 +1,9 @@ |
|
|
|
package com.epmet.plugin.power.modules.axis.controller; |
|
|
|
|
|
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
|
import com.epmet.commons.tools.aop.NoRepeatSubmit; |
|
|
|
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.Result; |
|
|
|
import com.epmet.commons.tools.validator.AssertUtils; |
|
|
@ -59,8 +61,9 @@ public class PowerAxisLeaderController { |
|
|
|
|
|
|
|
@NoRepeatSubmit |
|
|
|
@PostMapping("save") |
|
|
|
public Result save(@RequestBody PowerAxisLeaderDTO dto){ |
|
|
|
public Result save(@RequestBody PowerAxisLeaderDTO dto, @LoginUser TokenDto tokenDto) { |
|
|
|
//效验数据
|
|
|
|
dto.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|
|
|
powerAxisLeaderService.save(dto); |
|
|
|
return new Result(); |
|
|
|