MaterialBatchController.java 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package com.jsh.erp.controller.materialBatch;
  2. import com.alibaba.fastjson.JSONArray;
  3. import com.alibaba.fastjson.JSONObject;
  4. import com.jsh.erp.base.BaseController;
  5. import com.jsh.erp.base.TableDataInfo;
  6. import com.jsh.erp.datasource.entities.MaterialBatch;
  7. import com.jsh.erp.datasource.vo.MaterialExtendVo4List;
  8. import com.jsh.erp.query.LambdaQueryWrapperX;
  9. import com.jsh.erp.query.QueryWrapperX;
  10. import com.jsh.erp.service.MaterialBatchService;
  11. import com.jsh.erp.utils.BaseResponseInfo;
  12. import com.jsh.erp.utils.DateUtils;
  13. import com.jsh.erp.utils.StringUtil;
  14. import io.swagger.annotations.Api;
  15. import io.swagger.annotations.ApiOperation;
  16. import org.springframework.web.bind.annotation.GetMapping;
  17. import org.springframework.web.bind.annotation.RequestMapping;
  18. import org.springframework.web.bind.annotation.RequestParam;
  19. import org.springframework.web.bind.annotation.RestController;
  20. import javax.annotation.Resource;
  21. import javax.servlet.http.HttpServletRequest;
  22. import java.util.ArrayList;
  23. import java.util.List;
  24. @RestController
  25. @RequestMapping(value = "/materialBatch")
  26. @Api(tags = {"商品批次信息管理"})
  27. public class MaterialBatchController extends BaseController {
  28. @Resource
  29. private MaterialBatchService materialBatchService;
  30. @GetMapping(value = "/getDetailList")
  31. @ApiOperation(value = "商品批次信息管理")
  32. public TableDataInfo getDetailList(@RequestParam("materialId") Long materialId,
  33. HttpServletRequest request)throws Exception {
  34. startPage();
  35. List<MaterialBatch> list = materialBatchService.list(new LambdaQueryWrapperX<MaterialBatch>().eq(MaterialBatch::getMaterialId,materialId).eq(MaterialBatch::getDeleteFlag,"0"));
  36. return getDataTable(list);
  37. }
  38. }