¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.controller; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | import java.io.IOException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLDecoder; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.cms.entity.CuttingInbound; |
| | | import org.jeecg.modules.cms.entity.CuttingInboundDetail; |
| | | import org.jeecg.modules.cms.service.ICuttingInboundDetailService; |
| | | import org.jeecg.modules.cms.service.ICuttingInboundService; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import org.jeecgframework.poi.excel.ExcelImportUtil; |
| | | import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
| | | import org.jeecgframework.poi.excel.entity.ExportParams; |
| | | import org.jeecgframework.poi.excel.entity.ImportParams; |
| | | import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import org.springframework.web.multipart.MultipartHttpServletRequest; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | import com.alibaba.fastjson.JSON; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | |
| | | /** |
| | | * @Description: åå
·å
¥åºå |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="åå
·å
¥åºå") |
| | | @RestController |
| | | @RequestMapping("/cms/cuttingInbound") |
| | | @Slf4j |
| | | public class CuttingInboundController extends JeecgController<CuttingInbound, ICuttingInboundService> { |
| | | @Autowired |
| | | private ICuttingInboundService cuttingInboundService; |
| | | |
| | | @Autowired |
| | | private ICuttingInboundDetailService cuttingInboundDetailService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param cuttingInbound |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "åå
·å
¥åºå-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="åå
·å
¥åºå-å页å表æ¥è¯¢", notes="åå
·å
¥åºå-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<CuttingInbound>> queryPageList(CuttingInbound cuttingInbound, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<CuttingInbound> queryWrapper = QueryGenerator.initQueryWrapper(cuttingInbound, req.getParameterMap()); |
| | | Page<CuttingInbound> page = new Page<CuttingInbound>(pageNo, pageSize); |
| | | IPage<CuttingInbound> pageList = cuttingInboundService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param jSONObject |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·å
¥åºå-æ·»å ") |
| | | @ApiOperation(value="åå
·å
¥åºå-æ·»å ", notes="åå
·å
¥åºå-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_inbound:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody JSONObject jSONObject) { |
| | | CuttingInbound cuttingInbound = jSONObject.toJavaObject(CuttingInbound.class); |
| | | cuttingInbound.setOrderStatus("1"); |
| | | cuttingInboundService.saveOrUpdate(cuttingInbound); |
| | | //å é¤åå
³èæ°æ® |
| | | List<CuttingInboundDetail> cuttingInboundDetailList = cuttingInboundDetailService.lambdaQuery().eq(CuttingInboundDetail::getOrderId,cuttingInbound.getId()).list(); |
| | | cuttingInboundDetailService.removeBatchByIds(cuttingInboundDetailList); |
| | | //æ·»å æ°å
³èæ°æ® |
| | | JSONArray jsonArray = jSONObject.getJSONArray("detailData"); |
| | | List<CuttingInboundDetail> list = jsonArray.toJavaList(CuttingInboundDetail.class); |
| | | for (int i = 0; i < list.size(); i++) { |
| | | CuttingInboundDetail temp = list.get(i); |
| | | temp.setOrderId(cuttingInbound.getId()); |
| | | cuttingInboundDetailService.save(temp); |
| | | } |
| | | return Result.OK("å
¥åºæåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param cuttingInbound |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·å
¥åºå-ç¼è¾") |
| | | @ApiOperation(value="åå
·å
¥åºå-ç¼è¾", notes="åå
·å
¥åºå-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_inbound:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody CuttingInbound cuttingInbound) { |
| | | cuttingInboundService.updateById(cuttingInbound); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·å
¥åºå-éè¿idå é¤") |
| | | @ApiOperation(value="åå
·å
¥åºå-éè¿idå é¤", notes="åå
·å
¥åºå-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_inbound:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | cuttingInboundService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·å
¥åºå-æ¹éå é¤") |
| | | @ApiOperation(value="åå
·å
¥åºå-æ¹éå é¤", notes="åå
·å
¥åºå-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_inbound:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.cuttingInboundService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "åå
·å
¥åºå-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="åå
·å
¥åºå-éè¿idæ¥è¯¢", notes="åå
·å
¥åºå-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<CuttingInbound> queryById(@RequestParam(name="id",required=true) String id) { |
| | | CuttingInbound cuttingInbound = cuttingInboundService.getById(id); |
| | | if(cuttingInbound==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(cuttingInbound); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param cuttingInbound |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_inbound:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, CuttingInbound cuttingInbound) { |
| | | return super.exportXls(request, cuttingInbound, CuttingInbound.class, "åå
·å
¥åºå"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("cms_cutting_inbound:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, CuttingInbound.class); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®å
¥åºidæ¥è¯¢å
¥åºæç» |
| | | * |
| | | * @param orderId |
| | | * @return |
| | | */ |
| | | @GetMapping("/detailList") |
| | | public Result<?> detailList(@RequestParam("orderId") String orderId) { |
| | | List<Map<String, Object>> list = cuttingInboundDetailService.detailList(orderId); |
| | | return Result.ok(list); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.controller; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | import java.io.IOException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLDecoder; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.cms.entity.CuttingInboundDetail; |
| | | import org.jeecg.modules.cms.service.ICuttingInboundDetailService; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import org.jeecgframework.poi.excel.ExcelImportUtil; |
| | | import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
| | | import org.jeecgframework.poi.excel.entity.ExportParams; |
| | | import org.jeecgframework.poi.excel.entity.ImportParams; |
| | | import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import org.springframework.web.multipart.MultipartHttpServletRequest; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | import com.alibaba.fastjson.JSON; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | |
| | | /** |
| | | * @Description: å
¥åºåæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="å
¥åºåæç»") |
| | | @RestController |
| | | @RequestMapping("/cms/cuttingInboundDetail") |
| | | @Slf4j |
| | | public class CuttingInboundDetailController extends JeecgController<CuttingInboundDetail, ICuttingInboundDetailService> { |
| | | @Autowired |
| | | private ICuttingInboundDetailService cuttingInboundDetailService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param cuttingInboundDetail |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "å
¥åºåæç»-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="å
¥åºåæç»-å页å表æ¥è¯¢", notes="å
¥åºåæç»-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<CuttingInboundDetail>> queryPageList(CuttingInboundDetail cuttingInboundDetail, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<CuttingInboundDetail> queryWrapper = QueryGenerator.initQueryWrapper(cuttingInboundDetail, req.getParameterMap()); |
| | | Page<CuttingInboundDetail> page = new Page<CuttingInboundDetail>(pageNo, pageSize); |
| | | IPage<CuttingInboundDetail> pageList = cuttingInboundDetailService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param cuttingInboundDetail |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "å
¥åºåæç»-æ·»å ") |
| | | @ApiOperation(value="å
¥åºåæç»-æ·»å ", notes="å
¥åºåæç»-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_inbound_detail:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody CuttingInboundDetail cuttingInboundDetail) { |
| | | cuttingInboundDetailService.save(cuttingInboundDetail); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param cuttingInboundDetail |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "å
¥åºåæç»-ç¼è¾") |
| | | @ApiOperation(value="å
¥åºåæç»-ç¼è¾", notes="å
¥åºåæç»-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_inbound_detail:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody CuttingInboundDetail cuttingInboundDetail) { |
| | | cuttingInboundDetailService.updateById(cuttingInboundDetail); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "å
¥åºåæç»-éè¿idå é¤") |
| | | @ApiOperation(value="å
¥åºåæç»-éè¿idå é¤", notes="å
¥åºåæç»-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_inbound_detail:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | cuttingInboundDetailService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "å
¥åºåæç»-æ¹éå é¤") |
| | | @ApiOperation(value="å
¥åºåæç»-æ¹éå é¤", notes="å
¥åºåæç»-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_inbound_detail:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.cuttingInboundDetailService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "å
¥åºåæç»-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="å
¥åºåæç»-éè¿idæ¥è¯¢", notes="å
¥åºåæç»-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<CuttingInboundDetail> queryById(@RequestParam(name="id",required=true) String id) { |
| | | CuttingInboundDetail cuttingInboundDetail = cuttingInboundDetailService.getById(id); |
| | | if(cuttingInboundDetail==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(cuttingInboundDetail); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param cuttingInboundDetail |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_inbound_detail:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, CuttingInboundDetail cuttingInboundDetail) { |
| | | return super.exportXls(request, cuttingInboundDetail, CuttingInboundDetail.class, "å
¥åºåæç»"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("cms_cutting_inbound_detail:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, CuttingInboundDetail.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.controller; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | import java.io.IOException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLDecoder; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.cms.entity.CuttingInboundInventory; |
| | | import org.jeecg.modules.cms.service.ICuttingInboundInventoryService; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import org.jeecgframework.poi.excel.ExcelImportUtil; |
| | | import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
| | | import org.jeecgframework.poi.excel.entity.ExportParams; |
| | | import org.jeecgframework.poi.excel.entity.ImportParams; |
| | | import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import org.springframework.web.multipart.MultipartHttpServletRequest; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | import com.alibaba.fastjson.JSON; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | |
| | | /** |
| | | * @Description: å
¥åºååºåå
³ç³» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="å
¥åºååºåå
³ç³»") |
| | | @RestController |
| | | @RequestMapping("/cms/cuttingInboundInventory") |
| | | @Slf4j |
| | | public class CuttingInboundInventoryController extends JeecgController<CuttingInboundInventory, ICuttingInboundInventoryService> { |
| | | @Autowired |
| | | private ICuttingInboundInventoryService cuttingInboundInventoryService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param cuttingInboundInventory |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "å
¥åºååºåå
³ç³»-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="å
¥åºååºåå
³ç³»-å页å表æ¥è¯¢", notes="å
¥åºååºåå
³ç³»-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<CuttingInboundInventory>> queryPageList(CuttingInboundInventory cuttingInboundInventory, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<CuttingInboundInventory> queryWrapper = QueryGenerator.initQueryWrapper(cuttingInboundInventory, req.getParameterMap()); |
| | | Page<CuttingInboundInventory> page = new Page<CuttingInboundInventory>(pageNo, pageSize); |
| | | IPage<CuttingInboundInventory> pageList = cuttingInboundInventoryService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param cuttingInboundInventory |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "å
¥åºååºåå
³ç³»-æ·»å ") |
| | | @ApiOperation(value="å
¥åºååºåå
³ç³»-æ·»å ", notes="å
¥åºååºåå
³ç³»-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_inbound_inventory:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody CuttingInboundInventory cuttingInboundInventory) { |
| | | cuttingInboundInventoryService.save(cuttingInboundInventory); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param cuttingInboundInventory |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "å
¥åºååºåå
³ç³»-ç¼è¾") |
| | | @ApiOperation(value="å
¥åºååºåå
³ç³»-ç¼è¾", notes="å
¥åºååºåå
³ç³»-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_inbound_inventory:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody CuttingInboundInventory cuttingInboundInventory) { |
| | | cuttingInboundInventoryService.updateById(cuttingInboundInventory); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "å
¥åºååºåå
³ç³»-éè¿idå é¤") |
| | | @ApiOperation(value="å
¥åºååºåå
³ç³»-éè¿idå é¤", notes="å
¥åºååºåå
³ç³»-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_inbound_inventory:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | cuttingInboundInventoryService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "å
¥åºååºåå
³ç³»-æ¹éå é¤") |
| | | @ApiOperation(value="å
¥åºååºåå
³ç³»-æ¹éå é¤", notes="å
¥åºååºåå
³ç³»-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_inbound_inventory:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.cuttingInboundInventoryService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "å
¥åºååºåå
³ç³»-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="å
¥åºååºåå
³ç³»-éè¿idæ¥è¯¢", notes="å
¥åºååºåå
³ç³»-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<CuttingInboundInventory> queryById(@RequestParam(name="id",required=true) String id) { |
| | | CuttingInboundInventory cuttingInboundInventory = cuttingInboundInventoryService.getById(id); |
| | | if(cuttingInboundInventory==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(cuttingInboundInventory); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param cuttingInboundInventory |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_inbound_inventory:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, CuttingInboundInventory cuttingInboundInventory) { |
| | | return super.exportXls(request, cuttingInboundInventory, CuttingInboundInventory.class, "å
¥åºååºåå
³ç³»"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("cms_cutting_inbound_inventory:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, CuttingInboundInventory.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.controller; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | import java.io.IOException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLDecoder; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.cms.entity.CuttingInventory; |
| | | import org.jeecg.modules.cms.service.ICuttingInventoryService; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import org.jeecgframework.poi.excel.ExcelImportUtil; |
| | | import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
| | | import org.jeecgframework.poi.excel.entity.ExportParams; |
| | | import org.jeecgframework.poi.excel.entity.ImportParams; |
| | | import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import org.springframework.web.multipart.MultipartHttpServletRequest; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | import com.alibaba.fastjson.JSON; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | |
| | | /** |
| | | * @Description: åå
·åºå |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="åå
·åºå") |
| | | @RestController |
| | | @RequestMapping("/cms/cuttingInventory") |
| | | @Slf4j |
| | | public class CuttingInventoryController extends JeecgController<CuttingInventory, ICuttingInventoryService> { |
| | | @Autowired |
| | | private ICuttingInventoryService cuttingInventoryService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param cuttingInventory |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "åå
·åºå-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="åå
·åºå-å页å表æ¥è¯¢", notes="åå
·åºå-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<CuttingInventory>> queryPageList(CuttingInventory cuttingInventory, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<CuttingInventory> queryWrapper = QueryGenerator.initQueryWrapper(cuttingInventory, req.getParameterMap()); |
| | | Page<CuttingInventory> page = new Page<CuttingInventory>(pageNo, pageSize); |
| | | IPage<CuttingInventory> pageList = cuttingInventoryService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param cuttingInventory |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·åºå-æ·»å ") |
| | | @ApiOperation(value="åå
·åºå-æ·»å ", notes="åå
·åºå-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_inventory:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody CuttingInventory cuttingInventory) { |
| | | cuttingInventoryService.save(cuttingInventory); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param cuttingInventory |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·åºå-ç¼è¾") |
| | | @ApiOperation(value="åå
·åºå-ç¼è¾", notes="åå
·åºå-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_inventory:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody CuttingInventory cuttingInventory) { |
| | | cuttingInventoryService.updateById(cuttingInventory); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·åºå-éè¿idå é¤") |
| | | @ApiOperation(value="åå
·åºå-éè¿idå é¤", notes="åå
·åºå-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_inventory:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | cuttingInventoryService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·åºå-æ¹éå é¤") |
| | | @ApiOperation(value="åå
·åºå-æ¹éå é¤", notes="åå
·åºå-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_inventory:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.cuttingInventoryService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "åå
·åºå-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="åå
·åºå-éè¿idæ¥è¯¢", notes="åå
·åºå-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<CuttingInventory> queryById(@RequestParam(name="id",required=true) String id) { |
| | | CuttingInventory cuttingInventory = cuttingInventoryService.getById(id); |
| | | if(cuttingInventory==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(cuttingInventory); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param cuttingInventory |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_inventory:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, CuttingInventory cuttingInventory) { |
| | | return super.exportXls(request, cuttingInventory, CuttingInventory.class, "åå
·åºå"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("cms_cutting_inventory:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, CuttingInventory.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.controller; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | import java.io.IOException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLDecoder; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.cms.entity.CuttingProperties; |
| | | import org.jeecg.modules.cms.service.ICuttingPropertiesService; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import org.jeecgframework.poi.excel.ExcelImportUtil; |
| | | import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
| | | import org.jeecgframework.poi.excel.entity.ExportParams; |
| | | import org.jeecgframework.poi.excel.entity.ImportParams; |
| | | import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import org.springframework.web.multipart.MultipartHttpServletRequest; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | import com.alibaba.fastjson.JSON; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | |
| | | /** |
| | | * @Description: åå
·æ©å±å±æ§ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="åå
·æ©å±å±æ§") |
| | | @RestController |
| | | @RequestMapping("/cms/cuttingProperties") |
| | | @Slf4j |
| | | public class CuttingPropertiesController extends JeecgController<CuttingProperties, ICuttingPropertiesService> { |
| | | @Autowired |
| | | private ICuttingPropertiesService cuttingPropertiesService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param cuttingProperties |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "åå
·æ©å±å±æ§-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="åå
·æ©å±å±æ§-å页å表æ¥è¯¢", notes="åå
·æ©å±å±æ§-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<CuttingProperties>> queryPageList(CuttingProperties cuttingProperties, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<CuttingProperties> queryWrapper = QueryGenerator.initQueryWrapper(cuttingProperties, req.getParameterMap()); |
| | | Page<CuttingProperties> page = new Page<CuttingProperties>(pageNo, pageSize); |
| | | IPage<CuttingProperties> pageList = cuttingPropertiesService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param cuttingProperties |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·æ©å±å±æ§-æ·»å ") |
| | | @ApiOperation(value="åå
·æ©å±å±æ§-æ·»å ", notes="åå
·æ©å±å±æ§-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_properties:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody CuttingProperties cuttingProperties) { |
| | | cuttingPropertiesService.save(cuttingProperties); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param cuttingProperties |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·æ©å±å±æ§-ç¼è¾") |
| | | @ApiOperation(value="åå
·æ©å±å±æ§-ç¼è¾", notes="åå
·æ©å±å±æ§-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_properties:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody CuttingProperties cuttingProperties) { |
| | | cuttingPropertiesService.updateById(cuttingProperties); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·æ©å±å±æ§-éè¿idå é¤") |
| | | @ApiOperation(value="åå
·æ©å±å±æ§-éè¿idå é¤", notes="åå
·æ©å±å±æ§-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_properties:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | cuttingPropertiesService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·æ©å±å±æ§-æ¹éå é¤") |
| | | @ApiOperation(value="åå
·æ©å±å±æ§-æ¹éå é¤", notes="åå
·æ©å±å±æ§-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_properties:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.cuttingPropertiesService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "åå
·æ©å±å±æ§-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="åå
·æ©å±å±æ§-éè¿idæ¥è¯¢", notes="åå
·æ©å±å±æ§-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<CuttingProperties> queryById(@RequestParam(name="id",required=true) String id) { |
| | | CuttingProperties cuttingProperties = cuttingPropertiesService.getById(id); |
| | | if(cuttingProperties==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(cuttingProperties); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param cuttingProperties |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_properties:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, CuttingProperties cuttingProperties) { |
| | | return super.exportXls(request, cuttingProperties, CuttingProperties.class, "åå
·æ©å±å±æ§"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("cms_cutting_properties:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, CuttingProperties.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.controller; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | import java.io.IOException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLDecoder; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.cms.entity.CuttingInbound; |
| | | import org.jeecg.modules.cms.entity.CuttingInboundDetail; |
| | | import org.jeecg.modules.cms.entity.CuttingReceive; |
| | | import org.jeecg.modules.cms.entity.CuttingReceiveDetail; |
| | | import org.jeecg.modules.cms.service.ICuttingReceiveDetailService; |
| | | import org.jeecg.modules.cms.service.ICuttingReceiveService; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import org.jeecgframework.poi.excel.ExcelImportUtil; |
| | | import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
| | | import org.jeecgframework.poi.excel.entity.ExportParams; |
| | | import org.jeecgframework.poi.excel.entity.ImportParams; |
| | | import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import org.springframework.web.multipart.MultipartHttpServletRequest; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | import com.alibaba.fastjson.JSON; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | |
| | | /** |
| | | * @Description: åå
·é¢ç¨å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="åå
·é¢ç¨å") |
| | | @RestController |
| | | @RequestMapping("/cms/cuttingReceive") |
| | | @Slf4j |
| | | public class CuttingReceiveController extends JeecgController<CuttingReceive, ICuttingReceiveService> { |
| | | @Autowired |
| | | private ICuttingReceiveService cuttingReceiveService; |
| | | |
| | | @Autowired |
| | | private ICuttingReceiveDetailService cuttingReceiveDetailService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param cuttingReceive |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "åå
·é¢ç¨å-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="åå
·é¢ç¨å-å页å表æ¥è¯¢", notes="åå
·é¢ç¨å-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<CuttingReceive>> queryPageList(CuttingReceive cuttingReceive, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<CuttingReceive> queryWrapper = QueryGenerator.initQueryWrapper(cuttingReceive, req.getParameterMap()); |
| | | Page<CuttingReceive> page = new Page<CuttingReceive>(pageNo, pageSize); |
| | | IPage<CuttingReceive> pageList = cuttingReceiveService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param jSONObject |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·é¢ç¨å-æ·»å ") |
| | | @ApiOperation(value="åå
·é¢ç¨å-æ·»å ", notes="åå
·é¢ç¨å-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_receive:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody JSONObject jSONObject) { |
| | | CuttingReceive cuttingReceive = jSONObject.toJavaObject(CuttingReceive.class); |
| | | cuttingReceive.setOrderStatus("1"); |
| | | cuttingReceiveService.saveOrUpdate(cuttingReceive); |
| | | //å é¤åå
³èæ°æ® |
| | | List<CuttingReceiveDetail> cuttingReceiveDetailList = cuttingReceiveDetailService.lambdaQuery().eq(CuttingReceiveDetail::getOrderId,cuttingReceive.getId()).list(); |
| | | cuttingReceiveDetailService.removeBatchByIds(cuttingReceiveDetailList); |
| | | //æ·»å æ°å
³èæ°æ® |
| | | JSONArray jsonArray = jSONObject.getJSONArray("detailData"); |
| | | List<CuttingReceiveDetail> list = jsonArray.toJavaList(CuttingReceiveDetail.class); |
| | | for (int i = 0; i < list.size(); i++) { |
| | | CuttingReceiveDetail temp = list.get(i); |
| | | temp.setOrderId(cuttingReceive.getId()); |
| | | cuttingReceiveDetailService.save(temp); |
| | | } |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param cuttingReceive |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·é¢ç¨å-ç¼è¾") |
| | | @ApiOperation(value="åå
·é¢ç¨å-ç¼è¾", notes="åå
·é¢ç¨å-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_receive:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody CuttingReceive cuttingReceive) { |
| | | cuttingReceiveService.updateById(cuttingReceive); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·é¢ç¨å-éè¿idå é¤") |
| | | @ApiOperation(value="åå
·é¢ç¨å-éè¿idå é¤", notes="åå
·é¢ç¨å-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_receive:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | cuttingReceiveService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·é¢ç¨å-æ¹éå é¤") |
| | | @ApiOperation(value="åå
·é¢ç¨å-æ¹éå é¤", notes="åå
·é¢ç¨å-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_receive:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.cuttingReceiveService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "åå
·é¢ç¨å-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="åå
·é¢ç¨å-éè¿idæ¥è¯¢", notes="åå
·é¢ç¨å-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<CuttingReceive> queryById(@RequestParam(name="id",required=true) String id) { |
| | | CuttingReceive cuttingReceive = cuttingReceiveService.getById(id); |
| | | if(cuttingReceive==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(cuttingReceive); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param cuttingReceive |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_receive:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, CuttingReceive cuttingReceive) { |
| | | return super.exportXls(request, cuttingReceive, CuttingReceive.class, "åå
·é¢ç¨å"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("cms_cutting_receive:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, CuttingReceive.class); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®é¢ç¨idæ¥è¯¢é¢ç¨æç» |
| | | * |
| | | * @param orderId |
| | | * @return |
| | | */ |
| | | @GetMapping("/detailList") |
| | | public Result<?> detailList(@RequestParam("orderId") String orderId) { |
| | | List<Map<String, Object>> list = cuttingReceiveDetailService.detailList(orderId); |
| | | return Result.ok(list); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.controller; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | import java.io.IOException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLDecoder; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.cms.entity.CuttingReceiveDetail; |
| | | import org.jeecg.modules.cms.service.ICuttingReceiveDetailService; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import org.jeecgframework.poi.excel.ExcelImportUtil; |
| | | import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
| | | import org.jeecgframework.poi.excel.entity.ExportParams; |
| | | import org.jeecgframework.poi.excel.entity.ImportParams; |
| | | import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import org.springframework.web.multipart.MultipartHttpServletRequest; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | import com.alibaba.fastjson.JSON; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | |
| | | /** |
| | | * @Description: é¢ç¨åæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="é¢ç¨åæç»") |
| | | @RestController |
| | | @RequestMapping("/cms/cuttingReceiveDetail") |
| | | @Slf4j |
| | | public class CuttingReceiveDetailController extends JeecgController<CuttingReceiveDetail, ICuttingReceiveDetailService> { |
| | | @Autowired |
| | | private ICuttingReceiveDetailService cuttingReceiveDetailService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param cuttingReceiveDetail |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "é¢ç¨åæç»-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="é¢ç¨åæç»-å页å表æ¥è¯¢", notes="é¢ç¨åæç»-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<CuttingReceiveDetail>> queryPageList(CuttingReceiveDetail cuttingReceiveDetail, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<CuttingReceiveDetail> queryWrapper = QueryGenerator.initQueryWrapper(cuttingReceiveDetail, req.getParameterMap()); |
| | | Page<CuttingReceiveDetail> page = new Page<CuttingReceiveDetail>(pageNo, pageSize); |
| | | IPage<CuttingReceiveDetail> pageList = cuttingReceiveDetailService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param cuttingReceiveDetail |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "é¢ç¨åæç»-æ·»å ") |
| | | @ApiOperation(value="é¢ç¨åæç»-æ·»å ", notes="é¢ç¨åæç»-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_receive_detail:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody CuttingReceiveDetail cuttingReceiveDetail) { |
| | | cuttingReceiveDetailService.save(cuttingReceiveDetail); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param cuttingReceiveDetail |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "é¢ç¨åæç»-ç¼è¾") |
| | | @ApiOperation(value="é¢ç¨åæç»-ç¼è¾", notes="é¢ç¨åæç»-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_receive_detail:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody CuttingReceiveDetail cuttingReceiveDetail) { |
| | | cuttingReceiveDetailService.updateById(cuttingReceiveDetail); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "é¢ç¨åæç»-éè¿idå é¤") |
| | | @ApiOperation(value="é¢ç¨åæç»-éè¿idå é¤", notes="é¢ç¨åæç»-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_receive_detail:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | cuttingReceiveDetailService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "é¢ç¨åæç»-æ¹éå é¤") |
| | | @ApiOperation(value="é¢ç¨åæç»-æ¹éå é¤", notes="é¢ç¨åæç»-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_receive_detail:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.cuttingReceiveDetailService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "é¢ç¨åæç»-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="é¢ç¨åæç»-éè¿idæ¥è¯¢", notes="é¢ç¨åæç»-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<CuttingReceiveDetail> queryById(@RequestParam(name="id",required=true) String id) { |
| | | CuttingReceiveDetail cuttingReceiveDetail = cuttingReceiveDetailService.getById(id); |
| | | if(cuttingReceiveDetail==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(cuttingReceiveDetail); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param cuttingReceiveDetail |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_receive_detail:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, CuttingReceiveDetail cuttingReceiveDetail) { |
| | | return super.exportXls(request, cuttingReceiveDetail, CuttingReceiveDetail.class, "é¢ç¨åæç»"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("cms_cutting_receive_detail:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, CuttingReceiveDetail.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.controller; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | import java.io.IOException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLDecoder; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.cms.entity.CuttingReceive; |
| | | import org.jeecg.modules.cms.entity.CuttingReceiveDetail; |
| | | import org.jeecg.modules.cms.entity.CuttingScrap; |
| | | import org.jeecg.modules.cms.entity.CuttingScrapDetail; |
| | | import org.jeecg.modules.cms.service.ICuttingScrapDetailService; |
| | | import org.jeecg.modules.cms.service.ICuttingScrapService; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import org.jeecgframework.poi.excel.ExcelImportUtil; |
| | | import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
| | | import org.jeecgframework.poi.excel.entity.ExportParams; |
| | | import org.jeecgframework.poi.excel.entity.ImportParams; |
| | | import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import org.springframework.web.multipart.MultipartHttpServletRequest; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | import com.alibaba.fastjson.JSON; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | |
| | | /** |
| | | * @Description: åå
·æ¥åº |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="åå
·æ¥åº") |
| | | @RestController |
| | | @RequestMapping("/cms/cuttingScrap") |
| | | @Slf4j |
| | | public class CuttingScrapController extends JeecgController<CuttingScrap, ICuttingScrapService> { |
| | | @Autowired |
| | | private ICuttingScrapService cuttingScrapService; |
| | | |
| | | @Autowired |
| | | private ICuttingScrapDetailService cuttingScrapDetailService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param cuttingScrap |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "åå
·æ¥åº-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="åå
·æ¥åº-å页å表æ¥è¯¢", notes="åå
·æ¥åº-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<CuttingScrap>> queryPageList(CuttingScrap cuttingScrap, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<CuttingScrap> queryWrapper = QueryGenerator.initQueryWrapper(cuttingScrap, req.getParameterMap()); |
| | | Page<CuttingScrap> page = new Page<CuttingScrap>(pageNo, pageSize); |
| | | IPage<CuttingScrap> pageList = cuttingScrapService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param jSONObject |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·æ¥åº-æ·»å ") |
| | | @ApiOperation(value="åå
·æ¥åº-æ·»å ", notes="åå
·æ¥åº-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_scrap:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody JSONObject jSONObject) { |
| | | CuttingScrap cuttingScrap = jSONObject.toJavaObject(CuttingScrap.class); |
| | | cuttingScrap.setOrderStatus("1"); |
| | | cuttingScrapService.saveOrUpdate(cuttingScrap); |
| | | //å é¤åå
³èæ°æ® |
| | | List<CuttingScrapDetail> cuttingScrapDetailList = cuttingScrapDetailService.lambdaQuery().eq(CuttingScrapDetail::getOrderId,cuttingScrap.getId()).list(); |
| | | cuttingScrapDetailService.removeBatchByIds(cuttingScrapDetailList); |
| | | //æ·»å æ°å
³èæ°æ® |
| | | JSONArray jsonArray = jSONObject.getJSONArray("detailData"); |
| | | List<CuttingScrapDetail> list = jsonArray.toJavaList(CuttingScrapDetail.class); |
| | | for (int i = 0; i < list.size(); i++) { |
| | | CuttingScrapDetail temp = list.get(i); |
| | | temp.setOrderId(cuttingScrap.getId()); |
| | | cuttingScrapDetailService.save(temp); |
| | | } |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param cuttingScrap |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·æ¥åº-ç¼è¾") |
| | | @ApiOperation(value="åå
·æ¥åº-ç¼è¾", notes="åå
·æ¥åº-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_scrap:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody CuttingScrap cuttingScrap) { |
| | | cuttingScrapService.updateById(cuttingScrap); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·æ¥åº-éè¿idå é¤") |
| | | @ApiOperation(value="åå
·æ¥åº-éè¿idå é¤", notes="åå
·æ¥åº-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_scrap:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | cuttingScrapService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·æ¥åº-æ¹éå é¤") |
| | | @ApiOperation(value="åå
·æ¥åº-æ¹éå é¤", notes="åå
·æ¥åº-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_scrap:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.cuttingScrapService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "åå
·æ¥åº-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="åå
·æ¥åº-éè¿idæ¥è¯¢", notes="åå
·æ¥åº-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<CuttingScrap> queryById(@RequestParam(name="id",required=true) String id) { |
| | | CuttingScrap cuttingScrap = cuttingScrapService.getById(id); |
| | | if(cuttingScrap==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(cuttingScrap); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param cuttingScrap |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_scrap:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, CuttingScrap cuttingScrap) { |
| | | return super.exportXls(request, cuttingScrap, CuttingScrap.class, "åå
·æ¥åº"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("cms_cutting_scrap:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, CuttingScrap.class); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®æ¥åºidæ¥è¯¢æ¥åºæç» |
| | | * |
| | | * @param orderId |
| | | * @return |
| | | */ |
| | | @GetMapping("/detailList") |
| | | public Result<?> detailList(@RequestParam("orderId") String orderId) { |
| | | List<Map<String, Object>> list = cuttingScrapDetailService.detailList(orderId); |
| | | return Result.ok(list); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.controller; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | import java.io.IOException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLDecoder; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.cms.entity.CuttingScrapDetail; |
| | | import org.jeecg.modules.cms.service.ICuttingScrapDetailService; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import org.jeecgframework.poi.excel.ExcelImportUtil; |
| | | import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
| | | import org.jeecgframework.poi.excel.entity.ExportParams; |
| | | import org.jeecgframework.poi.excel.entity.ImportParams; |
| | | import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import org.springframework.web.multipart.MultipartHttpServletRequest; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | import com.alibaba.fastjson.JSON; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | |
| | | /** |
| | | * @Description: åå
·æ¥åºæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="åå
·æ¥åºæç»") |
| | | @RestController |
| | | @RequestMapping("/cms/cuttingScrapDetail") |
| | | @Slf4j |
| | | public class CuttingScrapDetailController extends JeecgController<CuttingScrapDetail, ICuttingScrapDetailService> { |
| | | @Autowired |
| | | private ICuttingScrapDetailService cuttingScrapDetailService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param cuttingScrapDetail |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "åå
·æ¥åºæç»-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="åå
·æ¥åºæç»-å页å表æ¥è¯¢", notes="åå
·æ¥åºæç»-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<CuttingScrapDetail>> queryPageList(CuttingScrapDetail cuttingScrapDetail, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<CuttingScrapDetail> queryWrapper = QueryGenerator.initQueryWrapper(cuttingScrapDetail, req.getParameterMap()); |
| | | Page<CuttingScrapDetail> page = new Page<CuttingScrapDetail>(pageNo, pageSize); |
| | | IPage<CuttingScrapDetail> pageList = cuttingScrapDetailService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param cuttingScrapDetail |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·æ¥åºæç»-æ·»å ") |
| | | @ApiOperation(value="åå
·æ¥åºæç»-æ·»å ", notes="åå
·æ¥åºæç»-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_scrap_detail:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody CuttingScrapDetail cuttingScrapDetail) { |
| | | cuttingScrapDetailService.save(cuttingScrapDetail); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param cuttingScrapDetail |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·æ¥åºæç»-ç¼è¾") |
| | | @ApiOperation(value="åå
·æ¥åºæç»-ç¼è¾", notes="åå
·æ¥åºæç»-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_scrap_detail:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody CuttingScrapDetail cuttingScrapDetail) { |
| | | cuttingScrapDetailService.updateById(cuttingScrapDetail); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·æ¥åºæç»-éè¿idå é¤") |
| | | @ApiOperation(value="åå
·æ¥åºæç»-éè¿idå é¤", notes="åå
·æ¥åºæç»-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_scrap_detail:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | cuttingScrapDetailService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·æ¥åºæç»-æ¹éå é¤") |
| | | @ApiOperation(value="åå
·æ¥åºæç»-æ¹éå é¤", notes="åå
·æ¥åºæç»-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_scrap_detail:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.cuttingScrapDetailService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "åå
·æ¥åºæç»-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="åå
·æ¥åºæç»-éè¿idæ¥è¯¢", notes="åå
·æ¥åºæç»-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<CuttingScrapDetail> queryById(@RequestParam(name="id",required=true) String id) { |
| | | CuttingScrapDetail cuttingScrapDetail = cuttingScrapDetailService.getById(id); |
| | | if(cuttingScrapDetail==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(cuttingScrapDetail); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param cuttingScrapDetail |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_scrap_detail:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, CuttingScrapDetail cuttingScrapDetail) { |
| | | return super.exportXls(request, cuttingScrapDetail, CuttingScrapDetail.class, "åå
·æ¥åºæç»"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("cms_cutting_scrap_detail:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, CuttingScrapDetail.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.controller; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | import java.io.IOException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLDecoder; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.cms.entity.CuttingProperties; |
| | | import org.jeecg.modules.cms.entity.CuttingTool; |
| | | import org.jeecg.modules.cms.service.ICuttingPropertiesService; |
| | | import org.jeecg.modules.cms.service.ICuttingToolService; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import org.jeecgframework.poi.excel.ExcelImportUtil; |
| | | import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
| | | import org.jeecgframework.poi.excel.entity.ExportParams; |
| | | import org.jeecgframework.poi.excel.entity.ImportParams; |
| | | import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import org.springframework.web.multipart.MultipartHttpServletRequest; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | import com.alibaba.fastjson.JSON; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | |
| | | /** |
| | | * @Description: åå
·ä¿¡æ¯ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="åå
·ä¿¡æ¯") |
| | | @RestController |
| | | @RequestMapping("/cms/cuttingTool") |
| | | @Slf4j |
| | | public class CuttingToolController extends JeecgController<CuttingTool, ICuttingToolService> { |
| | | @Autowired |
| | | private ICuttingToolService cuttingToolService; |
| | | |
| | | @Autowired |
| | | private ICuttingPropertiesService cuttingPropertiesService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param cuttingTool |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "åå
·ä¿¡æ¯-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="åå
·ä¿¡æ¯-å页å表æ¥è¯¢", notes="åå
·ä¿¡æ¯-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<CuttingTool>> queryPageList(CuttingTool cuttingTool, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<CuttingTool> queryWrapper = QueryGenerator.initQueryWrapper(cuttingTool, req.getParameterMap()); |
| | | Page<CuttingTool> page = new Page<CuttingTool>(pageNo, pageSize); |
| | | IPage<CuttingTool> pageList = cuttingToolService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param cuttingTool |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·ä¿¡æ¯-æ·»å ") |
| | | @ApiOperation(value="åå
·ä¿¡æ¯-æ·»å ", notes="åå
·ä¿¡æ¯-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_tool:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody CuttingTool cuttingTool) { |
| | | cuttingToolService.save(cuttingTool); |
| | | List<CuttingProperties> cuttingPropertiesList = cuttingTool.getCuttingPropertiesList(); |
| | | for (CuttingProperties cuttingProperties : cuttingPropertiesList) { |
| | | cuttingProperties.setCuttingId(cuttingTool.getId()); |
| | | cuttingPropertiesService.save(cuttingProperties); |
| | | } |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param cuttingTool |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·ä¿¡æ¯-ç¼è¾") |
| | | @ApiOperation(value="åå
·ä¿¡æ¯-ç¼è¾", notes="åå
·ä¿¡æ¯-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_tool:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody CuttingTool cuttingTool) { |
| | | cuttingToolService.saveOrUpdate(cuttingTool); |
| | | List<String> deletePropertiesIds = cuttingTool.getDeletePropertiesIds(); |
| | | if (deletePropertiesIds != null) { |
| | | for (String deletePropertiesId : deletePropertiesIds) { |
| | | cuttingPropertiesService.removeById(deletePropertiesId); |
| | | } |
| | | } |
| | | List<CuttingProperties> cuttingPropertiesList = cuttingTool.getCuttingPropertiesList(); |
| | | for (CuttingProperties cuttingProperties : cuttingPropertiesList) { |
| | | cuttingProperties.setCuttingId(cuttingTool.getId()); |
| | | cuttingPropertiesService.saveOrUpdate(cuttingProperties); |
| | | } |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·ä¿¡æ¯-éè¿idå é¤") |
| | | @ApiOperation(value="åå
·ä¿¡æ¯-éè¿idå é¤", notes="åå
·ä¿¡æ¯-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_tool:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | cuttingToolService.removeById(id); |
| | | cuttingPropertiesService.remove(new LambdaQueryWrapper<CuttingProperties>().eq(CuttingProperties::getCuttingId, id)); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·ä¿¡æ¯-æ¹éå é¤") |
| | | @ApiOperation(value="åå
·ä¿¡æ¯-æ¹éå é¤", notes="åå
·ä¿¡æ¯-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_tool:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.cuttingToolService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "åå
·ä¿¡æ¯-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="åå
·ä¿¡æ¯-éè¿idæ¥è¯¢", notes="åå
·ä¿¡æ¯-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<CuttingTool> queryById(@RequestParam(name="id",required=true) String id) { |
| | | CuttingTool cuttingTool = cuttingToolService.getById(id); |
| | | if(cuttingTool==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(cuttingTool); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param cuttingTool |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules:cms_cutting_tool:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, CuttingTool cuttingTool) { |
| | | return super.exportXls(request, cuttingTool, CuttingTool.class, "åå
·ä¿¡æ¯"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("cms_cutting_tool:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, CuttingTool.class); |
| | | } |
| | | |
| | | |
| | | @GetMapping(value = "/getCuttingToolList") |
| | | public Result<?> getCuttingToolList(@RequestParam("pageNo") Integer pageNo, |
| | | @RequestParam("pageSize") Integer pageSize, |
| | | @RequestParam Map<String, Object> params) { |
| | | IPage<Map<String, Object>> cuttingToolList = cuttingToolService.getCuttingToolList(pageNo, pageSize, params); |
| | | for (Map<String, Object> record : cuttingToolList.getRecords()) { |
| | | String cuttingId = (String) record.get("id"); |
| | | List<CuttingProperties> cuttingPropertiesList = cuttingPropertiesService.selectListByCuttingId(cuttingId); |
| | | record.put("cuttingPropertiesList", cuttingPropertiesList); |
| | | } |
| | | return Result.ok(cuttingToolList); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.controller; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | import java.io.IOException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLDecoder; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.cms.entity.CuttingReceive; |
| | | import org.jeecg.modules.cms.entity.CuttingReceiveDetail; |
| | | import org.jeecg.modules.cms.entity.EdgeGrinding; |
| | | import org.jeecg.modules.cms.entity.EdgeGrindingDetail; |
| | | import org.jeecg.modules.cms.service.IEdgeGrindingDetailService; |
| | | import org.jeecg.modules.cms.service.IEdgeGrindingService; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import org.jeecgframework.poi.excel.ExcelImportUtil; |
| | | import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
| | | import org.jeecgframework.poi.excel.entity.ExportParams; |
| | | import org.jeecgframework.poi.excel.entity.ImportParams; |
| | | import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import org.springframework.web.multipart.MultipartHttpServletRequest; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | import com.alibaba.fastjson.JSON; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | |
| | | /** |
| | | * @Description: åå
·ä¿®ç£¨ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="åå
·ä¿®ç£¨") |
| | | @RestController |
| | | @RequestMapping("/cms/edgeGrinding") |
| | | @Slf4j |
| | | public class EdgeGrindingController extends JeecgController<EdgeGrinding, IEdgeGrindingService> { |
| | | @Autowired |
| | | private IEdgeGrindingService edgeGrindingService; |
| | | |
| | | @Autowired |
| | | private IEdgeGrindingDetailService edgeGrindingDetailService; |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param edgeGrinding |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "åå
·ä¿®ç£¨-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="åå
·ä¿®ç£¨-å页å表æ¥è¯¢", notes="åå
·ä¿®ç£¨-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<EdgeGrinding>> queryPageList(EdgeGrinding edgeGrinding, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<EdgeGrinding> queryWrapper = QueryGenerator.initQueryWrapper(edgeGrinding, req.getParameterMap()); |
| | | Page<EdgeGrinding> page = new Page<EdgeGrinding>(pageNo, pageSize); |
| | | IPage<EdgeGrinding> pageList = edgeGrindingService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param jSONObject |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·ä¿®ç£¨-æ·»å ") |
| | | @ApiOperation(value="åå
·ä¿®ç£¨-æ·»å ", notes="åå
·ä¿®ç£¨-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_edge_grinding:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody JSONObject jSONObject) { |
| | | EdgeGrinding edgeGrinding = jSONObject.toJavaObject(EdgeGrinding.class); |
| | | edgeGrinding.setOrderStatus("1"); |
| | | edgeGrindingService.saveOrUpdate(edgeGrinding); |
| | | //å é¤åå
³èæ°æ® |
| | | List<EdgeGrindingDetail> edgeGrindingDetailList = edgeGrindingDetailService.lambdaQuery().eq(EdgeGrindingDetail::getOrderId,edgeGrinding.getId()).list(); |
| | | edgeGrindingDetailService.removeBatchByIds(edgeGrindingDetailList); |
| | | //æ·»å æ°å
³èæ°æ® |
| | | JSONArray jsonArray = jSONObject.getJSONArray("detailData"); |
| | | List<EdgeGrindingDetail> list = jsonArray.toJavaList(EdgeGrindingDetail.class); |
| | | for (int i = 0; i < list.size(); i++) { |
| | | EdgeGrindingDetail temp = list.get(i); |
| | | temp.setOrderId(edgeGrinding.getId()); |
| | | edgeGrindingDetailService.save(temp); |
| | | } |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param edgeGrinding |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·ä¿®ç£¨-ç¼è¾") |
| | | @ApiOperation(value="åå
·ä¿®ç£¨-ç¼è¾", notes="åå
·ä¿®ç£¨-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_edge_grinding:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody EdgeGrinding edgeGrinding) { |
| | | edgeGrindingService.updateById(edgeGrinding); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·ä¿®ç£¨-éè¿idå é¤") |
| | | @ApiOperation(value="åå
·ä¿®ç£¨-éè¿idå é¤", notes="åå
·ä¿®ç£¨-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_edge_grinding:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | edgeGrindingService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·ä¿®ç£¨-æ¹éå é¤") |
| | | @ApiOperation(value="åå
·ä¿®ç£¨-æ¹éå é¤", notes="åå
·ä¿®ç£¨-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_edge_grinding:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.edgeGrindingService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "åå
·ä¿®ç£¨-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="åå
·ä¿®ç£¨-éè¿idæ¥è¯¢", notes="åå
·ä¿®ç£¨-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<EdgeGrinding> queryById(@RequestParam(name="id",required=true) String id) { |
| | | EdgeGrinding edgeGrinding = edgeGrindingService.getById(id); |
| | | if(edgeGrinding==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(edgeGrinding); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param edgeGrinding |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules:cms_edge_grinding:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, EdgeGrinding edgeGrinding) { |
| | | return super.exportXls(request, edgeGrinding, EdgeGrinding.class, "åå
·ä¿®ç£¨"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("cms_edge_grinding:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, EdgeGrinding.class); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ ¹æ®ä¿®ç£¨idæ¥è¯¢ä¿®ç£¨æç» |
| | | * |
| | | * @param orderId |
| | | * @return |
| | | */ |
| | | @GetMapping("/detailList") |
| | | public Result<?> detailList(@RequestParam("orderId") String orderId) { |
| | | List<Map<String, Object>> list = edgeGrindingDetailService.detailList(orderId); |
| | | return Result.ok(list); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.controller; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | import java.io.IOException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLDecoder; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.cms.entity.EdgeGrindingDetail; |
| | | import org.jeecg.modules.cms.service.IEdgeGrindingDetailService; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import org.jeecgframework.poi.excel.ExcelImportUtil; |
| | | import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
| | | import org.jeecgframework.poi.excel.entity.ExportParams; |
| | | import org.jeecgframework.poi.excel.entity.ImportParams; |
| | | import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import org.springframework.web.multipart.MultipartHttpServletRequest; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | import com.alibaba.fastjson.JSON; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | |
| | | /** |
| | | * @Description: åå
·ä¿®ç£¨æç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="åå
·ä¿®ç£¨æç»") |
| | | @RestController |
| | | @RequestMapping("/cms/edgeGrindingDetail") |
| | | @Slf4j |
| | | public class EdgeGrindingDetailController extends JeecgController<EdgeGrindingDetail, IEdgeGrindingDetailService> { |
| | | @Autowired |
| | | private IEdgeGrindingDetailService edgeGrindingDetailService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param edgeGrindingDetail |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "åå
·ä¿®ç£¨æç»-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="åå
·ä¿®ç£¨æç»-å页å表æ¥è¯¢", notes="åå
·ä¿®ç£¨æç»-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<EdgeGrindingDetail>> queryPageList(EdgeGrindingDetail edgeGrindingDetail, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<EdgeGrindingDetail> queryWrapper = QueryGenerator.initQueryWrapper(edgeGrindingDetail, req.getParameterMap()); |
| | | Page<EdgeGrindingDetail> page = new Page<EdgeGrindingDetail>(pageNo, pageSize); |
| | | IPage<EdgeGrindingDetail> pageList = edgeGrindingDetailService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param edgeGrindingDetail |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·ä¿®ç£¨æç»-æ·»å ") |
| | | @ApiOperation(value="åå
·ä¿®ç£¨æç»-æ·»å ", notes="åå
·ä¿®ç£¨æç»-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_edge_grinding_detail:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody EdgeGrindingDetail edgeGrindingDetail) { |
| | | edgeGrindingDetailService.save(edgeGrindingDetail); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param edgeGrindingDetail |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·ä¿®ç£¨æç»-ç¼è¾") |
| | | @ApiOperation(value="åå
·ä¿®ç£¨æç»-ç¼è¾", notes="åå
·ä¿®ç£¨æç»-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_edge_grinding_detail:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody EdgeGrindingDetail edgeGrindingDetail) { |
| | | edgeGrindingDetailService.updateById(edgeGrindingDetail); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·ä¿®ç£¨æç»-éè¿idå é¤") |
| | | @ApiOperation(value="åå
·ä¿®ç£¨æç»-éè¿idå é¤", notes="åå
·ä¿®ç£¨æç»-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_edge_grinding_detail:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | edgeGrindingDetailService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·ä¿®ç£¨æç»-æ¹éå é¤") |
| | | @ApiOperation(value="åå
·ä¿®ç£¨æç»-æ¹éå é¤", notes="åå
·ä¿®ç£¨æç»-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_edge_grinding_detail:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.edgeGrindingDetailService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "åå
·ä¿®ç£¨æç»-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="åå
·ä¿®ç£¨æç»-éè¿idæ¥è¯¢", notes="åå
·ä¿®ç£¨æç»-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<EdgeGrindingDetail> queryById(@RequestParam(name="id",required=true) String id) { |
| | | EdgeGrindingDetail edgeGrindingDetail = edgeGrindingDetailService.getById(id); |
| | | if(edgeGrindingDetail==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(edgeGrindingDetail); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param edgeGrindingDetail |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules:cms_edge_grinding_detail:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, EdgeGrindingDetail edgeGrindingDetail) { |
| | | return super.exportXls(request, edgeGrindingDetail, EdgeGrindingDetail.class, "åå
·ä¿®ç£¨æç»"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("cms_edge_grinding_detail:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, EdgeGrindingDetail.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.controller; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | import java.io.IOException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLDecoder; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.cms.entity.RatedLife; |
| | | import org.jeecg.modules.cms.service.IRatedLifeService; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import org.jeecgframework.poi.excel.ExcelImportUtil; |
| | | import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
| | | import org.jeecgframework.poi.excel.entity.ExportParams; |
| | | import org.jeecgframework.poi.excel.entity.ImportParams; |
| | | import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import org.springframework.web.multipart.MultipartHttpServletRequest; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | import com.alibaba.fastjson.JSON; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | |
| | | /** |
| | | * @Description: é¢å®å¯¿å½ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="é¢å®å¯¿å½") |
| | | @RestController |
| | | @RequestMapping("/cms/ratedLife") |
| | | @Slf4j |
| | | public class RatedLifeController extends JeecgController<RatedLife, IRatedLifeService> { |
| | | @Autowired |
| | | private IRatedLifeService ratedLifeService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param ratedLife |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "é¢å®å¯¿å½-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="é¢å®å¯¿å½-å页å表æ¥è¯¢", notes="é¢å®å¯¿å½-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<RatedLife>> queryPageList(RatedLife ratedLife, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<RatedLife> queryWrapper = QueryGenerator.initQueryWrapper(ratedLife, req.getParameterMap()); |
| | | Page<RatedLife> page = new Page<RatedLife>(pageNo, pageSize); |
| | | IPage<RatedLife> pageList = ratedLifeService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param ratedLife |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "é¢å®å¯¿å½-æ·»å ") |
| | | @ApiOperation(value="é¢å®å¯¿å½-æ·»å ", notes="é¢å®å¯¿å½-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_rated_life:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody RatedLife ratedLife) { |
| | | ratedLifeService.save(ratedLife); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param ratedLife |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "é¢å®å¯¿å½-ç¼è¾") |
| | | @ApiOperation(value="é¢å®å¯¿å½-ç¼è¾", notes="é¢å®å¯¿å½-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_rated_life:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody RatedLife ratedLife) { |
| | | ratedLifeService.updateById(ratedLife); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "é¢å®å¯¿å½-éè¿idå é¤") |
| | | @ApiOperation(value="é¢å®å¯¿å½-éè¿idå é¤", notes="é¢å®å¯¿å½-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_rated_life:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | ratedLifeService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "é¢å®å¯¿å½-æ¹éå é¤") |
| | | @ApiOperation(value="é¢å®å¯¿å½-æ¹éå é¤", notes="é¢å®å¯¿å½-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_rated_life:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.ratedLifeService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "é¢å®å¯¿å½-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="é¢å®å¯¿å½-éè¿idæ¥è¯¢", notes="é¢å®å¯¿å½-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<RatedLife> queryById(@RequestParam(name="id",required=true) String id) { |
| | | RatedLife ratedLife = ratedLifeService.getById(id); |
| | | if(ratedLife==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(ratedLife); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param ratedLife |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules:cms_rated_life:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, RatedLife ratedLife) { |
| | | return super.exportXls(request, ratedLife, RatedLife.class, "é¢å®å¯¿å½"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("cms_rated_life:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, RatedLife.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.controller; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | import java.io.IOException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLDecoder; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.cms.entity.ToolStocktaking; |
| | | import org.jeecg.modules.cms.service.IToolStocktakingService; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import org.jeecgframework.poi.excel.ExcelImportUtil; |
| | | import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
| | | import org.jeecgframework.poi.excel.entity.ExportParams; |
| | | import org.jeecgframework.poi.excel.entity.ImportParams; |
| | | import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import org.springframework.web.multipart.MultipartHttpServletRequest; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | import com.alibaba.fastjson.JSON; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | |
| | | /** |
| | | * @Description: åå
·çç¹ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="åå
·çç¹") |
| | | @RestController |
| | | @RequestMapping("/cms/toolStocktaking") |
| | | @Slf4j |
| | | public class ToolStocktakingController extends JeecgController<ToolStocktaking, IToolStocktakingService> { |
| | | @Autowired |
| | | private IToolStocktakingService toolStocktakingService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param toolStocktaking |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "åå
·çç¹-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="åå
·çç¹-å页å表æ¥è¯¢", notes="åå
·çç¹-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<ToolStocktaking>> queryPageList(ToolStocktaking toolStocktaking, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<ToolStocktaking> queryWrapper = QueryGenerator.initQueryWrapper(toolStocktaking, req.getParameterMap()); |
| | | Page<ToolStocktaking> page = new Page<ToolStocktaking>(pageNo, pageSize); |
| | | IPage<ToolStocktaking> pageList = toolStocktakingService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param toolStocktaking |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·çç¹-æ·»å ") |
| | | @ApiOperation(value="åå
·çç¹-æ·»å ", notes="åå
·çç¹-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_tool_stocktaking:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody ToolStocktaking toolStocktaking) { |
| | | toolStocktakingService.save(toolStocktaking); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param toolStocktaking |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·çç¹-ç¼è¾") |
| | | @ApiOperation(value="åå
·çç¹-ç¼è¾", notes="åå
·çç¹-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_tool_stocktaking:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody ToolStocktaking toolStocktaking) { |
| | | toolStocktakingService.updateById(toolStocktaking); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·çç¹-éè¿idå é¤") |
| | | @ApiOperation(value="åå
·çç¹-éè¿idå é¤", notes="åå
·çç¹-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_tool_stocktaking:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | toolStocktakingService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·çç¹-æ¹éå é¤") |
| | | @ApiOperation(value="åå
·çç¹-æ¹éå é¤", notes="åå
·çç¹-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_tool_stocktaking:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.toolStocktakingService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "åå
·çç¹-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="åå
·çç¹-éè¿idæ¥è¯¢", notes="åå
·çç¹-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<ToolStocktaking> queryById(@RequestParam(name="id",required=true) String id) { |
| | | ToolStocktaking toolStocktaking = toolStocktakingService.getById(id); |
| | | if(toolStocktaking==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(toolStocktaking); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param toolStocktaking |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules:cms_tool_stocktaking:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, ToolStocktaking toolStocktaking) { |
| | | return super.exportXls(request, toolStocktaking, ToolStocktaking.class, "åå
·çç¹"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("cms_tool_stocktaking:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, ToolStocktaking.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.controller; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | import java.io.IOException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLDecoder; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.cms.entity.ToolStocktakingDetail; |
| | | import org.jeecg.modules.cms.service.IToolStocktakingDetailService; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import org.jeecgframework.poi.excel.ExcelImportUtil; |
| | | import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
| | | import org.jeecgframework.poi.excel.entity.ExportParams; |
| | | import org.jeecgframework.poi.excel.entity.ImportParams; |
| | | import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import org.springframework.web.multipart.MultipartHttpServletRequest; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | import com.alibaba.fastjson.JSON; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | |
| | | /** |
| | | * @Description: åå
·çç¹æç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="åå
·çç¹æç»") |
| | | @RestController |
| | | @RequestMapping("/cms/toolStocktakingDetail") |
| | | @Slf4j |
| | | public class ToolStocktakingDetailController extends JeecgController<ToolStocktakingDetail, IToolStocktakingDetailService> { |
| | | @Autowired |
| | | private IToolStocktakingDetailService toolStocktakingDetailService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param toolStocktakingDetail |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "åå
·çç¹æç»-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="åå
·çç¹æç»-å页å表æ¥è¯¢", notes="åå
·çç¹æç»-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<ToolStocktakingDetail>> queryPageList(ToolStocktakingDetail toolStocktakingDetail, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<ToolStocktakingDetail> queryWrapper = QueryGenerator.initQueryWrapper(toolStocktakingDetail, req.getParameterMap()); |
| | | Page<ToolStocktakingDetail> page = new Page<ToolStocktakingDetail>(pageNo, pageSize); |
| | | IPage<ToolStocktakingDetail> pageList = toolStocktakingDetailService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param toolStocktakingDetail |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·çç¹æç»-æ·»å ") |
| | | @ApiOperation(value="åå
·çç¹æç»-æ·»å ", notes="åå
·çç¹æç»-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_tool_stocktaking_detail:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody ToolStocktakingDetail toolStocktakingDetail) { |
| | | toolStocktakingDetailService.save(toolStocktakingDetail); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param toolStocktakingDetail |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·çç¹æç»-ç¼è¾") |
| | | @ApiOperation(value="åå
·çç¹æç»-ç¼è¾", notes="åå
·çç¹æç»-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_tool_stocktaking_detail:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody ToolStocktakingDetail toolStocktakingDetail) { |
| | | toolStocktakingDetailService.updateById(toolStocktakingDetail); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·çç¹æç»-éè¿idå é¤") |
| | | @ApiOperation(value="åå
·çç¹æç»-éè¿idå é¤", notes="åå
·çç¹æç»-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_tool_stocktaking_detail:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | toolStocktakingDetailService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "åå
·çç¹æç»-æ¹éå é¤") |
| | | @ApiOperation(value="åå
·çç¹æç»-æ¹éå é¤", notes="åå
·çç¹æç»-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_tool_stocktaking_detail:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.toolStocktakingDetailService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "åå
·çç¹æç»-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="åå
·çç¹æç»-éè¿idæ¥è¯¢", notes="åå
·çç¹æç»-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<ToolStocktakingDetail> queryById(@RequestParam(name="id",required=true) String id) { |
| | | ToolStocktakingDetail toolStocktakingDetail = toolStocktakingDetailService.getById(id); |
| | | if(toolStocktakingDetail==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(toolStocktakingDetail); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param toolStocktakingDetail |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules:cms_tool_stocktaking_detail:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, ToolStocktakingDetail toolStocktakingDetail) { |
| | | return super.exportXls(request, toolStocktakingDetail, ToolStocktakingDetail.class, "åå
·çç¹æç»"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("cms_tool_stocktaking_detail:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, ToolStocktakingDetail.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.controller; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | import java.io.IOException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLDecoder; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.cms.entity.ToolStocktakingInventoryChange; |
| | | import org.jeecg.modules.cms.service.IToolStocktakingInventoryChangeService; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import org.jeecgframework.poi.excel.ExcelImportUtil; |
| | | import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
| | | import org.jeecgframework.poi.excel.entity.ExportParams; |
| | | import org.jeecgframework.poi.excel.entity.ImportParams; |
| | | import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import org.springframework.web.multipart.MultipartHttpServletRequest; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | import com.alibaba.fastjson.JSON; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | |
| | | /** |
| | | * @Description: çç¹åºååæ´ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="çç¹åºååæ´") |
| | | @RestController |
| | | @RequestMapping("/cms/toolStocktakingInventoryChange") |
| | | @Slf4j |
| | | public class ToolStocktakingInventoryChangeController extends JeecgController<ToolStocktakingInventoryChange, IToolStocktakingInventoryChangeService> { |
| | | @Autowired |
| | | private IToolStocktakingInventoryChangeService toolStocktakingInventoryChangeService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param toolStocktakingInventoryChange |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "çç¹åºååæ´-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="çç¹åºååæ´-å页å表æ¥è¯¢", notes="çç¹åºååæ´-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<ToolStocktakingInventoryChange>> queryPageList(ToolStocktakingInventoryChange toolStocktakingInventoryChange, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<ToolStocktakingInventoryChange> queryWrapper = QueryGenerator.initQueryWrapper(toolStocktakingInventoryChange, req.getParameterMap()); |
| | | Page<ToolStocktakingInventoryChange> page = new Page<ToolStocktakingInventoryChange>(pageNo, pageSize); |
| | | IPage<ToolStocktakingInventoryChange> pageList = toolStocktakingInventoryChangeService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param toolStocktakingInventoryChange |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "çç¹åºååæ´-æ·»å ") |
| | | @ApiOperation(value="çç¹åºååæ´-æ·»å ", notes="çç¹åºååæ´-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_tool_stocktaking_inventory_change:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody ToolStocktakingInventoryChange toolStocktakingInventoryChange) { |
| | | toolStocktakingInventoryChangeService.save(toolStocktakingInventoryChange); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param toolStocktakingInventoryChange |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "çç¹åºååæ´-ç¼è¾") |
| | | @ApiOperation(value="çç¹åºååæ´-ç¼è¾", notes="çç¹åºååæ´-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_tool_stocktaking_inventory_change:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody ToolStocktakingInventoryChange toolStocktakingInventoryChange) { |
| | | toolStocktakingInventoryChangeService.updateById(toolStocktakingInventoryChange); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "çç¹åºååæ´-éè¿idå é¤") |
| | | @ApiOperation(value="çç¹åºååæ´-éè¿idå é¤", notes="çç¹åºååæ´-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_tool_stocktaking_inventory_change:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | toolStocktakingInventoryChangeService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "çç¹åºååæ´-æ¹éå é¤") |
| | | @ApiOperation(value="çç¹åºååæ´-æ¹éå é¤", notes="çç¹åºååæ´-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:cms_tool_stocktaking_inventory_change:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.toolStocktakingInventoryChangeService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "çç¹åºååæ´-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="çç¹åºååæ´-éè¿idæ¥è¯¢", notes="çç¹åºååæ´-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<ToolStocktakingInventoryChange> queryById(@RequestParam(name="id",required=true) String id) { |
| | | ToolStocktakingInventoryChange toolStocktakingInventoryChange = toolStocktakingInventoryChangeService.getById(id); |
| | | if(toolStocktakingInventoryChange==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(toolStocktakingInventoryChange); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param toolStocktakingInventoryChange |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules:cms_tool_stocktaking_inventory_change:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, ToolStocktakingInventoryChange toolStocktakingInventoryChange) { |
| | | return super.exportXls(request, toolStocktakingInventoryChange, ToolStocktakingInventoryChange.class, "çç¹åºååæ´"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("cms_tool_stocktaking_inventory_change:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, ToolStocktakingInventoryChange.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * @Description: åå
·å
¥åºå |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("cms_cutting_inbound") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="cms_cutting_inbound对象", description="åå
·å
¥åºå") |
| | | public class CuttingInbound implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | /**å 餿 è®°*/ |
| | | @Excel(name = "å 餿 è®°", width = 15) |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | @TableLogic |
| | | private Integer delFlag = CommonConstant.DEL_FLAG_0; |
| | | /**å
¥åºåç¶æ*/ |
| | | @Excel(name = "å
¥åºåç¶æ", width = 15) |
| | | @ApiModelProperty(value = "å
¥åºåç¶æ") |
| | | private String orderStatus; |
| | | /**å
¥åºäºº*/ |
| | | @Excel(name = "å
¥åºäºº", width = 15) |
| | | @ApiModelProperty(value = "å
¥åºäºº") |
| | | @Dict(dictTable = "sys_user",dicCode = "id",dicText = "realname") |
| | | private String receiver; |
| | | /**å
¥åºæ¶é´*/ |
| | | @Excel(name = "å
¥åºæ¶é´", width = 15, format = "yyyy-MM-dd") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å
¥åºæ¶é´") |
| | | private Date receiveTime; |
| | | /**å
¥åºè¯´æ*/ |
| | | @Excel(name = "å
¥åºè¯´æ", width = 15) |
| | | @ApiModelProperty(value = "å
¥åºè¯´æ") |
| | | private String receiveComment; |
| | | /**确认人*/ |
| | | @Excel(name = "确认人", width = 15) |
| | | @ApiModelProperty(value = "确认人") |
| | | @Dict(dictTable = "sys_user",dicCode = "id",dicText = "realname") |
| | | private String confirmer; |
| | | /**确认æ¶é´*/ |
| | | @Excel(name = "确认æ¶é´", width = 15, format = "yyyy-MM-dd") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "确认æ¶é´") |
| | | private Date confirmTime; |
| | | /**确认æè§*/ |
| | | @Excel(name = "确认æè§", width = 15) |
| | | @ApiModelProperty(value = "确认æè§") |
| | | private String confirmComment; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * @Description: å
¥åºåæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("cms_cutting_inbound_detail") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="cms_cutting_inbound_detail对象", description="å
¥åºåæç»") |
| | | public class CuttingInboundDetail implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**å
¥åºå*/ |
| | | @Excel(name = "å
¥åºå", width = 15) |
| | | @ApiModelProperty(value = "å
¥åºå") |
| | | private String orderId; |
| | | /**åå
·ID*/ |
| | | @Excel(name = "åå
·ID", width = 15) |
| | | @ApiModelProperty(value = "åå
·ID") |
| | | private String cuttingId; |
| | | /**å
¥åºæ°é*/ |
| | | @Excel(name = "å
¥åºæ°é", width = 15) |
| | | @ApiModelProperty(value = "å
¥åºæ°é") |
| | | private Integer receiveNumber; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * @Description: å
¥åºååºåå
³ç³» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("cms_cutting_inbound_inventory") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="cms_cutting_inbound_inventory对象", description="å
¥åºååºåå
³ç³»") |
| | | public class CuttingInboundInventory implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**å
¥åºåID*/ |
| | | @Excel(name = "å
¥åºåID", width = 15) |
| | | @ApiModelProperty(value = "å
¥åºåID") |
| | | private String orderId; |
| | | /**åºåID*/ |
| | | @Excel(name = "åºåID", width = 15) |
| | | @ApiModelProperty(value = "åºåID") |
| | | private String inventoryId; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * @Description: åå
·åºå |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("cms_cutting_inventory") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="cms_cutting_inventory对象", description="åå
·åºå") |
| | | public class CuttingInventory implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | /**åå
·ID*/ |
| | | @Excel(name = "åå
·ID", width = 15) |
| | | @ApiModelProperty(value = "åå
·ID") |
| | | private String cuttingId; |
| | | /**åå
·æ¡ç */ |
| | | @Excel(name = "åå
·æ¡ç ", width = 15) |
| | | @ApiModelProperty(value = "åå
·æ¡ç ") |
| | | private String cuttingBarcode; |
| | | /**åºåç¶æ*/ |
| | | @Excel(name = "åºåç¶æ", width = 15) |
| | | @ApiModelProperty(value = "åºåç¶æ") |
| | | private String inventoryStatus; |
| | | /**å½å寿å½(ç¾åæ¯)*/ |
| | | @Excel(name = "å½å寿å½(ç¾åæ¯)", width = 15) |
| | | @ApiModelProperty(value = "å½å寿å½(ç¾åæ¯)") |
| | | private BigDecimal currentLife; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * @Description: åå
·æ©å±å±æ§ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("cms_cutting_properties") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="cms_cutting_properties对象", description="åå
·æ©å±å±æ§") |
| | | public class CuttingProperties implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | /**åå
·ID*/ |
| | | @Excel(name = "åå
·ID", width = 15) |
| | | @ApiModelProperty(value = "åå
·ID") |
| | | private String cuttingId; |
| | | /**屿§ç¼ç */ |
| | | @Excel(name = "屿§ç¼ç ", width = 15) |
| | | @ApiModelProperty(value = "屿§ç¼ç ") |
| | | private String propertyCode; |
| | | /**屿§åç§°*/ |
| | | @Excel(name = "屿§åç§°", width = 15) |
| | | @ApiModelProperty(value = "屿§åç§°") |
| | | private String propertyName; |
| | | /**计éåä½*/ |
| | | @Excel(name = "计éåä½", width = 15) |
| | | @ApiModelProperty(value = "计éåä½") |
| | | private String propertyUnit; |
| | | /**屿§å¼*/ |
| | | @Excel(name = "屿§å¼", width = 15) |
| | | @ApiModelProperty(value = "屿§å¼") |
| | | private String propertyValue; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * @Description: åå
·é¢ç¨å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("cms_cutting_receive") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="cms_cutting_receive对象", description="åå
·é¢ç¨å") |
| | | public class CuttingReceive implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | /**å 餿 è®°*/ |
| | | @Excel(name = "å 餿 è®°", width = 15) |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | @TableLogic |
| | | private Integer delFlag = CommonConstant.DEL_FLAG_0; |
| | | /**é¢ç¨åç¶æ*/ |
| | | @Excel(name = "é¢ç¨åç¶æ", width = 15) |
| | | @ApiModelProperty(value = "é¢ç¨åç¶æ") |
| | | private String orderStatus; |
| | | /**é¢ç¨äºº*/ |
| | | @Excel(name = "é¢ç¨äºº", width = 15) |
| | | @ApiModelProperty(value = "é¢ç¨äºº") |
| | | @Dict(dictTable = "sys_user",dicCode = "id",dicText = "realname") |
| | | private String receiver; |
| | | /**é¢ç¨æ¶é´*/ |
| | | @Excel(name = "é¢ç¨æ¶é´", width = 15, format = "yyyy-MM-dd") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "é¢ç¨æ¶é´") |
| | | private Date receiveTime; |
| | | /**é¢ç¨è¯´æ*/ |
| | | @Excel(name = "é¢ç¨è¯´æ", width = 15) |
| | | @ApiModelProperty(value = "é¢ç¨è¯´æ") |
| | | private String receiveComment; |
| | | /**确认人*/ |
| | | @Excel(name = "确认人", width = 15) |
| | | @ApiModelProperty(value = "确认人") |
| | | @Dict(dictTable = "sys_user",dicCode = "id",dicText = "realname") |
| | | private String confirmer; |
| | | /**确认æ¶é´*/ |
| | | @Excel(name = "确认æ¶é´", width = 15, format = "yyyy-MM-dd") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "确认æ¶é´") |
| | | private Date confirmTime; |
| | | /**确认æè§*/ |
| | | @Excel(name = "确认æè§", width = 15) |
| | | @ApiModelProperty(value = "确认æè§") |
| | | private String confirmComment; |
| | | /**æ¯å¦ä¼å½è¿*/ |
| | | @Excel(name = "æ¯å¦ä¼å½è¿", width = 15) |
| | | @ApiModelProperty(value = "æ¯å¦ä¼å½è¿") |
| | | private String returnFlag; |
| | | /**å½è¿æ¶é´*/ |
| | | @Excel(name = "å½è¿æ¶é´", width = 15, format = "yyyy-MM-dd") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å½è¿æ¶é´") |
| | | private Date returnTime; |
| | | /**å½è¿è¯´æ*/ |
| | | @Excel(name = "å½è¿è¯´æ", width = 15) |
| | | @ApiModelProperty(value = "å½è¿è¯´æ") |
| | | private String returnComment; |
| | | /**å½è¿ç¡®è®¤äºº*/ |
| | | @Excel(name = "å½è¿ç¡®è®¤äºº", width = 15) |
| | | @ApiModelProperty(value = "å½è¿ç¡®è®¤äºº") |
| | | @Dict(dictTable = "sys_user",dicCode = "id",dicText = "realname") |
| | | private String returnConfirmer; |
| | | /**å½è¿ç¡®è®¤æ¶é´*/ |
| | | @Excel(name = "å½è¿ç¡®è®¤æ¶é´", width = 15, format = "yyyy-MM-dd") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å½è¿ç¡®è®¤æ¶é´") |
| | | private Date returnConfirmTime; |
| | | /**å½è¿ç¡®è®¤æè§*/ |
| | | @Excel(name = "å½è¿ç¡®è®¤æè§", width = 15) |
| | | @ApiModelProperty(value = "å½è¿ç¡®è®¤æè§") |
| | | private String returnConfirmComment; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * @Description: é¢ç¨åæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("cms_cutting_receive_detail") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="cms_cutting_receive_detail对象", description="é¢ç¨åæç»") |
| | | public class CuttingReceiveDetail implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | /**é¢ç¨åID*/ |
| | | @Excel(name = "é¢ç¨åID", width = 15) |
| | | @ApiModelProperty(value = "é¢ç¨åID") |
| | | private String orderId; |
| | | /**åå
·ID*/ |
| | | @Excel(name = "åå
·ID", width = 15) |
| | | @ApiModelProperty(value = "åå
·ID") |
| | | private String cuttingId; |
| | | /**åºåID*/ |
| | | @Excel(name = "åºåID", width = 15) |
| | | @ApiModelProperty(value = "åºåID") |
| | | private String inventoryId; |
| | | /**工件æè´¨*/ |
| | | @Excel(name = "工件æè´¨", width = 15) |
| | | @ApiModelProperty(value = "工件æè´¨") |
| | | private String workpieceMaterial; |
| | | /**使ç¨å¯¿å½*/ |
| | | @Excel(name = "使ç¨å¯¿å½", width = 15) |
| | | @ApiModelProperty(value = "使ç¨å¯¿å½") |
| | | private Integer usedLife; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * @Description: åå
·æ¥åº |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("cms_cutting_scrap") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="cms_cutting_scrap对象", description="åå
·æ¥åº") |
| | | public class CuttingScrap implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | /**å 餿 è®°*/ |
| | | @Excel(name = "å 餿 è®°", width = 15) |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | @TableLogic |
| | | private Integer delFlag = CommonConstant.DEL_FLAG_0; |
| | | /**æ¥åºåç¶æ*/ |
| | | @Excel(name = "æ¥åºåç¶æ", width = 15) |
| | | @ApiModelProperty(value = "æ¥åºåç¶æ") |
| | | private String orderStatus; |
| | | /**ç³è¯·äºº*/ |
| | | @Excel(name = "ç³è¯·äºº", width = 15) |
| | | @ApiModelProperty(value = "ç³è¯·äºº") |
| | | @Dict(dictTable = "sys_user",dicCode = "id",dicText = "realname") |
| | | private String applicant; |
| | | /**ç³è¯·æ¶é´*/ |
| | | @Excel(name = "ç³è¯·æ¶é´", width = 15, format = "yyyy-MM-dd") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ç³è¯·æ¶é´") |
| | | private Date applicationTime; |
| | | /**ç³è¯·è¯´æ*/ |
| | | @Excel(name = "ç³è¯·è¯´æ", width = 15) |
| | | @ApiModelProperty(value = "ç³è¯·è¯´æ") |
| | | private String applicationComment; |
| | | /**确认人*/ |
| | | @Excel(name = "确认人", width = 15) |
| | | @ApiModelProperty(value = "确认人") |
| | | @Dict(dictTable = "sys_user",dicCode = "id",dicText = "realname") |
| | | private String confirmer; |
| | | /**确认æ¶é´*/ |
| | | @Excel(name = "确认æ¶é´", width = 15, format = "yyyy-MM-dd") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "确认æ¶é´") |
| | | private Date confirmTime; |
| | | /**确认æè§*/ |
| | | @Excel(name = "确认æè§", width = 15) |
| | | @ApiModelProperty(value = "确认æè§") |
| | | private String confirmComment; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * @Description: åå
·æ¥åºæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("cms_cutting_scrap_detail") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="cms_cutting_scrap_detail对象", description="åå
·æ¥åºæç»") |
| | | public class CuttingScrapDetail implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ¥åºåID*/ |
| | | @Excel(name = "æ¥åºåID", width = 15) |
| | | @ApiModelProperty(value = "æ¥åºåID") |
| | | private String orderId; |
| | | /**åå
·ID*/ |
| | | @Excel(name = "åå
·ID", width = 15) |
| | | @ApiModelProperty(value = "åå
·ID") |
| | | private String cuttingId; |
| | | /**åºåID*/ |
| | | @Excel(name = "åºåID", width = 15) |
| | | @ApiModelProperty(value = "åºåID") |
| | | private String inventoryId; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * @Description: åå
·ä¿¡æ¯ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("cms_cutting_tool") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="cms_cutting_tool对象", description="åå
·ä¿¡æ¯") |
| | | public class CuttingTool implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | /**å 餿 è®°*/ |
| | | @Excel(name = "å 餿 è®°", width = 15) |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | @TableLogic |
| | | private Integer delFlag = CommonConstant.DEL_FLAG_0; |
| | | /**åå
·åç§°*/ |
| | | @Excel(name = "åå
·åç§°", width = 15) |
| | | @ApiModelProperty(value = "åå
·åç§°") |
| | | private String cuttingName; |
| | | /**åå
·ç¼ç */ |
| | | @Excel(name = "åå
·ç¼ç ", width = 15) |
| | | @ApiModelProperty(value = "åå
·ç¼ç ") |
| | | private String cuttingCode; |
| | | /**åå
·åç±»*/ |
| | | @Excel(name = "åå
·åç±»", width = 15) |
| | | @ApiModelProperty(value = "åå
·åç±»") |
| | | private String cuttingCategory; |
| | | /**åæ¾ä½ç½®*/ |
| | | @Excel(name = "åæ¾ä½ç½®", width = 15) |
| | | @ApiModelProperty(value = "åæ¾ä½ç½®") |
| | | private String storeLocation; |
| | | /**ä¾åºå*/ |
| | | @Excel(name = "ä¾åºå", width = 15) |
| | | @ApiModelProperty(value = "ä¾åºå") |
| | | private String supplierId; |
| | | /**æå°å
è£
åä½*/ |
| | | @Excel(name = "æå°å
è£
åä½", width = 15) |
| | | @ApiModelProperty(value = "æå°å
è£
åä½") |
| | | private String minimumPackageUnit; |
| | | /**åå
·æè´¨*/ |
| | | @Excel(name = "åå
·æè´¨", width = 15) |
| | | @ApiModelProperty(value = "åå
·æè´¨") |
| | | private String cuttingMaterial; |
| | | /**åå·*/ |
| | | @Excel(name = "åå·", width = 15) |
| | | @ApiModelProperty(value = "åå·") |
| | | private String cuttingModel; |
| | | /**å¾å·*/ |
| | | @Excel(name = "å¾å·", width = 15) |
| | | @ApiModelProperty(value = "å¾å·") |
| | | private String drawingNumber; |
| | | /**åºåé¢è¦å¼*/ |
| | | @Excel(name = "åºåé¢è¦å¼", width = 15) |
| | | @ApiModelProperty(value = "åºåé¢è¦å¼") |
| | | private Integer inventoryWarning; |
| | | /**夿³¨*/ |
| | | @Excel(name = "夿³¨", width = 15) |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String remark; |
| | | |
| | | @TableField(exist = false) |
| | | private List<CuttingProperties> cuttingPropertiesList; |
| | | |
| | | @TableField(exist = false) |
| | | private List<String> deletePropertiesIds; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * @Description: åå
·ä¿®ç£¨ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("cms_edge_grinding") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="cms_edge_grinding对象", description="åå
·ä¿®ç£¨") |
| | | public class EdgeGrinding implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | /**å 餿 è®°*/ |
| | | @Excel(name = "å 餿 è®°", width = 15) |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | @TableLogic |
| | | private Integer delFlag = CommonConstant.DEL_FLAG_0; |
| | | /**修磨åç¶æ*/ |
| | | @Excel(name = "修磨åç¶æ", width = 15) |
| | | @ApiModelProperty(value = "修磨åç¶æ") |
| | | private String orderStatus; |
| | | /**ç³è¯·äºº*/ |
| | | @Excel(name = "ç³è¯·äºº", width = 15) |
| | | @ApiModelProperty(value = "ç³è¯·äºº") |
| | | @Dict(dictTable = "sys_user",dicCode = "id",dicText = "realname") |
| | | private String applicant; |
| | | /**ç³è¯·æ¶é´*/ |
| | | @Excel(name = "ç³è¯·æ¶é´", width = 15, format = "yyyy-MM-dd") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ç³è¯·æ¶é´") |
| | | private Date applicationTime; |
| | | /**ç³è¯·è¯´æ*/ |
| | | @Excel(name = "ç³è¯·è¯´æ", width = 15) |
| | | @ApiModelProperty(value = "ç³è¯·è¯´æ") |
| | | private String applicationComment; |
| | | /**确认人*/ |
| | | @Excel(name = "确认人", width = 15) |
| | | @ApiModelProperty(value = "确认人") |
| | | @Dict(dictTable = "sys_user",dicCode = "id",dicText = "realname") |
| | | private String confirmer; |
| | | /**确认æ¶é´*/ |
| | | @Excel(name = "确认æ¶é´", width = 15, format = "yyyy-MM-dd") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "确认æ¶é´") |
| | | private Date confirmTime; |
| | | /**确认æè§*/ |
| | | @Excel(name = "确认æè§", width = 15) |
| | | @ApiModelProperty(value = "确认æè§") |
| | | private String confirmComment; |
| | | /**å½è¿æ¶é´*/ |
| | | @Excel(name = "å½è¿æ¶é´", width = 15, format = "yyyy-MM-dd") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å½è¿æ¶é´") |
| | | private Date returnTime; |
| | | /**å½è¿è¯´æ*/ |
| | | @Excel(name = "å½è¿è¯´æ", width = 15) |
| | | @ApiModelProperty(value = "å½è¿è¯´æ") |
| | | private String returnComment; |
| | | /**å½è¿ç¡®è®¤äºº*/ |
| | | @Excel(name = "å½è¿ç¡®è®¤äºº", width = 15) |
| | | @ApiModelProperty(value = "å½è¿ç¡®è®¤äºº") |
| | | @Dict(dictTable = "sys_user",dicCode = "id",dicText = "realname") |
| | | private String returnConfirmer; |
| | | /**å½è¿ç¡®è®¤æ¶é´*/ |
| | | @Excel(name = "å½è¿ç¡®è®¤æ¶é´", width = 15, format = "yyyy-MM-dd") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å½è¿ç¡®è®¤æ¶é´") |
| | | private Date returnConfirmTime; |
| | | /**å½è¿ç¡®è®¤æè§*/ |
| | | @Excel(name = "å½è¿ç¡®è®¤æè§", width = 15) |
| | | @ApiModelProperty(value = "å½è¿ç¡®è®¤æè§") |
| | | private String returnConfirmComment; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * @Description: åå
·ä¿®ç£¨æç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("cms_edge_grinding_detail") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="cms_edge_grinding_detail对象", description="åå
·ä¿®ç£¨æç»") |
| | | public class EdgeGrindingDetail implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | /**修磨åID*/ |
| | | @Excel(name = "修磨åID", width = 15) |
| | | @ApiModelProperty(value = "修磨åID") |
| | | private String orderId; |
| | | /**åå
·ID*/ |
| | | @Excel(name = "åå
·ID", width = 15) |
| | | @ApiModelProperty(value = "åå
·ID") |
| | | private String cuttingId; |
| | | /**åºåID*/ |
| | | @Excel(name = "åºåID", width = 15) |
| | | @ApiModelProperty(value = "åºåID") |
| | | private String inventoryId; |
| | | /**æ°åå
·ID*/ |
| | | @Excel(name = "æ°åå
·ID", width = 15) |
| | | @ApiModelProperty(value = "æ°åå
·ID") |
| | | private String newCuttingId; |
| | | /**æ°åºåID*/ |
| | | @Excel(name = "æ°åºåID", width = 15) |
| | | @ApiModelProperty(value = "æ°åºåID") |
| | | private String newInventoryId; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * @Description: é¢å®å¯¿å½ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("cms_rated_life") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="cms_rated_life对象", description="é¢å®å¯¿å½") |
| | | public class RatedLife implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | /**åå
·ID*/ |
| | | @Excel(name = "åå
·ID", width = 15) |
| | | @ApiModelProperty(value = "åå
·ID") |
| | | private String cuttingId; |
| | | /**工件æè´¨*/ |
| | | @Excel(name = "工件æè´¨", width = 15) |
| | | @ApiModelProperty(value = "工件æè´¨") |
| | | private String workpieceMaterial; |
| | | /**é¢å®å¯¿å½*/ |
| | | @Excel(name = "é¢å®å¯¿å½", width = 15) |
| | | @ApiModelProperty(value = "é¢å®å¯¿å½") |
| | | private BigDecimal ratedLife; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * @Description: åå
·çç¹ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("cms_tool_stocktaking") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="cms_tool_stocktaking对象", description="åå
·çç¹") |
| | | public class ToolStocktaking implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | /**å 餿 è®°*/ |
| | | @Excel(name = "å 餿 è®°", width = 15) |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | @TableLogic |
| | | private Integer delFlag = CommonConstant.DEL_FLAG_0; |
| | | /**çç¹åå·*/ |
| | | @Excel(name = "çç¹åå·", width = 15) |
| | | @ApiModelProperty(value = "çç¹åå·") |
| | | private String orderCode; |
| | | /**çç¹ç¶æ*/ |
| | | @Excel(name = "çç¹ç¶æ", width = 15) |
| | | @ApiModelProperty(value = "çç¹ç¶æ") |
| | | private String orderStatus; |
| | | /**çç¹äºº*/ |
| | | @Excel(name = "çç¹äºº", width = 15) |
| | | @ApiModelProperty(value = "çç¹äºº") |
| | | private String operator; |
| | | /**çç¹æ¶é´*/ |
| | | @Excel(name = "çç¹æ¶é´", width = 15, format = "yyyy-MM-dd") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "çç¹æ¶é´") |
| | | private Date operateTime; |
| | | /**夿³¨*/ |
| | | @Excel(name = "夿³¨", width = 15) |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String remark; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * @Description: åå
·çç¹æç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("cms_tool_stocktaking_detail") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="cms_tool_stocktaking_detail对象", description="åå
·çç¹æç»") |
| | | public class ToolStocktakingDetail implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | private Date updateTime; |
| | | /**åå
·ID*/ |
| | | @Excel(name = "åå
·ID", width = 15) |
| | | @ApiModelProperty(value = "åå
·ID") |
| | | private String toolId; |
| | | /**çç¹åæ°é*/ |
| | | @Excel(name = "çç¹åæ°é", width = 15) |
| | | @ApiModelProperty(value = "çç¹åæ°é") |
| | | private BigDecimal beforeNumber; |
| | | /**å®é
çç¹æ°é*/ |
| | | @Excel(name = "å®é
çç¹æ°é", width = 15) |
| | | @ApiModelProperty(value = "å®é
çç¹æ°é") |
| | | private BigDecimal actualNumber; |
| | | /**çç¹ç»æ*/ |
| | | @Excel(name = "çç¹ç»æ", width = 15) |
| | | @ApiModelProperty(value = "çç¹ç»æ") |
| | | private String stocktakingResult; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * @Description: çç¹åºååæ´ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("cms_tool_stocktaking_inventory_change") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="cms_tool_stocktaking_inventory_change对象", description="çç¹åºååæ´") |
| | | public class ToolStocktakingInventoryChange implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /**主é®*/ |
| | | @TableId(type = IdType.ASSIGN_ID) |
| | | @ApiModelProperty(value = "主é®") |
| | | private String id; |
| | | /**å建人*/ |
| | | @ApiModelProperty(value = "å建人") |
| | | private String createBy; |
| | | /**å建æ¶é´*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private Date createTime; |
| | | /**çç¹æç»ID*/ |
| | | @Excel(name = "çç¹æç»ID", width = 15) |
| | | @ApiModelProperty(value = "çç¹æç»ID") |
| | | private String detailId; |
| | | /**åºåID*/ |
| | | @Excel(name = "åºåID", width = 15) |
| | | @ApiModelProperty(value = "åºåID") |
| | | private String inventoryId; |
| | | /**åå
·æ¡ç */ |
| | | @Excel(name = "åå
·æ¡ç ", width = 15) |
| | | @ApiModelProperty(value = "åå
·æ¡ç ") |
| | | private String toolBarcode; |
| | | /**æ°é(é»è®¤1)*/ |
| | | @Excel(name = "æ°é(é»è®¤1)", width = 15) |
| | | @ApiModelProperty(value = "æ°é(é»è®¤1)") |
| | | private BigDecimal number; |
| | | /**åæ´ç±»å;æ£å¸¸/åºåº/å
¥åº*/ |
| | | @Excel(name = "åæ´ç±»å;æ£å¸¸/åºåº/å
¥åº", width = 15) |
| | | @ApiModelProperty(value = "åæ´ç±»å;æ£å¸¸/åºåº/å
¥åº") |
| | | private String changeType; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.mapper; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.cms.entity.CuttingInboundDetail; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: å
¥åºåæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface CuttingInboundDetailMapper extends BaseMapper<CuttingInboundDetail> { |
| | | public List<Map<String, Object>> detailList(@Param("orderId") String orderId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.cms.entity.CuttingInboundInventory; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: å
¥åºååºåå
³ç³» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface CuttingInboundInventoryMapper extends BaseMapper<CuttingInboundInventory> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.cms.entity.CuttingInbound; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: åå
·å
¥åºå |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface CuttingInboundMapper extends BaseMapper<CuttingInbound> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.cms.entity.CuttingInventory; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: åå
·åºå |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface CuttingInventoryMapper extends BaseMapper<CuttingInventory> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.cms.entity.CuttingProperties; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: åå
·æ©å±å±æ§ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface CuttingPropertiesMapper extends BaseMapper<CuttingProperties> { |
| | | |
| | | List<CuttingProperties> selectListByCuttingId(@Param("cuttingId") String cuttingId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.mapper; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.cms.entity.CuttingReceiveDetail; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: é¢ç¨åæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface CuttingReceiveDetailMapper extends BaseMapper<CuttingReceiveDetail> { |
| | | |
| | | public List<Map<String, Object>> detailList(@Param("orderId") String orderId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.cms.entity.CuttingReceive; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: åå
·é¢ç¨å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface CuttingReceiveMapper extends BaseMapper<CuttingReceive> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.mapper; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.cms.entity.CuttingScrapDetail; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: åå
·æ¥åºæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface CuttingScrapDetailMapper extends BaseMapper<CuttingScrapDetail> { |
| | | |
| | | public List<Map<String, Object>> detailList(@Param("orderId") String orderId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.cms.entity.CuttingScrap; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: åå
·æ¥åº |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface CuttingScrapMapper extends BaseMapper<CuttingScrap> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.mapper; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.cms.entity.CuttingTool; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: åå
·ä¿¡æ¯ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface CuttingToolMapper extends BaseMapper<CuttingTool> { |
| | | IPage<Map<String, Object>> getCuttingToolList(IPage<Map> pageData, @Param("params") Map<String,Object> params); |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.mapper; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.cms.entity.EdgeGrindingDetail; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: åå
·ä¿®ç£¨æç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface EdgeGrindingDetailMapper extends BaseMapper<EdgeGrindingDetail> { |
| | | |
| | | public List<Map<String, Object>> detailList(@Param("orderId") String orderId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.cms.entity.EdgeGrinding; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: åå
·ä¿®ç£¨ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface EdgeGrindingMapper extends BaseMapper<EdgeGrinding> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.cms.entity.RatedLife; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: é¢å®å¯¿å½ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface RatedLifeMapper extends BaseMapper<RatedLife> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.cms.entity.ToolStocktakingDetail; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: åå
·çç¹æç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface ToolStocktakingDetailMapper extends BaseMapper<ToolStocktakingDetail> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.cms.entity.ToolStocktakingInventoryChange; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: çç¹åºååæ´ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface ToolStocktakingInventoryChangeMapper extends BaseMapper<ToolStocktakingInventoryChange> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.cms.entity.ToolStocktaking; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: åå
·çç¹ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface ToolStocktakingMapper extends BaseMapper<ToolStocktaking> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.cms.mapper.CuttingInboundDetailMapper"> |
| | | |
| | | <select id="detailList" resultType="map"> |
| | | SELECT |
| | | t1.id, |
| | | t1.order_id orderId, |
| | | t1.cutting_id cuttingId, |
| | | t1.receive_number receiveNumber, |
| | | t2.cutting_code cuttingCode, |
| | | t2.cutting_name cuttingName |
| | | FROM |
| | | cms_cutting_inbound_detail t1 |
| | | LEFT JOIN cms_cutting_tool t2 ON t1.cutting_id = t2.id |
| | | WHERE t1.order_id = #{orderId} |
| | | </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.cms.mapper.CuttingInboundInventoryMapper"> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.cms.mapper.CuttingInboundMapper"> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.cms.mapper.CuttingInventoryMapper"> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.cms.mapper.CuttingPropertiesMapper"> |
| | | |
| | | <select id="selectListByCuttingId" resultType="org.jeecg.modules.cms.entity.CuttingProperties"> |
| | | SELECT |
| | | t.id, |
| | | t.property_code propertyCode, |
| | | t.property_name propertyName, |
| | | t.property_unit propertyUnit, |
| | | t.property_value propertyValue |
| | | FROM cms_cutting_properties t |
| | | WHERE t.cutting_id = #{cuttingId} |
| | | |
| | | </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.cms.mapper.CuttingReceiveDetailMapper"> |
| | | |
| | | <select id="detailList" resultType="map"> |
| | | SELECT |
| | | t1.id, |
| | | t1.order_id orderId, |
| | | t1.cutting_id cuttingId, |
| | | t1.workpiece_material workpieceMaterial, |
| | | t1.used_life usedLife, |
| | | t2.cutting_code cuttingCode, |
| | | t2.cutting_name cuttingName |
| | | FROM |
| | | cms_cutting_receive_detail t1 |
| | | LEFT JOIN cms_cutting_tool t2 ON t1.cutting_id = t2.id |
| | | WHERE t1.order_id = #{orderId} |
| | | </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.cms.mapper.CuttingReceiveMapper"> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.cms.mapper.CuttingScrapDetailMapper"> |
| | | |
| | | <select id="detailList" resultType="map"> |
| | | SELECT |
| | | t1.id, |
| | | t1.order_id orderId, |
| | | t1.cutting_id cuttingId, |
| | | t2.cutting_code cuttingCode, |
| | | t2.cutting_name cuttingName |
| | | FROM |
| | | cms_cutting_scrap_detail t1 |
| | | LEFT JOIN cms_cutting_tool t2 ON t1.cutting_id = t2.id |
| | | WHERE t1.order_id = #{orderId} |
| | | </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.cms.mapper.CuttingScrapMapper"> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.cms.mapper.CuttingToolMapper"> |
| | | |
| | | <select id="getCuttingToolList" parameterType="Map" resultType="Map"> |
| | | SELECT |
| | | t1.id, |
| | | t1.cutting_code cuttingCode, |
| | | t1.cutting_name cuttingName, |
| | | t1.cutting_category, |
| | | t1.store_location storeLocation, |
| | | t1.supplier_id supplierId, |
| | | t1.minimum_package_unit minimumPackageUnit, |
| | | t1.cutting_material cuttingMaterial, |
| | | t1.cutting_model cuttingModel, |
| | | t1.drawing_number drawingNumber, |
| | | t1.inventory_warning inventoryWarning, |
| | | t2.item_text cuttingCategory |
| | | FROM |
| | | cms_cutting_tool t1 |
| | | left join (select * from v_sys_dict where dict_code = 'cutting_category') t2 on t2.item_value = t1.cutting_category |
| | | WHERE t1.del_flag = 0 |
| | | <if test="params.cuttingCode != null and params.cuttingCode != ''"> |
| | | and t1.cutting_code like concat('%',#{params.cuttingCode},'%') |
| | | </if> |
| | | <if test="params.cuttingName != null and params.cuttingName != ''"> |
| | | and t1.cutting_name like concat('%',#{params.cuttingName},'%') |
| | | </if> |
| | | <if test="params.cuttingCategory != null and params.cuttingCategory != ''"> |
| | | and t1.cutting_category = #{params.cuttingCategory} |
| | | </if> |
| | | </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.cms.mapper.EdgeGrindingDetailMapper"> |
| | | |
| | | <select id="detailList" resultType="map"> |
| | | SELECT |
| | | t1.id, |
| | | t1.order_id orderId, |
| | | t1.cutting_id cuttingId, |
| | | t1.new_cutting_id newCuttingId, |
| | | t2.cutting_code cuttingCode, |
| | | t2.cutting_name cuttingName, |
| | | t3.cutting_code newCuttingCode, |
| | | t3.cutting_name newCuttingName |
| | | FROM |
| | | cms_edge_grinding_detail t1 |
| | | LEFT JOIN cms_cutting_tool t2 ON t1.cutting_id = t2.id |
| | | LEFT JOIN cms_cutting_tool t3 ON t1.new_cutting_id = t3.id |
| | | WHERE t1.order_id = #{orderId} |
| | | </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.cms.mapper.EdgeGrindingMapper"> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.cms.mapper.RatedLifeMapper"> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.cms.mapper.ToolStocktakingDetailMapper"> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.cms.mapper.ToolStocktakingInventoryChangeMapper"> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.cms.mapper.ToolStocktakingMapper"> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service; |
| | | |
| | | import org.jeecg.modules.cms.entity.CuttingInboundDetail; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description: å
¥åºåæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface ICuttingInboundDetailService extends IService<CuttingInboundDetail> { |
| | | |
| | | public List<Map<String, Object>> detailList(String orderId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service; |
| | | |
| | | import org.jeecg.modules.cms.entity.CuttingInboundInventory; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * @Description: å
¥åºååºåå
³ç³» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface ICuttingInboundInventoryService extends IService<CuttingInboundInventory> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service; |
| | | |
| | | import org.jeecg.modules.cms.entity.CuttingInbound; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * @Description: åå
·å
¥åºå |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface ICuttingInboundService extends IService<CuttingInbound> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service; |
| | | |
| | | import org.jeecg.modules.cms.entity.CuttingInventory; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * @Description: åå
·åºå |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface ICuttingInventoryService extends IService<CuttingInventory> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service; |
| | | |
| | | import org.jeecg.modules.cms.entity.CuttingProperties; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description: åå
·æ©å±å±æ§ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface ICuttingPropertiesService extends IService<CuttingProperties> { |
| | | |
| | | List<CuttingProperties> selectListByCuttingId(String cuttingId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service; |
| | | |
| | | import org.jeecg.modules.cms.entity.CuttingReceiveDetail; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description: é¢ç¨åæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface ICuttingReceiveDetailService extends IService<CuttingReceiveDetail> { |
| | | |
| | | public List<Map<String, Object>> detailList(String orderId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service; |
| | | |
| | | import org.jeecg.modules.cms.entity.CuttingReceive; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * @Description: åå
·é¢ç¨å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface ICuttingReceiveService extends IService<CuttingReceive> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service; |
| | | |
| | | import org.jeecg.modules.cms.entity.CuttingScrapDetail; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description: åå
·æ¥åºæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface ICuttingScrapDetailService extends IService<CuttingScrapDetail> { |
| | | |
| | | public List<Map<String, Object>> detailList(String orderId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service; |
| | | |
| | | import org.jeecg.modules.cms.entity.CuttingScrap; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * @Description: åå
·æ¥åº |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface ICuttingScrapService extends IService<CuttingScrap> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.jeecg.modules.cms.entity.CuttingTool; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description: åå
·ä¿¡æ¯ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface ICuttingToolService extends IService<CuttingTool> { |
| | | |
| | | IPage<Map<String, Object>> getCuttingToolList(Integer pageNo, Integer pageSize, Map<String, Object> params); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service; |
| | | |
| | | import org.jeecg.modules.cms.entity.EdgeGrindingDetail; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description: åå
·ä¿®ç£¨æç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IEdgeGrindingDetailService extends IService<EdgeGrindingDetail> { |
| | | |
| | | public List<Map<String, Object>> detailList(String orderId); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service; |
| | | |
| | | import org.jeecg.modules.cms.entity.EdgeGrinding; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * @Description: åå
·ä¿®ç£¨ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IEdgeGrindingService extends IService<EdgeGrinding> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service; |
| | | |
| | | import org.jeecg.modules.cms.entity.RatedLife; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * @Description: é¢å®å¯¿å½ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IRatedLifeService extends IService<RatedLife> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service; |
| | | |
| | | import org.jeecg.modules.cms.entity.ToolStocktakingDetail; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * @Description: åå
·çç¹æç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IToolStocktakingDetailService extends IService<ToolStocktakingDetail> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service; |
| | | |
| | | import org.jeecg.modules.cms.entity.ToolStocktakingInventoryChange; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * @Description: çç¹åºååæ´ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IToolStocktakingInventoryChangeService extends IService<ToolStocktakingInventoryChange> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service; |
| | | |
| | | import org.jeecg.modules.cms.entity.ToolStocktaking; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | /** |
| | | * @Description: åå
·çç¹ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IToolStocktakingService extends IService<ToolStocktaking> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service.impl; |
| | | |
| | | import org.jeecg.modules.cms.entity.CuttingInboundDetail; |
| | | import org.jeecg.modules.cms.mapper.CuttingInboundDetailMapper; |
| | | import org.jeecg.modules.cms.service.ICuttingInboundDetailService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description: å
¥åºåæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class CuttingInboundDetailServiceImpl extends ServiceImpl<CuttingInboundDetailMapper, CuttingInboundDetail> implements ICuttingInboundDetailService { |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> detailList(String orderId) { |
| | | return this.baseMapper.detailList(orderId); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service.impl; |
| | | |
| | | import org.jeecg.modules.cms.entity.CuttingInboundInventory; |
| | | import org.jeecg.modules.cms.mapper.CuttingInboundInventoryMapper; |
| | | import org.jeecg.modules.cms.service.ICuttingInboundInventoryService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | /** |
| | | * @Description: å
¥åºååºåå
³ç³» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class CuttingInboundInventoryServiceImpl extends ServiceImpl<CuttingInboundInventoryMapper, CuttingInboundInventory> implements ICuttingInboundInventoryService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service.impl; |
| | | |
| | | import org.jeecg.modules.cms.entity.CuttingInbound; |
| | | import org.jeecg.modules.cms.mapper.CuttingInboundMapper; |
| | | import org.jeecg.modules.cms.service.ICuttingInboundService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | /** |
| | | * @Description: åå
·å
¥åºå |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class CuttingInboundServiceImpl extends ServiceImpl<CuttingInboundMapper, CuttingInbound> implements ICuttingInboundService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service.impl; |
| | | |
| | | import org.jeecg.modules.cms.entity.CuttingInventory; |
| | | import org.jeecg.modules.cms.mapper.CuttingInventoryMapper; |
| | | import org.jeecg.modules.cms.service.ICuttingInventoryService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | /** |
| | | * @Description: åå
·åºå |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class CuttingInventoryServiceImpl extends ServiceImpl<CuttingInventoryMapper, CuttingInventory> implements ICuttingInventoryService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service.impl; |
| | | |
| | | import org.jeecg.modules.cms.entity.CuttingProperties; |
| | | import org.jeecg.modules.cms.mapper.CuttingPropertiesMapper; |
| | | import org.jeecg.modules.cms.service.ICuttingPropertiesService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Description: åå
·æ©å±å±æ§ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class CuttingPropertiesServiceImpl extends ServiceImpl<CuttingPropertiesMapper, CuttingProperties> implements ICuttingPropertiesService { |
| | | |
| | | @Override |
| | | public List<CuttingProperties> selectListByCuttingId(String cuttingId) { |
| | | return this.baseMapper.selectListByCuttingId(cuttingId); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service.impl; |
| | | |
| | | import org.jeecg.modules.cms.entity.CuttingReceiveDetail; |
| | | import org.jeecg.modules.cms.mapper.CuttingReceiveDetailMapper; |
| | | import org.jeecg.modules.cms.service.ICuttingReceiveDetailService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description: é¢ç¨åæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class CuttingReceiveDetailServiceImpl extends ServiceImpl<CuttingReceiveDetailMapper, CuttingReceiveDetail> implements ICuttingReceiveDetailService { |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> detailList(String orderId) { |
| | | return this.baseMapper.detailList(orderId); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service.impl; |
| | | |
| | | import org.jeecg.modules.cms.entity.CuttingReceive; |
| | | import org.jeecg.modules.cms.mapper.CuttingReceiveMapper; |
| | | import org.jeecg.modules.cms.service.ICuttingReceiveService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | /** |
| | | * @Description: åå
·é¢ç¨å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class CuttingReceiveServiceImpl extends ServiceImpl<CuttingReceiveMapper, CuttingReceive> implements ICuttingReceiveService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service.impl; |
| | | |
| | | import org.jeecg.modules.cms.entity.CuttingScrapDetail; |
| | | import org.jeecg.modules.cms.mapper.CuttingScrapDetailMapper; |
| | | import org.jeecg.modules.cms.service.ICuttingScrapDetailService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description: åå
·æ¥åºæç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class CuttingScrapDetailServiceImpl extends ServiceImpl<CuttingScrapDetailMapper, CuttingScrapDetail> implements ICuttingScrapDetailService { |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> detailList(String orderId) { |
| | | return this.baseMapper.detailList(orderId); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service.impl; |
| | | |
| | | import org.jeecg.modules.cms.entity.CuttingScrap; |
| | | import org.jeecg.modules.cms.mapper.CuttingScrapMapper; |
| | | import org.jeecg.modules.cms.service.ICuttingScrapService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | /** |
| | | * @Description: åå
·æ¥åº |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class CuttingScrapServiceImpl extends ServiceImpl<CuttingScrapMapper, CuttingScrap> implements ICuttingScrapService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.jeecg.modules.cms.entity.CuttingTool; |
| | | import org.jeecg.modules.cms.mapper.CuttingToolMapper; |
| | | import org.jeecg.modules.cms.service.ICuttingToolService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description: åå
·ä¿¡æ¯ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class CuttingToolServiceImpl extends ServiceImpl<CuttingToolMapper, CuttingTool> implements ICuttingToolService { |
| | | |
| | | @Override |
| | | public IPage<Map<String, Object>> getCuttingToolList(Integer pageNo, Integer pageSize, Map<String, Object> params) { |
| | | IPage<Map> pageData = new Page<Map>(pageNo, pageSize); |
| | | return super.getBaseMapper().getCuttingToolList(pageData,params); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service.impl; |
| | | |
| | | import org.jeecg.modules.cms.entity.EdgeGrindingDetail; |
| | | import org.jeecg.modules.cms.mapper.EdgeGrindingDetailMapper; |
| | | import org.jeecg.modules.cms.service.IEdgeGrindingDetailService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @Description: åå
·ä¿®ç£¨æç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class EdgeGrindingDetailServiceImpl extends ServiceImpl<EdgeGrindingDetailMapper, EdgeGrindingDetail> implements IEdgeGrindingDetailService { |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> detailList(String orderId) { |
| | | return this.baseMapper.detailList(orderId); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service.impl; |
| | | |
| | | import org.jeecg.modules.cms.entity.EdgeGrinding; |
| | | import org.jeecg.modules.cms.mapper.EdgeGrindingMapper; |
| | | import org.jeecg.modules.cms.service.IEdgeGrindingService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | /** |
| | | * @Description: åå
·ä¿®ç£¨ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class EdgeGrindingServiceImpl extends ServiceImpl<EdgeGrindingMapper, EdgeGrinding> implements IEdgeGrindingService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service.impl; |
| | | |
| | | import org.jeecg.modules.cms.entity.RatedLife; |
| | | import org.jeecg.modules.cms.mapper.RatedLifeMapper; |
| | | import org.jeecg.modules.cms.service.IRatedLifeService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | /** |
| | | * @Description: é¢å®å¯¿å½ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class RatedLifeServiceImpl extends ServiceImpl<RatedLifeMapper, RatedLife> implements IRatedLifeService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service.impl; |
| | | |
| | | import org.jeecg.modules.cms.entity.ToolStocktakingDetail; |
| | | import org.jeecg.modules.cms.mapper.ToolStocktakingDetailMapper; |
| | | import org.jeecg.modules.cms.service.IToolStocktakingDetailService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | /** |
| | | * @Description: åå
·çç¹æç» |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class ToolStocktakingDetailServiceImpl extends ServiceImpl<ToolStocktakingDetailMapper, ToolStocktakingDetail> implements IToolStocktakingDetailService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service.impl; |
| | | |
| | | import org.jeecg.modules.cms.entity.ToolStocktakingInventoryChange; |
| | | import org.jeecg.modules.cms.mapper.ToolStocktakingInventoryChangeMapper; |
| | | import org.jeecg.modules.cms.service.IToolStocktakingInventoryChangeService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | /** |
| | | * @Description: çç¹åºååæ´ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class ToolStocktakingInventoryChangeServiceImpl extends ServiceImpl<ToolStocktakingInventoryChangeMapper, ToolStocktakingInventoryChange> implements IToolStocktakingInventoryChangeService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.cms.service.impl; |
| | | |
| | | import org.jeecg.modules.cms.entity.ToolStocktaking; |
| | | import org.jeecg.modules.cms.mapper.ToolStocktakingMapper; |
| | | import org.jeecg.modules.cms.service.IToolStocktakingService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | /** |
| | | * @Description: åå
·çç¹ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-28 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class ToolStocktakingServiceImpl extends ServiceImpl<ToolStocktakingMapper, ToolStocktaking> implements IToolStocktakingService { |
| | | |
| | | } |