|
@@ -10,6 +10,10 @@ import java.util.Map;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
+
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
import org.jeecg.common.system.vo.LoginUser;
|
|
|
import org.apache.shiro.SecurityUtils;
|
|
|
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
|
@@ -47,6 +51,7 @@ import com.alibaba.fastjson.JSON;
|
|
|
* @Version: V1.0
|
|
|
*/
|
|
|
@RestController
|
|
|
+@Api(tags="物资登记表")
|
|
|
@RequestMapping("/oa/syMaterial")
|
|
|
@Slf4j
|
|
|
public class SyMaterialController {
|
|
@@ -66,6 +71,8 @@ public class SyMaterialController {
|
|
|
* @param req
|
|
|
* @return
|
|
|
*/
|
|
|
+ @AutoLog(value = "物资登记表-分页列表查询")
|
|
|
+ @ApiOperation(value="物资登记表-分页列表查询", notes="物资登记表-分页列表查询")
|
|
|
@GetMapping(value = "/list")
|
|
|
public Result<?> queryPageList(SyMaterial syMaterial,
|
|
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
|
@@ -83,6 +90,8 @@ public class SyMaterialController {
|
|
|
* @param syMaterialPage
|
|
|
* @return
|
|
|
*/
|
|
|
+ @AutoLog(value = "物资登记表-添加")
|
|
|
+ @ApiOperation(value="物资登记表-添加", notes="物资登记表-添加")
|
|
|
@PostMapping(value = "/add")
|
|
|
public Result<?> add(@RequestBody SyMaterialPage syMaterialPage) {
|
|
|
SyMaterial syMaterial = new SyMaterial();
|
|
@@ -97,6 +106,8 @@ public class SyMaterialController {
|
|
|
* @param syMaterialPage
|
|
|
* @return
|
|
|
*/
|
|
|
+ @AutoLog(value = "物资登记表-编辑")
|
|
|
+ @ApiOperation(value="物资登记表-编辑", notes="物资登记表-编辑")
|
|
|
@PutMapping(value = "/edit")
|
|
|
public Result<?> edit(@RequestBody SyMaterialPage syMaterialPage) {
|
|
|
SyMaterial syMaterial = new SyMaterial();
|
|
@@ -111,6 +122,8 @@ public class SyMaterialController {
|
|
|
* @param id
|
|
|
* @return
|
|
|
*/
|
|
|
+ @AutoLog(value = "物资登记表-通过id删除")
|
|
|
+ @ApiOperation(value="物资登记表-通过id删除", notes="物资登记表-通过id删除")
|
|
|
@DeleteMapping(value = "/delete")
|
|
|
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
|
|
|
syMaterialService.delMain(id);
|
|
@@ -123,6 +136,8 @@ public class SyMaterialController {
|
|
|
* @param ids
|
|
|
* @return
|
|
|
*/
|
|
|
+ @AutoLog(value = "物资登记表-批量删除")
|
|
|
+ @ApiOperation(value="物资登记表-批量删除", notes="物资登记表-批量删除")
|
|
|
@DeleteMapping(value = "/deleteBatch")
|
|
|
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
|
|
this.syMaterialService.delBatchMain(Arrays.asList(ids.split(",")));
|
|
@@ -130,11 +145,13 @@ public class SyMaterialController {
|
|
|
}
|
|
|
|
|
|
|
|
|
- * 通过id查询
|
|
|
+ * 通过id查询主表
|
|
|
*
|
|
|
* @param id
|
|
|
* @return
|
|
|
*/
|
|
|
+ @AutoLog(value = "物资登记表-通过id查询")
|
|
|
+ @ApiOperation(value="物资登记表-通过id查询", notes="物资登记表-通过id查询")
|
|
|
@GetMapping(value = "/queryById")
|
|
|
public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
|
|
|
SyMaterial syMaterial = syMaterialService.getById(id);
|
|
@@ -142,22 +159,26 @@ public class SyMaterialController {
|
|
|
}
|
|
|
|
|
|
|
|
|
- * 通过id查询
|
|
|
+ * 通过id查询B表
|
|
|
*
|
|
|
* @param id
|
|
|
* @return
|
|
|
*/
|
|
|
+ @AutoLog(value = "物资登记表-通过id查询B表")
|
|
|
+ @ApiOperation(value="物资登记表-通过id查询B表", notes="物资登记表-通过id查询B表")
|
|
|
@GetMapping(value = "/querySyMaterialBByMainId")
|
|
|
public Result<?> querySyMaterialBListByMainId(@RequestParam(name="id",required=true) String id) {
|
|
|
List<SyMaterialB> syMaterialBList = syMaterialBService.selectByMainId(id);
|
|
|
return Result.ok(syMaterialBList);
|
|
|
}
|
|
|
|
|
|
- * 通过id查询
|
|
|
+ * 通过id查询C表
|
|
|
*
|
|
|
* @param id
|
|
|
* @return
|
|
|
*/
|
|
|
+ @AutoLog(value = "物资登记表-通过id查询C表")
|
|
|
+ @ApiOperation(value="物资登记表-通过id查询C表", notes="物资登记表-通过id查询C表")
|
|
|
@GetMapping(value = "/querySyMaterialCByMainId")
|
|
|
public Result<?> querySyMaterialCListByMainId(@RequestParam(name="id",required=true) String id) {
|
|
|
List<SyMaterialC> syMaterialCList = syMaterialCService.selectByMainId(id);
|