| | |
| | | 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;
|
| | |
|
| | | /**
|
| | | * 设备台账编辑 控制器
|
| | |
| | |
|
| | | @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();
|