物资字典参数设置,单据类型修改
parent
f3f717cf17
commit
1e82f37f7f
@ -0,0 +1,48 @@
|
||||
package com.glxp.api.controller.basic;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.glxp.api.annotation.AuthRuleAnnotation;
|
||||
import com.glxp.api.annotation.Log;
|
||||
import com.glxp.api.common.res.BaseResponse;
|
||||
import com.glxp.api.common.util.ResultVOUtils;
|
||||
import com.glxp.api.constant.BusinessType;
|
||||
import com.glxp.api.entity.basic.BasicProductSetEntity;
|
||||
import com.glxp.api.req.basic.FilterBasicProductSetrequest;
|
||||
import com.glxp.api.res.PageSimpleResponse;
|
||||
import com.glxp.api.service.basic.BasicProductSetService;
|
||||
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 java.util.List;
|
||||
|
||||
@RestController
|
||||
public class BasicProductSetController {
|
||||
|
||||
@Resource
|
||||
BasicProductSetService basicProductSetService;
|
||||
|
||||
|
||||
@AuthRuleAnnotation("")
|
||||
@GetMapping("/spms/basicProduct/setup/filter")
|
||||
public BaseResponse filterSetUps(FilterBasicProductSetrequest filterBasicProductSetrequest) {
|
||||
List<BasicProductSetEntity> basicProductSetEntities = basicProductSetService.filterSetup(filterBasicProductSetrequest);
|
||||
PageInfo<BasicProductSetEntity> pageInfo;
|
||||
pageInfo = new PageInfo<>(basicProductSetEntities);
|
||||
PageSimpleResponse<BasicProductSetEntity> pageSimpleResponse = new PageSimpleResponse<>();
|
||||
pageSimpleResponse.setTotal(pageInfo.getTotal());
|
||||
pageSimpleResponse.setList(basicProductSetEntities);
|
||||
return ResultVOUtils.success(pageSimpleResponse);
|
||||
}
|
||||
|
||||
@AuthRuleAnnotation("")
|
||||
@PostMapping("/spms/basicProduct/setup/modify")
|
||||
@Log(title = "单据管理", businessType = BusinessType.UPDATE)
|
||||
public BaseResponse modifySetup(@RequestBody BasicProductSetEntity basicProductSetEntity) {
|
||||
basicProductSetService.updateSetup(basicProductSetEntity);
|
||||
return ResultVOUtils.success("修改成功");
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue