yangys
2024-03-07 55bb7e09cc5b7eb1de77f128db0e4071a9a8df88
mdc-parent/mdc-show/src/main/java/com/qianwen/mdc/controller/account/MachineAccountEditController.java
@@ -1,25 +1,24 @@
package com.qianwen.mdc.controller.account;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
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.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
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;
import com.qianwen.mdc.vallidate.UpdateGroup;
/**
 * 设备台账编辑 控制器
@@ -34,7 +33,7 @@
   
    @PostMapping(value = "/update")
    public OpResult<Void> update(@RequestHeader(value = "mdc-token", defaultValue = "") String token,
           @RequestBody MachineAccountEditDTO dto, HttpServletRequest request) {
          @Validated(value = {UpdateGroup.class}) @RequestBody MachineAccountEditDTO dto, HttpServletRequest request) {
        //TODO checktoken
       /*
        JSONObject jsonResult = new JSONObject();