You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.3 KiB
Java
40 lines
1.3 KiB
Java
10 months ago
|
package com.glxp.api.controller.collect;
|
||
|
|
||
|
|
||
|
import com.glxp.api.common.res.BaseResponse;
|
||
|
import com.glxp.api.common.util.ResultVOUtils;
|
||
|
import com.glxp.api.controller.BaseController;
|
||
|
import com.glxp.api.entity.collect.IoCollectSet;
|
||
|
import com.glxp.api.entity.collect.RelCodeDetail;
|
||
|
import com.glxp.api.service.collect.RelCodeDetailService;
|
||
|
import lombok.extern.slf4j.Slf4j;
|
||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||
|
import org.springframework.web.bind.annotation.RestController;
|
||
|
|
||
|
import javax.annotation.Resource;
|
||
|
import javax.validation.Valid;
|
||
|
import java.util.List;
|
||
|
|
||
|
@Slf4j
|
||
|
@RestController
|
||
|
public class RelCodeDetailController extends BaseController {
|
||
|
|
||
|
@Resource
|
||
|
private RelCodeDetailService relCodeDetailService;
|
||
|
|
||
|
@GetMapping("/udiwms/relCode/detail/get")
|
||
|
public BaseResponse get(Long id) {
|
||
|
RelCodeDetail relCodeDetail = relCodeDetailService.getById(id);
|
||
|
return ResultVOUtils.success(relCodeDetail);
|
||
|
}
|
||
|
|
||
|
|
||
|
@PostMapping("/udiwms/relCode/detail/update")
|
||
|
public BaseResponse update(@RequestBody @Valid RelCodeDetail relCodeDetail) {
|
||
|
relCodeDetailService.updateById(relCodeDetail);
|
||
|
return ResultVOUtils.success("修改成功!");
|
||
|
}
|
||
|
}
|