| | |
| | | import org.slf4j.Logger;
|
| | | import org.slf4j.LoggerFactory;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.validation.annotation.Validated;
|
| | | import org.springframework.web.bind.annotation.CrossOrigin;
|
| | | import org.springframework.web.bind.annotation.GetMapping;
|
| | | import org.springframework.web.bind.annotation.PostMapping;
|
| | |
| | | import com.qianwen.mdc.mapper.MachineCountryMapper;
|
| | | import com.qianwen.mdc.service.account.MachineAccountAddService;
|
| | | import com.qianwen.mdc.service.usedepartment.UseDepartmentService;
|
| | | import com.qianwen.mdc.vallidate.AddGroup;
|
| | |
|
| | | /**
|
| | | * 台账新增控制器
|
| | |
| | |
|
| | | @PostMapping(value = "/create")
|
| | | public OpResult<Void> create(@RequestHeader(value = "mdc-token", defaultValue = "") String token,
|
| | | @RequestBody MachineAccountEditDTO dto, HttpServletRequest request) {
|
| | | @Validated(value = {AddGroup.class}) @RequestBody MachineAccountEditDTO dto, HttpServletRequest request) {
|
| | |
|
| | | try {
|
| | | // accountTokenService.checkToken(token);
|