| | |
| | | import org.springframework.web.bind.annotation.RestController;
|
| | |
|
| | | import com.qianwen.mdc.common.OpResult;
|
| | | import com.qianwen.mdc.dto.IdsDTO;
|
| | | import com.qianwen.mdc.dto.account.MachineAccountEditDTO;
|
| | | import com.qianwen.mdc.service.account.MachineAccountEditService;
|
| | |
|
| | | /**
|
| | | * |
| | | * 设备台账编辑 控制器
|
| | | */
|
| | | @RestController
|
| | | @CrossOrigin
|
| | |
| | |
|
| | | @RequestMapping(value = "/delete", method = RequestMethod.POST)
|
| | | public OpResult<Void> delete(@RequestHeader(value = "mdc-token", defaultValue = "") String token,
|
| | | @RequestParam List<Integer> ids,HttpServletRequest request) {
|
| | | @RequestBody IdsDTO dto,HttpServletRequest request) {
|
| | |
|
| | | try {
|
| | | //accountTokenService.checkToken(token);
|
| | |
|
| | | accountEditService.remove(ids);
|
| | | accountEditService.remove(dto.getIds());
|
| | | }catch(Exception ex) {
|
| | | logger.error("修改台账错误",ex);
|
| | | return OpResult.fail(ex.getMessage());
|