¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.modules.mes.entity.MesKittingCompletenessCheck; |
| | | import org.jeecg.modules.mes.service.IMesKittingCompletenessCheckService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | |
| | | /** |
| | | * @Description: é½å¥æ§æ£æ¥è®°å½ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="é½å¥æ§æ£æ¥è®°å½") |
| | | @RestController |
| | | @RequestMapping("/meskittingcompletenesscheck/mesKittingCompletenessCheck") |
| | | @Slf4j |
| | | public class MesKittingCompletenessCheckController extends JeecgController<MesKittingCompletenessCheck, IMesKittingCompletenessCheckService> { |
| | | @Autowired |
| | | private IMesKittingCompletenessCheckService mesKittingCompletenessCheckService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param mesKittingCompletenessCheck |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "é½å¥æ§æ£æ¥è®°å½-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="é½å¥æ§æ£æ¥è®°å½-å页å表æ¥è¯¢", notes="é½å¥æ§æ£æ¥è®°å½-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<MesKittingCompletenessCheck>> queryPageList(MesKittingCompletenessCheck mesKittingCompletenessCheck, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<MesKittingCompletenessCheck> queryWrapper = QueryGenerator.initQueryWrapper(mesKittingCompletenessCheck, req.getParameterMap()); |
| | | Page<MesKittingCompletenessCheck> page = new Page<MesKittingCompletenessCheck>(pageNo, pageSize); |
| | | IPage<MesKittingCompletenessCheck> pageList = mesKittingCompletenessCheckService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param mesKittingCompletenessCheck |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "é½å¥æ§æ£æ¥è®°å½-æ·»å ") |
| | | @ApiOperation(value="é½å¥æ§æ£æ¥è®°å½-æ·»å ", notes="é½å¥æ§æ£æ¥è®°å½-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_kitting_completeness_check:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody MesKittingCompletenessCheck mesKittingCompletenessCheck) { |
| | | mesKittingCompletenessCheckService.save(mesKittingCompletenessCheck); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param mesKittingCompletenessCheck |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "é½å¥æ§æ£æ¥è®°å½-ç¼è¾") |
| | | @ApiOperation(value="é½å¥æ§æ£æ¥è®°å½-ç¼è¾", notes="é½å¥æ§æ£æ¥è®°å½-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_kitting_completeness_check:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody MesKittingCompletenessCheck mesKittingCompletenessCheck) { |
| | | mesKittingCompletenessCheckService.updateById(mesKittingCompletenessCheck); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "é½å¥æ§æ£æ¥è®°å½-éè¿idå é¤") |
| | | @ApiOperation(value="é½å¥æ§æ£æ¥è®°å½-éè¿idå é¤", notes="é½å¥æ§æ£æ¥è®°å½-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_kitting_completeness_check:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | mesKittingCompletenessCheckService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "é½å¥æ§æ£æ¥è®°å½-æ¹éå é¤") |
| | | @ApiOperation(value="é½å¥æ§æ£æ¥è®°å½-æ¹éå é¤", notes="é½å¥æ§æ£æ¥è®°å½-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_kitting_completeness_check:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.mesKittingCompletenessCheckService.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<MesKittingCompletenessCheck> queryById(@RequestParam(name="id",required=true) String id) { |
| | | MesKittingCompletenessCheck mesKittingCompletenessCheck = mesKittingCompletenessCheckService.getById(id); |
| | | if(mesKittingCompletenessCheck==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(mesKittingCompletenessCheck); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param mesKittingCompletenessCheck |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules:mes_kitting_completeness_check:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, MesKittingCompletenessCheck mesKittingCompletenessCheck) { |
| | | return super.exportXls(request, mesKittingCompletenessCheck, MesKittingCompletenessCheck.class, "é½å¥æ§æ£æ¥è®°å½"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("mes_kitting_completeness_check:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, MesKittingCompletenessCheck.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.modules.mes.entity.MesMaterialLoading; |
| | | import org.jeecg.modules.mes.service.IMesMaterialLoadingService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | |
| | | /** |
| | | * @Description: 䏿 |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="䏿") |
| | | @RestController |
| | | @RequestMapping("/mesmaterialloading/mesMaterialLoading") |
| | | @Slf4j |
| | | public class MesMaterialLoadingController extends JeecgController<MesMaterialLoading, IMesMaterialLoadingService> { |
| | | @Autowired |
| | | private IMesMaterialLoadingService mesMaterialLoadingService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param mesMaterialLoading |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "䏿-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="䏿-å页å表æ¥è¯¢", notes="䏿-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<MesMaterialLoading>> queryPageList(MesMaterialLoading mesMaterialLoading, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<MesMaterialLoading> queryWrapper = QueryGenerator.initQueryWrapper(mesMaterialLoading, req.getParameterMap()); |
| | | Page<MesMaterialLoading> page = new Page<MesMaterialLoading>(pageNo, pageSize); |
| | | IPage<MesMaterialLoading> pageList = mesMaterialLoadingService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param mesMaterialLoading |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "䏿-æ·»å ") |
| | | @ApiOperation(value="䏿-æ·»å ", notes="䏿-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_material_loading:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody MesMaterialLoading mesMaterialLoading) { |
| | | mesMaterialLoadingService.save(mesMaterialLoading); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param mesMaterialLoading |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "䏿-ç¼è¾") |
| | | @ApiOperation(value="䏿-ç¼è¾", notes="䏿-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_material_loading:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody MesMaterialLoading mesMaterialLoading) { |
| | | mesMaterialLoadingService.updateById(mesMaterialLoading); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "䏿-éè¿idå é¤") |
| | | @ApiOperation(value="䏿-éè¿idå é¤", notes="䏿-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_material_loading:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | mesMaterialLoadingService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "䏿-æ¹éå é¤") |
| | | @ApiOperation(value="䏿-æ¹éå é¤", notes="䏿-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_material_loading:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.mesMaterialLoadingService.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<MesMaterialLoading> queryById(@RequestParam(name="id",required=true) String id) { |
| | | MesMaterialLoading mesMaterialLoading = mesMaterialLoadingService.getById(id); |
| | | if(mesMaterialLoading==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(mesMaterialLoading); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param mesMaterialLoading |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules:mes_material_loading:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, MesMaterialLoading mesMaterialLoading) { |
| | | return super.exportXls(request, mesMaterialLoading, MesMaterialLoading.class, "䏿"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("mes_material_loading:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, MesMaterialLoading.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.modules.mes.entity.MesMaterialTransferRequest; |
| | | import org.jeecg.modules.mes.service.IMesMaterialTransferRequestService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | |
| | | /** |
| | | * @Description: ç©ææå¨ç³è¯· |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="ç©ææå¨ç³è¯·") |
| | | @RestController |
| | | @RequestMapping("/mesmaterialtransferrequest/mesMaterialTransferRequest") |
| | | @Slf4j |
| | | public class MesMaterialTransferRequestController extends JeecgController<MesMaterialTransferRequest, IMesMaterialTransferRequestService> { |
| | | @Autowired |
| | | private IMesMaterialTransferRequestService mesMaterialTransferRequestService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param mesMaterialTransferRequest |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "ç©ææå¨ç³è¯·-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="ç©ææå¨ç³è¯·-å页å表æ¥è¯¢", notes="ç©ææå¨ç³è¯·-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<MesMaterialTransferRequest>> queryPageList(MesMaterialTransferRequest mesMaterialTransferRequest, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<MesMaterialTransferRequest> queryWrapper = QueryGenerator.initQueryWrapper(mesMaterialTransferRequest, req.getParameterMap()); |
| | | Page<MesMaterialTransferRequest> page = new Page<MesMaterialTransferRequest>(pageNo, pageSize); |
| | | IPage<MesMaterialTransferRequest> pageList = mesMaterialTransferRequestService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param mesMaterialTransferRequest |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ç©ææå¨ç³è¯·-æ·»å ") |
| | | @ApiOperation(value="ç©ææå¨ç³è¯·-æ·»å ", notes="ç©ææå¨ç³è¯·-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_material_transfer_request:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody MesMaterialTransferRequest mesMaterialTransferRequest) { |
| | | mesMaterialTransferRequestService.save(mesMaterialTransferRequest); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param mesMaterialTransferRequest |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ç©ææå¨ç³è¯·-ç¼è¾") |
| | | @ApiOperation(value="ç©ææå¨ç³è¯·-ç¼è¾", notes="ç©ææå¨ç³è¯·-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_material_transfer_request:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody MesMaterialTransferRequest mesMaterialTransferRequest) { |
| | | mesMaterialTransferRequestService.updateById(mesMaterialTransferRequest); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ç©ææå¨ç³è¯·-éè¿idå é¤") |
| | | @ApiOperation(value="ç©ææå¨ç³è¯·-éè¿idå é¤", notes="ç©ææå¨ç³è¯·-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_material_transfer_request:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | mesMaterialTransferRequestService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ç©ææå¨ç³è¯·-æ¹éå é¤") |
| | | @ApiOperation(value="ç©ææå¨ç³è¯·-æ¹éå é¤", notes="ç©ææå¨ç³è¯·-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_material_transfer_request:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.mesMaterialTransferRequestService.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<MesMaterialTransferRequest> queryById(@RequestParam(name="id",required=true) String id) { |
| | | MesMaterialTransferRequest mesMaterialTransferRequest = mesMaterialTransferRequestService.getById(id); |
| | | if(mesMaterialTransferRequest==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(mesMaterialTransferRequest); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param mesMaterialTransferRequest |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules:mes_material_transfer_request:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, MesMaterialTransferRequest mesMaterialTransferRequest) { |
| | | return super.exportXls(request, mesMaterialTransferRequest, MesMaterialTransferRequest.class, "ç©ææå¨ç³è¯·"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("mes_material_transfer_request:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, MesMaterialTransferRequest.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.modules.mes.entity.MesMaterialUnloading; |
| | | import org.jeecg.modules.mes.service.IMesMaterialUnloadingService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | |
| | | /** |
| | | * @Description: 䏿 |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="䏿") |
| | | @RestController |
| | | @RequestMapping("/mes/mesMaterialUnloading") |
| | | @Slf4j |
| | | public class MesMaterialUnloadingController extends JeecgController<MesMaterialUnloading, IMesMaterialUnloadingService> { |
| | | @Autowired |
| | | private IMesMaterialUnloadingService mesMaterialUnloadingService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param mesMaterialUnloading |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "䏿-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="䏿-å页å表æ¥è¯¢", notes="䏿-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<MesMaterialUnloading>> queryPageList(MesMaterialUnloading mesMaterialUnloading, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<MesMaterialUnloading> queryWrapper = QueryGenerator.initQueryWrapper(mesMaterialUnloading, req.getParameterMap()); |
| | | Page<MesMaterialUnloading> page = new Page<MesMaterialUnloading>(pageNo, pageSize); |
| | | IPage<MesMaterialUnloading> pageList = mesMaterialUnloadingService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param mesMaterialUnloading |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "䏿-æ·»å ") |
| | | @ApiOperation(value="䏿-æ·»å ", notes="䏿-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_material_unloading:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody MesMaterialUnloading mesMaterialUnloading) { |
| | | mesMaterialUnloadingService.save(mesMaterialUnloading); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param mesMaterialUnloading |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "䏿-ç¼è¾") |
| | | @ApiOperation(value="䏿-ç¼è¾", notes="䏿-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_material_unloading:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody MesMaterialUnloading mesMaterialUnloading) { |
| | | mesMaterialUnloadingService.updateById(mesMaterialUnloading); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "䏿-éè¿idå é¤") |
| | | @ApiOperation(value="䏿-éè¿idå é¤", notes="䏿-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_material_unloading:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | mesMaterialUnloadingService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "䏿-æ¹éå é¤") |
| | | @ApiOperation(value="䏿-æ¹éå é¤", notes="䏿-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_material_unloading:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.mesMaterialUnloadingService.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<MesMaterialUnloading> queryById(@RequestParam(name="id",required=true) String id) { |
| | | MesMaterialUnloading mesMaterialUnloading = mesMaterialUnloadingService.getById(id); |
| | | if(mesMaterialUnloading==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(mesMaterialUnloading); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param mesMaterialUnloading |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules:mes_material_unloading:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, MesMaterialUnloading mesMaterialUnloading) { |
| | | return super.exportXls(request, mesMaterialUnloading, MesMaterialUnloading.class, "䏿"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("mes_material_unloading:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, MesMaterialUnloading.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.modules.mes.entity.MesProductionOrder; |
| | | import org.jeecg.modules.mes.service.IMesProductionOrderService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | |
| | | /** |
| | | * @Description: SAPç产订å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="SAPç产订å") |
| | | @RestController |
| | | @RequestMapping("/mesproductionwork/mesProductionOrder") |
| | | @Slf4j |
| | | public class MesProductionOrderController extends JeecgController<MesProductionOrder, IMesProductionOrderService> { |
| | | @Autowired |
| | | private IMesProductionOrderService mesProductionOrderService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param mesProductionOrder |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "SAPç产订å-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="SAPç产订å-å页å表æ¥è¯¢", notes="SAPç产订å-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<MesProductionOrder>> queryPageList(MesProductionOrder mesProductionOrder, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<MesProductionOrder> queryWrapper = QueryGenerator.initQueryWrapper(mesProductionOrder, req.getParameterMap()); |
| | | Page<MesProductionOrder> page = new Page<MesProductionOrder>(pageNo, pageSize); |
| | | IPage<MesProductionOrder> pageList = mesProductionOrderService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param mesProductionOrder |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "SAPç产订å-æ·»å ") |
| | | @ApiOperation(value="SAPç产订å-æ·»å ", notes="SAPç产订å-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_production_order:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody MesProductionOrder mesProductionOrder) { |
| | | mesProductionOrderService.save(mesProductionOrder); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param mesProductionOrder |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "SAPç产订å-ç¼è¾") |
| | | @ApiOperation(value="SAPç产订å-ç¼è¾", notes="SAPç产订å-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_production_order:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody MesProductionOrder mesProductionOrder) { |
| | | mesProductionOrderService.updateById(mesProductionOrder); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "SAPç产订å-éè¿idå é¤") |
| | | @ApiOperation(value="SAPç产订å-éè¿idå é¤", notes="SAPç产订å-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_production_order:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | mesProductionOrderService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "SAPç产订å-æ¹éå é¤") |
| | | @ApiOperation(value="SAPç产订å-æ¹éå é¤", notes="SAPç产订å-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_production_order:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.mesProductionOrderService.removeByIds(Arrays.asList(ids.split(","))); |
| | | return Result.OK("æ¹éå 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idæ¥è¯¢ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "SAPç产订å-éè¿idæ¥è¯¢") |
| | | @ApiOperation(value="SAPç产订å-éè¿idæ¥è¯¢", notes="SAPç产订å-éè¿idæ¥è¯¢") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<MesProductionOrder> queryById(@RequestParam(name="id",required=true) String id) { |
| | | MesProductionOrder mesProductionOrder = mesProductionOrderService.getById(id); |
| | | if(mesProductionOrder==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(mesProductionOrder); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param mesProductionOrder |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules:mes_production_order:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, MesProductionOrder mesProductionOrder) { |
| | | return super.exportXls(request, mesProductionOrder, MesProductionOrder.class, "SAPç产订å"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("mes_production_order:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, MesProductionOrder.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.modules.mes.entity.MesProductionWorkOrder; |
| | | import org.jeecg.modules.mes.service.IMesProductionWorkOrderService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | |
| | | /** |
| | | * @Description: æäº§å·¥å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="æäº§å·¥å") |
| | | @RestController |
| | | @RequestMapping("/mesproductionworkorder/mesProductionWorkOrder") |
| | | @Slf4j |
| | | public class MesProductionWorkOrderController extends JeecgController<MesProductionWorkOrder, IMesProductionWorkOrderService> { |
| | | @Autowired |
| | | private IMesProductionWorkOrderService mesProductionWorkOrderService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param mesProductionWorkOrder |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "æäº§å·¥å-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="æäº§å·¥å-å页å表æ¥è¯¢", notes="æäº§å·¥å-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<MesProductionWorkOrder>> queryPageList(MesProductionWorkOrder mesProductionWorkOrder, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<MesProductionWorkOrder> queryWrapper = QueryGenerator.initQueryWrapper(mesProductionWorkOrder, req.getParameterMap()); |
| | | Page<MesProductionWorkOrder> page = new Page<MesProductionWorkOrder>(pageNo, pageSize); |
| | | IPage<MesProductionWorkOrder> pageList = mesProductionWorkOrderService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param mesProductionWorkOrder |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "æäº§å·¥å-æ·»å ") |
| | | @ApiOperation(value="æäº§å·¥å-æ·»å ", notes="æäº§å·¥å-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_production_work_order:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody MesProductionWorkOrder mesProductionWorkOrder) { |
| | | mesProductionWorkOrderService.save(mesProductionWorkOrder); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param mesProductionWorkOrder |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "æäº§å·¥å-ç¼è¾") |
| | | @ApiOperation(value="æäº§å·¥å-ç¼è¾", notes="æäº§å·¥å-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_production_work_order:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody MesProductionWorkOrder mesProductionWorkOrder) { |
| | | mesProductionWorkOrderService.updateById(mesProductionWorkOrder); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "æäº§å·¥å-éè¿idå é¤") |
| | | @ApiOperation(value="æäº§å·¥å-éè¿idå é¤", notes="æäº§å·¥å-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_production_work_order:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | mesProductionWorkOrderService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "æäº§å·¥å-æ¹éå é¤") |
| | | @ApiOperation(value="æäº§å·¥å-æ¹éå é¤", notes="æäº§å·¥å-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_production_work_order:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.mesProductionWorkOrderService.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<MesProductionWorkOrder> queryById(@RequestParam(name="id",required=true) String id) { |
| | | MesProductionWorkOrder mesProductionWorkOrder = mesProductionWorkOrderService.getById(id); |
| | | if(mesProductionWorkOrder==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(mesProductionWorkOrder); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param mesProductionWorkOrder |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules:mes_production_work_order:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, MesProductionWorkOrder mesProductionWorkOrder) { |
| | | return super.exportXls(request, mesProductionWorkOrder, MesProductionWorkOrder.class, "æäº§å·¥å"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("mes_production_work_order:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, MesProductionWorkOrder.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.modules.mes.entity.MesTransferOrderPrint; |
| | | import org.jeecg.modules.mes.service.IMesTransferOrderPrintService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | |
| | | /** |
| | | * @Description: ç§»åºåæå° |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="ç§»åºåæå°") |
| | | @RestController |
| | | @RequestMapping("/mestransferorderprint/mesTransferOrderPrint") |
| | | @Slf4j |
| | | public class MesTransferOrderPrintController extends JeecgController<MesTransferOrderPrint, IMesTransferOrderPrintService> { |
| | | @Autowired |
| | | private IMesTransferOrderPrintService mesTransferOrderPrintService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param mesTransferOrderPrint |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "ç§»åºåæå°-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="ç§»åºåæå°-å页å表æ¥è¯¢", notes="ç§»åºåæå°-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<MesTransferOrderPrint>> queryPageList(MesTransferOrderPrint mesTransferOrderPrint, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<MesTransferOrderPrint> queryWrapper = QueryGenerator.initQueryWrapper(mesTransferOrderPrint, req.getParameterMap()); |
| | | Page<MesTransferOrderPrint> page = new Page<MesTransferOrderPrint>(pageNo, pageSize); |
| | | IPage<MesTransferOrderPrint> pageList = mesTransferOrderPrintService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param mesTransferOrderPrint |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ç§»åºåæå°-æ·»å ") |
| | | @ApiOperation(value="ç§»åºåæå°-æ·»å ", notes="ç§»åºåæå°-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_transfer_order_print:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody MesTransferOrderPrint mesTransferOrderPrint) { |
| | | mesTransferOrderPrintService.save(mesTransferOrderPrint); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param mesTransferOrderPrint |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ç§»åºåæå°-ç¼è¾") |
| | | @ApiOperation(value="ç§»åºåæå°-ç¼è¾", notes="ç§»åºåæå°-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_transfer_order_print:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody MesTransferOrderPrint mesTransferOrderPrint) { |
| | | mesTransferOrderPrintService.updateById(mesTransferOrderPrint); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ç§»åºåæå°-éè¿idå é¤") |
| | | @ApiOperation(value="ç§»åºåæå°-éè¿idå é¤", notes="ç§»åºåæå°-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_transfer_order_print:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | mesTransferOrderPrintService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "ç§»åºåæå°-æ¹éå é¤") |
| | | @ApiOperation(value="ç§»åºåæå°-æ¹éå é¤", notes="ç§»åºåæå°-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_transfer_order_print:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.mesTransferOrderPrintService.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<MesTransferOrderPrint> queryById(@RequestParam(name="id",required=true) String id) { |
| | | MesTransferOrderPrint mesTransferOrderPrint = mesTransferOrderPrintService.getById(id); |
| | | if(mesTransferOrderPrint==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(mesTransferOrderPrint); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param mesTransferOrderPrint |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules:mes_transfer_order_print:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, MesTransferOrderPrint mesTransferOrderPrint) { |
| | | return super.exportXls(request, mesTransferOrderPrint, MesTransferOrderPrint.class, "ç§»åºåæå°"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("mes_transfer_order_print:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, MesTransferOrderPrint.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.modules.mes.entity.MesWorkReporting; |
| | | import org.jeecg.modules.mes.service.IMesWorkReportingService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | |
| | | /** |
| | | * @Description: 工忥工 |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Api(tags="工忥工") |
| | | @RestController |
| | | @RequestMapping("/mesworkreporting/mesWorkReporting") |
| | | @Slf4j |
| | | public class MesWorkReportingController extends JeecgController<MesWorkReporting, IMesWorkReportingService> { |
| | | @Autowired |
| | | private IMesWorkReportingService mesWorkReportingService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | | * |
| | | * @param mesWorkReporting |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @param req |
| | | * @return |
| | | */ |
| | | //@AutoLog(value = "工忥工-å页å表æ¥è¯¢") |
| | | @ApiOperation(value="工忥工-å页å表æ¥è¯¢", notes="工忥工-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/list") |
| | | public Result<IPage<MesWorkReporting>> queryPageList(MesWorkReporting mesWorkReporting, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | QueryWrapper<MesWorkReporting> queryWrapper = QueryGenerator.initQueryWrapper(mesWorkReporting, req.getParameterMap()); |
| | | Page<MesWorkReporting> page = new Page<MesWorkReporting>(pageNo, pageSize); |
| | | IPage<MesWorkReporting> pageList = mesWorkReportingService.page(page, queryWrapper); |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param mesWorkReporting |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "工忥工-æ·»å ") |
| | | @ApiOperation(value="工忥工-æ·»å ", notes="工忥工-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_work_reporting:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody MesWorkReporting mesWorkReporting) { |
| | | mesWorkReportingService.save(mesWorkReporting); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param mesWorkReporting |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "工忥工-ç¼è¾") |
| | | @ApiOperation(value="工忥工-ç¼è¾", notes="工忥工-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_work_reporting:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody MesWorkReporting mesWorkReporting) { |
| | | mesWorkReportingService.updateById(mesWorkReporting); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿idå é¤ |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "工忥工-éè¿idå é¤") |
| | | @ApiOperation(value="工忥工-éè¿idå é¤", notes="工忥工-éè¿idå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_work_reporting:delete") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | mesWorkReportingService.removeById(id); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "工忥工-æ¹éå é¤") |
| | | @ApiOperation(value="工忥工-æ¹éå é¤", notes="工忥工-æ¹éå é¤") |
| | | //@RequiresPermissions("org.jeecg.modules:mes_work_reporting:deleteBatch") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | | this.mesWorkReportingService.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<MesWorkReporting> queryById(@RequestParam(name="id",required=true) String id) { |
| | | MesWorkReporting mesWorkReporting = mesWorkReportingService.getById(id); |
| | | if(mesWorkReporting==null) { |
| | | return Result.error("æªæ¾å°å¯¹åºæ°æ®"); |
| | | } |
| | | return Result.OK(mesWorkReporting); |
| | | } |
| | | |
| | | /** |
| | | * 导åºexcel |
| | | * |
| | | * @param request |
| | | * @param mesWorkReporting |
| | | */ |
| | | //@RequiresPermissions("org.jeecg.modules:mes_work_reporting:exportXls") |
| | | @RequestMapping(value = "/exportXls") |
| | | public ModelAndView exportXls(HttpServletRequest request, MesWorkReporting mesWorkReporting) { |
| | | return super.exportXls(request, mesWorkReporting, MesWorkReporting.class, "工忥工"); |
| | | } |
| | | |
| | | /** |
| | | * éè¿excel导å
¥æ°æ® |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | | */ |
| | | //@RequiresPermissions("mes_work_reporting:importExcel") |
| | | @RequestMapping(value = "/importExcel", method = RequestMethod.POST) |
| | | public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { |
| | | return super.importExcel(request, response, MesWorkReporting.class); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description: é½å¥æ§æ£æ¥è®°å½ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("mes_kitting_completeness_check") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="mes_kitting_completeness_check对象", description="é½å¥æ§æ£æ¥è®°å½") |
| | | public class MesKittingCompletenessCheck 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 HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "åå»ºæ¥æ") |
| | | private Date createTime; |
| | | /**å·¥åID*/ |
| | | @Excel(name = "å·¥åID", width = 15) |
| | | @ApiModelProperty(value = "å·¥åID") |
| | | private String workOrderId; |
| | | /**ç©æç¼å·*/ |
| | | @Excel(name = "ç©æç¼å·", width = 15) |
| | | @ApiModelProperty(value = "ç©æç¼å·") |
| | | private String materialNumber; |
| | | /**ç©æåç§°*/ |
| | | @Excel(name = "ç©æåç§°", width = 15) |
| | | @ApiModelProperty(value = "ç©æåç§°") |
| | | private String materialName; |
| | | /**éæ±æ°é*/ |
| | | @Excel(name = "éæ±æ°é", width = 15) |
| | | @ApiModelProperty(value = "éæ±æ°é") |
| | | private Double requiredQuantity; |
| | | /**å®é
æ°é*/ |
| | | @Excel(name = "å®é
æ°é", width = 15) |
| | | @ApiModelProperty(value = "å®é
æ°é") |
| | | private Double actualQuantity; |
| | | /**æ¯å¦é½å¤*/ |
| | | @Excel(name = "æ¯å¦é½å¤", width = 15) |
| | | @ApiModelProperty(value = "æ¯å¦é½å¤") |
| | | private String checkFlag; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description: 䏿 |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("mes_material_loading") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="mes_material_loading对象", description="䏿") |
| | | public class MesMaterialLoading 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 HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "åå»ºæ¥æ") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¥æ*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "æ´æ°æ¥æ") |
| | | private Date updateTime; |
| | | /**å 餿 è®°*/ |
| | | @Excel(name = "å 餿 è®°", width = 15) |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | @TableLogic |
| | | private Integer delFlag; |
| | | /**ç³è¯·åID*/ |
| | | @Excel(name = "ç³è¯·åID", width = 15) |
| | | @ApiModelProperty(value = "ç³è¯·åID") |
| | | private String requestId; |
| | | /**ç©æç¼ç */ |
| | | @Excel(name = "ç©æç¼ç ", width = 15) |
| | | @ApiModelProperty(value = "ç©æç¼ç ") |
| | | private String materialNumber; |
| | | /**ç©æåç§°*/ |
| | | @Excel(name = "ç©æåç§°", width = 15) |
| | | @ApiModelProperty(value = "ç©æåç§°") |
| | | private String materialName; |
| | | /**ç论æå¨æ°é*/ |
| | | @Excel(name = "ç论æå¨æ°é", width = 15) |
| | | @ApiModelProperty(value = "ç论æå¨æ°é") |
| | | private Double specifiedQuantity; |
| | | /**å®é
æå¨æ°é*/ |
| | | @Excel(name = "å®é
æå¨æ°é", width = 15) |
| | | @ApiModelProperty(value = "å®é
æå¨æ°é") |
| | | private Double actualQuantity; |
| | | /**车é´å©ä½æ°é*/ |
| | | @Excel(name = "车é´å©ä½æ°é", width = 15) |
| | | @ApiModelProperty(value = "车é´å©ä½æ°é") |
| | | private Double remainingQuantity; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description: ç©ææå¨ç³è¯· |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("mes_material_transfer_request") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="mes_material_transfer_request对象", description="ç©ææå¨ç³è¯·") |
| | | public class MesMaterialTransferRequest 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 HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "åå»ºæ¥æ") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¥æ*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "æ´æ°æ¥æ") |
| | | private Date updateTime; |
| | | /**å 餿 è®°*/ |
| | | @Excel(name = "å 餿 è®°", width = 15) |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | @TableLogic |
| | | private Integer delFlag; |
| | | /**æå¨åå·*/ |
| | | @Excel(name = "æå¨åå·", width = 15) |
| | | @ApiModelProperty(value = "æå¨åå·") |
| | | private String requestCode; |
| | | /**å·¥åID*/ |
| | | @Excel(name = "å·¥åID", width = 15) |
| | | @ApiModelProperty(value = "å·¥åID") |
| | | private String workOrderId; |
| | | /**SAPé¢çå·*/ |
| | | @Excel(name = "SAPé¢çå·", width = 15) |
| | | @ApiModelProperty(value = "SAPé¢çå·") |
| | | private String reservationCode; |
| | | /**åå¸ç¶æ*/ |
| | | @Excel(name = "åå¸ç¶æ", width = 15, dicCode = "publish_status") |
| | | @Dict(dicCode = "publish_status") |
| | | @ApiModelProperty(value = "åå¸ç¶æ") |
| | | private String publishStatus; |
| | | /**请æ±ç¶æ*/ |
| | | @Excel(name = "请æ±ç¶æ", width = 15, dicCode = "request_status") |
| | | @Dict(dicCode = "request_status") |
| | | @ApiModelProperty(value = "请æ±ç¶æ") |
| | | private String requestStatus; |
| | | /**è¯·æ±æ¶é´*/ |
| | | @Excel(name = "è¯·æ±æ¶é´", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "è¯·æ±æ¶é´") |
| | | private Date requestTime; |
| | | /**ååºåå°*/ |
| | | @Excel(name = "ååºåå°", width = 15) |
| | | @ApiModelProperty(value = "ååºåå°") |
| | | private String originalWarehouseId; |
| | | /**ç®æ åºåå°*/ |
| | | @Excel(name = "ç®æ åºåå°", width = 15) |
| | | @ApiModelProperty(value = "ç®æ åºåå°") |
| | | private String targetWarehouseId; |
| | | /**ä¼å
çº§ï¼æå¨ç±»åï¼*/ |
| | | @Excel(name = "ä¼å
çº§ï¼æå¨ç±»åï¼", width = 15, dicCode = "priority") |
| | | @Dict(dicCode = "priority") |
| | | @ApiModelProperty(value = "ä¼å
çº§ï¼æå¨ç±»åï¼") |
| | | private String priority; |
| | | /**ææé
éæ¶é´*/ |
| | | @Excel(name = "ææé
éæ¶é´", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "ææé
éæ¶é´") |
| | | private Date latestDeliveryTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description: 䏿 |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("mes_material_unloading") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="mes_material_unloading对象", description="䏿") |
| | | public class MesMaterialUnloading 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 HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "åå»ºæ¥æ") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¥æ*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "æ´æ°æ¥æ") |
| | | private Date updateTime; |
| | | /**å 餿 è®°*/ |
| | | @Excel(name = "å 餿 è®°", width = 15) |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | @TableLogic |
| | | private Integer delFlag; |
| | | /**䏿id*/ |
| | | @Excel(name = "䏿id", width = 15) |
| | | @ApiModelProperty(value = "䏿id") |
| | | private String loadingId; |
| | | /**ç©æç¼ç */ |
| | | @Excel(name = "ç©æç¼ç ", width = 15) |
| | | @ApiModelProperty(value = "ç©æç¼ç ") |
| | | private String materialNumber; |
| | | /**ç©æåç§°*/ |
| | | @Excel(name = "ç©æåç§°", width = 15) |
| | | @ApiModelProperty(value = "ç©æåç§°") |
| | | private String materialName; |
| | | /**æ¹æ¬¡å·*/ |
| | | @Excel(name = "æ¹æ¬¡å·", width = 15) |
| | | @ApiModelProperty(value = "æ¹æ¬¡å·") |
| | | private String batchNumber; |
| | | /**æ°é*/ |
| | | @Excel(name = "æ°é", width = 15) |
| | | @ApiModelProperty(value = "æ°é") |
| | | private Double quantity; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description: SAPç产订å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("mes_production_order") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="mes_production_order对象", description="SAPç产订å") |
| | | public class MesProductionOrder 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 HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "åå»ºæ¥æ") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¥æ*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "æ´æ°æ¥æ") |
| | | private Date updateTime; |
| | | /**å 餿 è®°*/ |
| | | @Excel(name = "å 餿 è®°", width = 15) |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | @TableLogic |
| | | private Integer delFlag; |
| | | /**ç产订åå·*/ |
| | | @Excel(name = "ç产订åå·", width = 15) |
| | | @ApiModelProperty(value = "ç产订åå·") |
| | | private String orderCode; |
| | | /**订åç±»å*/ |
| | | @Excel(name = "订åç±»å", width = 15) |
| | | @ApiModelProperty(value = "订åç±»å") |
| | | private String orderCategory; |
| | | /**ç©æç¼å·*/ |
| | | @Excel(name = "ç©æç¼å·", width = 15) |
| | | @ApiModelProperty(value = "ç©æç¼å·") |
| | | private String materialNumber; |
| | | /**ç©æåç§°*/ |
| | | @Excel(name = "ç©æåç§°", width = 15) |
| | | @ApiModelProperty(value = "ç©æåç§°") |
| | | private String materialName; |
| | | /**计åå¼å§æ¥æ*/ |
| | | @Excel(name = "计åå¼å§æ¥æ", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "计åå¼å§æ¥æ") |
| | | private Date planStart; |
| | | /**计åç»ææ¥æ*/ |
| | | @Excel(name = "计åç»ææ¥æ", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "计åç»ææ¥æ") |
| | | private Date planEnd; |
| | | /**è®¢åæ°é*/ |
| | | @Excel(name = "è®¢åæ°é", width = 15) |
| | | @ApiModelProperty(value = "è®¢åæ°é") |
| | | private Double orderQuantity; |
| | | /**产ååä½*/ |
| | | @Excel(name = "产ååä½", width = 15, dicCode = "production_unit") |
| | | @Dict(dicCode = "production_unit") |
| | | @ApiModelProperty(value = "产ååä½") |
| | | private String productionUnit; |
| | | /**订åç¶æ*/ |
| | | @Excel(name = "订åç¶æ", width = 15, dicCode = "order_status") |
| | | @Dict(dicCode = "order_status") |
| | | @ApiModelProperty(value = "订åç¶æ") |
| | | private String orderStatus; |
| | | /**ä¼å
级*/ |
| | | @Excel(name = "ä¼å
级", width = 15, dicCode = "priority") |
| | | @Dict(dicCode = "priority") |
| | | @ApiModelProperty(value = "ä¼å
级") |
| | | private String priority; |
| | | /**计åå·¥èºè·¯çº¿*/ |
| | | @Excel(name = "计åå·¥èºè·¯çº¿", width = 15) |
| | | @ApiModelProperty(value = "计åå·¥èºè·¯çº¿") |
| | | private String processRoute; |
| | | /**计åç©ææ¸
å*/ |
| | | @Excel(name = "计åç©ææ¸
å", width = 15) |
| | | @ApiModelProperty(value = "计åç©ææ¸
å") |
| | | private String materialListCode; |
| | | /**å·¥åç¼ç */ |
| | | @Excel(name = "å·¥åç¼ç ", width = 15) |
| | | @ApiModelProperty(value = "å·¥åç¼ç ") |
| | | private String factoryCode; |
| | | /**å·¥ååç§°*/ |
| | | @Excel(name = "å·¥ååç§°", width = 15) |
| | | @ApiModelProperty(value = "å·¥ååç§°") |
| | | private String factoryName; |
| | | /**客æ·åå·*/ |
| | | @Excel(name = "客æ·åå·", width = 15) |
| | | @ApiModelProperty(value = "客æ·åå·") |
| | | private String customerOrderModel; |
| | | /**客æ·åç§°*/ |
| | | @Excel(name = "客æ·åç§°", width = 15) |
| | | @ApiModelProperty(value = "客æ·åç§°") |
| | | private String customer; |
| | | /**夿³¨*/ |
| | | @Excel(name = "夿³¨", width = 15) |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String remark; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description: æäº§å·¥å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("mes_production_work_order") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="mes_production_work_order对象", description="æäº§å·¥å") |
| | | public class MesProductionWorkOrder 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 HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "åå»ºæ¥æ") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¥æ*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "æ´æ°æ¥æ") |
| | | private Date updateTime; |
| | | /**å 餿 è®°*/ |
| | | @Excel(name = "å 餿 è®°", width = 15) |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | @TableLogic |
| | | private Integer delFlag; |
| | | /**å·¥åå·(ä»»å¡å·)*/ |
| | | @Excel(name = "å·¥åå·(ä»»å¡å·)", width = 15) |
| | | @ApiModelProperty(value = "å·¥åå·(ä»»å¡å·)") |
| | | private String workOrderCode; |
| | | /**ç©æç¼ç */ |
| | | @Excel(name = "ç©æç¼ç ", width = 15) |
| | | @ApiModelProperty(value = "ç©æç¼ç ") |
| | | private String materialNumber; |
| | | /**ç©æåç§°*/ |
| | | @Excel(name = "ç©æåç§°", width = 15) |
| | | @ApiModelProperty(value = "ç©æåç§°") |
| | | private String materialName; |
| | | /**计åç产æ°é*/ |
| | | @Excel(name = "计åç产æ°é", width = 15) |
| | | @ApiModelProperty(value = "计åç产æ°é") |
| | | private Double planQuantity; |
| | | /**产线ID(åä½)*/ |
| | | @Excel(name = "产线ID(åä½)", width = 15) |
| | | @ApiModelProperty(value = "产线ID(åä½)") |
| | | private String factoryId; |
| | | /**çç»ID*/ |
| | | @Excel(name = "çç»ID", width = 15) |
| | | @ApiModelProperty(value = "çç»ID") |
| | | private String groupId; |
| | | /**çæ¬¡ID(åä½)*/ |
| | | @Excel(name = "çæ¬¡ID(åä½)", width = 15) |
| | | @ApiModelProperty(value = "çæ¬¡ID(åä½)") |
| | | private String shiftId; |
| | | /**æäº§æ¥æ*/ |
| | | @Excel(name = "æäº§æ¥æ", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "æäº§æ¥æ") |
| | | private Date workOrderDate; |
| | | /**å·¥åç¶æ*/ |
| | | @Excel(name = "å·¥åç¶æ", width = 15, dicCode = "work_order_status") |
| | | @Dict(dicCode = "work_order_status") |
| | | @ApiModelProperty(value = "å·¥åç¶æ") |
| | | private String workOrderStatus; |
| | | /**å®é
æ¥å·¥æ°é*/ |
| | | @Excel(name = "å®é
æ¥å·¥æ°é", width = 15) |
| | | @ApiModelProperty(value = "å®é
æ¥å·¥æ°é") |
| | | private Double actualQuantity; |
| | | /**åå¸äºº*/ |
| | | @Excel(name = "åå¸äºº", width = 15) |
| | | @ApiModelProperty(value = "åå¸äºº") |
| | | private String publisher; |
| | | /**å叿¶é´*/ |
| | | @Excel(name = "å叿¶é´", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "å叿¶é´") |
| | | private Date publishTime; |
| | | /**éåå¸äºº*/ |
| | | @Excel(name = "éåå¸äºº", width = 15) |
| | | @ApiModelProperty(value = "éåå¸äºº") |
| | | private String republisher; |
| | | /**éå叿¶é´*/ |
| | | @Excel(name = "éå叿¶é´", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "éå叿¶é´") |
| | | private Date republishTime; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description: ç§»åºåæå° |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("mes_transfer_order_print") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="mes_transfer_order_print对象", description="ç§»åºåæå°") |
| | | public class MesTransferOrderPrint 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 HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "åå»ºæ¥æ") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¥æ*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "æ´æ°æ¥æ") |
| | | private Date updateTime; |
| | | /**å 餿 è®°*/ |
| | | @Excel(name = "å 餿 è®°", width = 15) |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | @TableLogic |
| | | private Integer delFlag; |
| | | /**ç产订åID*/ |
| | | @Excel(name = "ç产订åID", width = 15) |
| | | @ApiModelProperty(value = "ç产订åID") |
| | | private String orderId; |
| | | /**ç§»åºåå·*/ |
| | | @Excel(name = "ç§»åºåå·", width = 15) |
| | | @ApiModelProperty(value = "ç§»åºåå·") |
| | | private String workOrderCode; |
| | | /**ç§»åºç±»å*/ |
| | | @Excel(name = "ç§»åºç±»å", width = 15, dicCode = "order_category") |
| | | @Dict(dicCode = "order_category") |
| | | @ApiModelProperty(value = "ç§»åºç±»å") |
| | | private String orderCategory; |
| | | /**ååºåå°*/ |
| | | @Excel(name = "ååºåå°", width = 15) |
| | | @ApiModelProperty(value = "ååºåå°") |
| | | private String originalWarehouseId; |
| | | /**ç®æ åºåå°*/ |
| | | @Excel(name = "ç®æ åºåå°", width = 15) |
| | | @ApiModelProperty(value = "ç®æ åºåå°") |
| | | private String targetWarehouseId; |
| | | /**æå·*/ |
| | | @Excel(name = "æå·", width = 15) |
| | | @ApiModelProperty(value = "æå·") |
| | | private String palletNumber; |
| | | /**æ°é*/ |
| | | @Excel(name = "æ°é", width = 15) |
| | | @ApiModelProperty(value = "æ°é") |
| | | private Double quantity; |
| | | /**æä½äºº*/ |
| | | @Excel(name = "æä½äºº", width = 15) |
| | | @ApiModelProperty(value = "æä½äºº") |
| | | private String operator; |
| | | /**æä½æ¶é´*/ |
| | | @Excel(name = "æä½æ¶é´", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "æä½æ¶é´") |
| | | private Date operateTime; |
| | | /**ç§»åºåç¶æ*/ |
| | | @Excel(name = "ç§»åºåç¶æ", width = 15, dicCode = "order_status") |
| | | @Dict(dicCode = "order_status") |
| | | @ApiModelProperty(value = "ç§»åºåç¶æ") |
| | | private String orderStatus; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.experimental.Accessors; |
| | | import org.jeecg.common.aspect.annotation.Dict; |
| | | import org.jeecgframework.poi.excel.annotation.Excel; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description: 工忥工 |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Data |
| | | @TableName("mes_work_reporting") |
| | | @Accessors(chain = true) |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @ApiModel(value="mes_work_reporting对象", description="工忥工") |
| | | public class MesWorkReporting 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 HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "åå»ºæ¥æ") |
| | | private Date createTime; |
| | | /**æ´æ°äºº*/ |
| | | @ApiModelProperty(value = "æ´æ°äºº") |
| | | private String updateBy; |
| | | /**æ´æ°æ¥æ*/ |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "æ´æ°æ¥æ") |
| | | private Date updateTime; |
| | | /**å 餿 è®°*/ |
| | | @Excel(name = "å 餿 è®°", width = 15) |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | @TableLogic |
| | | private Integer delFlag; |
| | | /**订åID*/ |
| | | @Excel(name = "订åID", width = 15) |
| | | @ApiModelProperty(value = "订åID") |
| | | private String orderId; |
| | | /**å·¥åID*/ |
| | | @Excel(name = "å·¥åID", width = 15) |
| | | @ApiModelProperty(value = "å·¥åID") |
| | | private String workOrderId; |
| | | /**产线ID*/ |
| | | @Excel(name = "产线ID", width = 15) |
| | | @ApiModelProperty(value = "产线ID") |
| | | private String factoryId; |
| | | /**æ¹æ¬¡å·*/ |
| | | @Excel(name = "æ¹æ¬¡å·", width = 15) |
| | | @ApiModelProperty(value = "æ¹æ¬¡å·") |
| | | private String batchNumber; |
| | | /**æå·*/ |
| | | @Excel(name = "æå·", width = 15) |
| | | @ApiModelProperty(value = "æå·") |
| | | private String palletNumber; |
| | | /**æ°é*/ |
| | | @Excel(name = "æ°é", width = 15) |
| | | @ApiModelProperty(value = "æ°é") |
| | | private Double quantity; |
| | | /**æ¥å·¥äºº*/ |
| | | @Excel(name = "æ¥å·¥äºº", width = 15) |
| | | @ApiModelProperty(value = "æ¥å·¥äºº") |
| | | private String reporter; |
| | | /**æ¥å·¥æ¶é´*/ |
| | | @Excel(name = "æ¥å·¥æ¶é´", width = 20, format = "yyyy-MM-dd HH:mm:ss") |
| | | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | @ApiModelProperty(value = "æ¥å·¥æ¶é´") |
| | | private Date reportTime; |
| | | /**线边ä»ID*/ |
| | | @Excel(name = "线边ä»ID", width = 15) |
| | | @ApiModelProperty(value = "线边ä»ID") |
| | | private String warehouseId; |
| | | /**æåä¸çº¿æå°ç¶æ*/ |
| | | @Excel(name = "æåä¸çº¿æå°ç¶æ", width = 15, dicCode = "print_status") |
| | | @Dict(dicCode = "print_status") |
| | | @ApiModelProperty(value = "æåä¸çº¿æå°ç¶æ") |
| | | private String printStatus; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.jeecg.modules.mes.entity.MesKittingCompletenessCheck; |
| | | |
| | | /** |
| | | * @Description: é½å¥æ§æ£æ¥è®°å½ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface MesKittingCompletenessCheckMapper extends BaseMapper<MesKittingCompletenessCheck> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.jeecg.modules.mes.entity.MesMaterialLoading; |
| | | |
| | | /** |
| | | * @Description: 䏿 |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface MesMaterialLoadingMapper extends BaseMapper<MesMaterialLoading> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.jeecg.modules.mes.entity.MesMaterialTransferRequest; |
| | | |
| | | /** |
| | | * @Description: ç©ææå¨ç³è¯· |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface MesMaterialTransferRequestMapper extends BaseMapper<MesMaterialTransferRequest> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.jeecg.modules.mes.entity.MesMaterialUnloading; |
| | | |
| | | /** |
| | | * @Description: 䏿 |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface MesMaterialUnloadingMapper extends BaseMapper<MesMaterialUnloading> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.jeecg.modules.mes.entity.MesProductionOrder; |
| | | |
| | | /** |
| | | * @Description: SAPç产订å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface MesProductionOrderMapper extends BaseMapper<MesProductionOrder> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.jeecg.modules.mes.entity.MesProductionWorkOrder; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | |
| | | /** |
| | | * @Description: æäº§å·¥å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface MesProductionWorkOrderMapper extends BaseMapper<MesProductionWorkOrder> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.jeecg.modules.mes.entity.MesTransferOrderPrint; |
| | | |
| | | /** |
| | | * @Description: ç§»åºåæå° |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface MesTransferOrderPrintMapper extends BaseMapper<MesTransferOrderPrint> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.jeecg.modules.mes.entity.MesWorkReporting; |
| | | |
| | | /** |
| | | * @Description: 工忥工 |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface MesWorkReportingMapper extends BaseMapper<MesWorkReporting> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.mes.mapper.MesKittingCompletenessCheckMapper"> |
| | | |
| | | </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.mes.mapper.MesMaterialLoadingMapper"> |
| | | |
| | | </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.mes.mapper.MesMaterialTransferRequestMapper"> |
| | | |
| | | </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.mes.mapper.MesMaterialUnloadingMapper"> |
| | | |
| | | </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.mes.mapper.MesProductionOrderMapper"> |
| | | |
| | | </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.mes.mapper.MesProductionWorkOrderMapper"> |
| | | |
| | | </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.mes.mapper.MesTransferOrderPrintMapper"> |
| | | |
| | | </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.mes.mapper.MesWorkReportingMapper"> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.jeecg.modules.mes.entity.MesKittingCompletenessCheck; |
| | | |
| | | /** |
| | | * @Description: é½å¥æ§æ£æ¥è®°å½ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IMesKittingCompletenessCheckService extends IService<MesKittingCompletenessCheck> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.jeecg.modules.mes.entity.MesMaterialLoading; |
| | | |
| | | /** |
| | | * @Description: 䏿 |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IMesMaterialLoadingService extends IService<MesMaterialLoading> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.jeecg.modules.mes.entity.MesMaterialTransferRequest; |
| | | |
| | | /** |
| | | * @Description: ç©ææå¨ç³è¯· |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IMesMaterialTransferRequestService extends IService<MesMaterialTransferRequest> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.jeecg.modules.mes.entity.MesMaterialUnloading; |
| | | |
| | | /** |
| | | * @Description: 䏿 |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IMesMaterialUnloadingService extends IService<MesMaterialUnloading> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.jeecg.modules.mes.entity.MesProductionOrder; |
| | | |
| | | /** |
| | | * @Description: SAPç产订å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IMesProductionOrderService extends IService<MesProductionOrder> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.jeecg.modules.mes.entity.MesProductionWorkOrder; |
| | | |
| | | /** |
| | | * @Description: æäº§å·¥å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IMesProductionWorkOrderService extends IService<MesProductionWorkOrder> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.jeecg.modules.mes.entity.MesTransferOrderPrint; |
| | | |
| | | /** |
| | | * @Description: ç§»åºåæå° |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IMesTransferOrderPrintService extends IService<MesTransferOrderPrint> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.jeecg.modules.mes.entity.MesWorkReporting; |
| | | |
| | | /** |
| | | * @Description: 工忥工 |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | public interface IMesWorkReportingService extends IService<MesWorkReporting> { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.jeecg.modules.mes.entity.MesKittingCompletenessCheck; |
| | | import org.jeecg.modules.mes.mapper.MesKittingCompletenessCheckMapper; |
| | | import org.jeecg.modules.mes.service.IMesKittingCompletenessCheckService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * @Description: é½å¥æ§æ£æ¥è®°å½ |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class MesKittingCompletenessCheckServiceImpl extends ServiceImpl<MesKittingCompletenessCheckMapper, MesKittingCompletenessCheck> implements IMesKittingCompletenessCheckService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.jeecg.modules.mes.entity.MesMaterialLoading; |
| | | import org.jeecg.modules.mes.mapper.MesMaterialLoadingMapper; |
| | | import org.jeecg.modules.mes.service.IMesMaterialLoadingService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * @Description: 䏿 |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class MesMaterialLoadingServiceImpl extends ServiceImpl<MesMaterialLoadingMapper, MesMaterialLoading> implements IMesMaterialLoadingService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.jeecg.modules.mes.entity.MesMaterialTransferRequest; |
| | | import org.jeecg.modules.mes.mapper.MesMaterialTransferRequestMapper; |
| | | import org.jeecg.modules.mes.service.IMesMaterialTransferRequestService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * @Description: ç©ææå¨ç³è¯· |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class MesMaterialTransferRequestServiceImpl extends ServiceImpl<MesMaterialTransferRequestMapper, MesMaterialTransferRequest> implements IMesMaterialTransferRequestService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.jeecg.modules.mes.entity.MesMaterialUnloading; |
| | | import org.jeecg.modules.mes.mapper.MesMaterialUnloadingMapper; |
| | | import org.jeecg.modules.mes.service.IMesMaterialUnloadingService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * @Description: 䏿 |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class MesMaterialUnloadingServiceImpl extends ServiceImpl<MesMaterialUnloadingMapper, MesMaterialUnloading> implements IMesMaterialUnloadingService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.jeecg.modules.mes.entity.MesProductionOrder; |
| | | import org.jeecg.modules.mes.mapper.MesProductionOrderMapper; |
| | | import org.jeecg.modules.mes.service.IMesProductionOrderService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * @Description: SAPç产订å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class MesProductionOrderServiceImpl extends ServiceImpl<MesProductionOrderMapper, MesProductionOrder> implements IMesProductionOrderService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.jeecg.modules.mes.service.IMesProductionWorkOrderService; |
| | | import org.jeecg.modules.mes.entity.MesProductionWorkOrder; |
| | | import org.jeecg.modules.mes.mapper.MesProductionWorkOrderMapper; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * @Description: æäº§å·¥å |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class MesProductionWorkOrderServiceImpl extends ServiceImpl<MesProductionWorkOrderMapper, MesProductionWorkOrder> implements IMesProductionWorkOrderService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.jeecg.modules.mes.entity.MesTransferOrderPrint; |
| | | import org.jeecg.modules.mes.mapper.MesTransferOrderPrintMapper; |
| | | import org.jeecg.modules.mes.service.IMesTransferOrderPrintService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * @Description: ç§»åºåæå° |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class MesTransferOrderPrintServiceImpl extends ServiceImpl<MesTransferOrderPrintMapper, MesTransferOrderPrint> implements IMesTransferOrderPrintService { |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mes.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.jeecg.modules.mes.entity.MesWorkReporting; |
| | | import org.jeecg.modules.mes.mapper.MesWorkReportingMapper; |
| | | import org.jeecg.modules.mes.service.IMesWorkReportingService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * @Description: 工忥工 |
| | | * @Author: jeecg-boot |
| | | * @Date: 2025-07-04 |
| | | * @Version: V1.0 |
| | | */ |
| | | @Service |
| | | public class MesWorkReportingServiceImpl extends ServiceImpl<MesWorkReportingMapper, MesWorkReporting> implements IMesWorkReportingService { |
| | | |
| | | } |
| | |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ ¹æ®æ£éªæ¹æ¡idæ¥è¯¢ |
| | | * |
| | | * @param inspectionPlanId |
| | | * @param pageNo |
| | | * @param pageSize |
| | | * @return |
| | | */ |
| | | @ApiOperation(value="æ£éªé¡¹ç®-å页å表æ¥è¯¢", notes="æ£éªé¡¹ç®-å页å表æ¥è¯¢") |
| | | @GetMapping(value = "/queryListByPlanId") |
| | | public Result<?> queryListByPlanId(String inspectionPlanId, |
| | | @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, |
| | | @RequestParam(name="pageSize", defaultValue="10") Integer pageSize) { |
| | | IPage<Map<String, Object>> pageList = inspectionItemService.queryListByPlanId(pageNo,pageSize, inspectionPlanId); |
| | | for(Map<String, Object> r : pageList.getRecords()){ |
| | | String inspectionTools = (String) r.get("inspectionTools"); |
| | | if(StringUtils.isNotBlank(inspectionTools)){ |
| | | List<String> inspectionToolsList = Arrays.asList(inspectionTools.split(",")); |
| | | List<String> inspectionToolsNameList = new ArrayList<>(); |
| | | String inspectionToolsNames = ""; |
| | | for(String inspectionTool : inspectionToolsList){ |
| | | InspectionTools inspectionTools1 = inspectionToolsService.getById(inspectionTool); |
| | | if(inspectionTools1 != null){ |
| | | inspectionToolsNameList.add(inspectionTools1.getToolName()); |
| | | } |
| | | } |
| | | inspectionToolsNames = inspectionToolsNameList.stream() |
| | | .collect(Collectors.joining(",")); |
| | | r.put("inspectionToolsNames",inspectionToolsNames); |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | return Result.OK(pageList); |
| | | } |
| | | |
| | | } |
| | |
| | | package org.jeecg.modules.qms.controller; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.math.BigDecimal; |
| | | import java.util.*; |
| | | 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 cn.hutool.core.bean.BeanUtil; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.common.system.vo.LoginUser; |
| | | import org.jeecg.common.util.oConvertUtils; |
| | | import org.jeecg.modules.qms.entity.Defect; |
| | | import org.jeecg.modules.qms.entity.InspectionItem; |
| | | import org.jeecg.modules.qms.entity.InspectionPlan; |
| | | import org.jeecg.modules.qms.entity.InspectionPlanItem; |
| | | import org.jeecg.modules.qms.service.IInspectionPlanItemService; |
| | | import org.jeecg.modules.qms.service.IInspectionPlanService; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | |
| | | public class InspectionPlanController extends JeecgController<InspectionPlan, IInspectionPlanService> { |
| | | @Autowired |
| | | private IInspectionPlanService inspectionPlanService; |
| | | |
| | | @Autowired |
| | | private IInspectionPlanItemService inspectionPlanItemService; |
| | | |
| | | /** |
| | | * å页å表æ¥è¯¢ |
| | |
| | | /** |
| | | * æ·»å |
| | | * |
| | | * @param inspectionPlan |
| | | * @param jSONObject |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "æ£éªæ¹æ¡-æ·»å ") |
| | | @ApiOperation(value="æ£éªæ¹æ¡-æ·»å ", notes="æ£éªæ¹æ¡-æ·»å ") |
| | | //@RequiresPermissions("org.jeecg.modules:qms_inspection_plan:add") |
| | | @PostMapping(value = "/add") |
| | | public Result<String> add(@RequestBody InspectionPlan inspectionPlan) { |
| | | public Result<?> add(@RequestBody JSONObject jSONObject) { |
| | | InspectionPlan inspectionPlan = jSONObject.toJavaObject(InspectionPlan.class); |
| | | inspectionPlan.setPlanStatus(CommonConstant.STATUS_1); |
| | | inspectionPlan.setPublishStatus(CommonConstant.STATUS_0); |
| | | inspectionPlan.setIsNewVersion("1"); |
| | | inspectionPlan.setVersion("V1"); |
| | | inspectionPlanService.save(inspectionPlan); |
| | | //ä¿åæ£éªæ¹æ¡æ£éªé¡¹ç®å
³èå
³ç³» |
| | | JSONArray jsonArray = jSONObject.getJSONArray("detailData"); |
| | | List<InspectionPlanItem> inspectionPlanItemList = jsonArray.toJavaList(InspectionPlanItem.class); |
| | | for(int i = 0;i<inspectionPlanItemList.size();i++){ |
| | | InspectionPlanItem inspectionPlanItem = inspectionPlanItemList.get(i); |
| | | inspectionPlanItem.setItemId(inspectionPlanItem.getId()); |
| | | inspectionPlanItem.setId(null); |
| | | inspectionPlanItem.setPlanId(inspectionPlan.getId()); |
| | | } |
| | | inspectionPlanItemService.saveBatch(inspectionPlanItemList); |
| | | return Result.OK("æ·»å æåï¼"); |
| | | } |
| | | |
| | | /** |
| | | * ç¼è¾ |
| | | * |
| | | * @param inspectionPlan |
| | | * @param jSONObject |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "æ£éªæ¹æ¡-ç¼è¾") |
| | | @ApiOperation(value="æ£éªæ¹æ¡-ç¼è¾", notes="æ£éªæ¹æ¡-ç¼è¾") |
| | | //@RequiresPermissions("org.jeecg.modules:qms_inspection_plan:edit") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<String> edit(@RequestBody InspectionPlan inspectionPlan) { |
| | | public Result<?> edit(@RequestBody JSONObject jSONObject) { |
| | | InspectionPlan inspectionPlan = jSONObject.toJavaObject(InspectionPlan.class); |
| | | inspectionPlan.setPlanStatus(CommonConstant.STATUS_1); |
| | | inspectionPlanService.updateById(inspectionPlan); |
| | | //å é¤åå
³èå
³ç³» |
| | | inspectionPlanItemService.removeBatchByIds(inspectionPlanItemService.lambdaQuery().eq(InspectionPlanItem::getPlanId,inspectionPlan.getId()).list()); |
| | | //ä¿åæ£éªæ¹æ¡æ£éªé¡¹ç®å
³èå
³ç³» |
| | | JSONArray jsonArray = jSONObject.getJSONArray("detailData"); |
| | | List<InspectionPlanItem> inspectionPlanItemList = jsonArray.toJavaList(InspectionPlanItem.class); |
| | | for(int i = 0;i<inspectionPlanItemList.size();i++){ |
| | | InspectionPlanItem inspectionPlanItem = inspectionPlanItemList.get(i); |
| | | inspectionPlanItem.setPlanId(inspectionPlan.getId()); |
| | | inspectionPlanItem.setItemId(inspectionPlanItem.getId()); |
| | | inspectionPlanItem.setId(null); |
| | | } |
| | | inspectionPlanItemService.saveBatch(inspectionPlanItemList); |
| | | return Result.OK("ç¼è¾æå!"); |
| | | } |
| | | |
| | |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<String> delete(@RequestParam(name="id",required=true) String id) { |
| | | inspectionPlanService.removeById(id); |
| | | //å é¤å
³èå
³ç³» |
| | | inspectionPlanItemService.removeBatchByIds(inspectionPlanItemService.lambdaQuery().eq(InspectionPlanItem::getPlanId,id).list()); |
| | | return Result.OK("å 餿å!"); |
| | | } |
| | | |
| | |
| | | return Result.ok("æä½æåï¼"); |
| | | } |
| | | |
| | | @AutoLog(value = "æ£éªæ¹æ¡-åå¸") |
| | | @ApiOperation(value = "æ£éªæ¹æ¡-åå¸", notes = "æ£éªæ¹æ¡-åå¸") |
| | | @PutMapping(value = "/publish") |
| | | public Result<?> publish(@RequestParam(name = "id", required = true) String id) { |
| | | InspectionPlan inspectionPlan = inspectionPlanService.getById(id); |
| | | if (CommonConstant.STATUS_1.equals(inspectionPlan.getPublishStatus())) { |
| | | inspectionPlan.setPublishStatus(CommonConstant.STATUS_0); |
| | | } else { |
| | | inspectionPlan.setPublishStatus(CommonConstant.STATUS_1); |
| | | } |
| | | inspectionPlanService.updateById(inspectionPlan); |
| | | return Result.ok("æä½æåï¼"); |
| | | } |
| | | |
| | | @AutoLog(value = "æ£éªæ¹æ¡-åç") |
| | | @ApiOperation(value = "æ£éªæ¹æ¡-åç", notes = "æ£éªæ¹æ¡-åç") |
| | | @PutMapping(value = "/version") |
| | | public Result<?> version(@RequestParam(name = "id", required = true) String id) { |
| | | InspectionPlan inspectionPlan = inspectionPlanService.getById(id); |
| | | //å¤å¶å½åæ£éªæ¹æ¡ |
| | | InspectionPlan newInspectionPlan = new InspectionPlan(); |
| | | BeanUtil.copyProperties(inspectionPlan,newInspectionPlan); |
| | | newInspectionPlan.setId(null); |
| | | newInspectionPlan.setPlanStatus(CommonConstant.STATUS_1); |
| | | newInspectionPlan.setPublishStatus(CommonConstant.STATUS_0); |
| | | newInspectionPlan.setCreateTime(new Date()); |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | newInspectionPlan.setCreateBy(user.getUsername()); |
| | | //计ç®çæ¬ï¼çæ¬+1 |
| | | String number = inspectionPlan.getVersion().substring(1); |
| | | BigDecimal newNumber = new BigDecimal(number).add(BigDecimal.ONE); |
| | | newInspectionPlan.setVersion("V"+newNumber); |
| | | newInspectionPlan.setIsNewVersion("1"); |
| | | inspectionPlanService.save(newInspectionPlan); |
| | | //å¤å¶æ£éªæ¹æ¡æ£éªé¡¹ç® |
| | | List<InspectionPlanItem> inspectionPlanItemList = inspectionPlanItemService.lambdaQuery().eq(InspectionPlanItem::getPlanId,inspectionPlan.getId()).list(); |
| | | List<InspectionPlanItem> newInspectionPlanItemList = new ArrayList<>(); |
| | | newInspectionPlanItemList.addAll(inspectionPlanItemList); |
| | | for(InspectionPlanItem inspectionPlanItem : inspectionPlanItemList){ |
| | | inspectionPlanItem.setId(null); |
| | | inspectionPlanItem.setPlanId(newInspectionPlan.getId()); |
| | | } |
| | | inspectionPlanItemService.saveBatch(newInspectionPlanItemList); |
| | | //æ´æ°åæ£éªæ¹æ¡ä¸ºç¦ç¨ |
| | | inspectionPlan.setPlanStatus(CommonConstant.STATUS_0); |
| | | inspectionPlan.setIsNewVersion("0"); |
| | | inspectionPlanService.updateById(inspectionPlan); |
| | | return Result.ok("åçæåï¼"); |
| | | } |
| | | |
| | | } |
| | |
| | | /**æ¹æ¡ç¶æ*/ |
| | | @Excel(name = "æ¹æ¡ç¶æ", width = 15) |
| | | @ApiModelProperty(value = "æ¹æ¡ç¶æ") |
| | | @Dict(dicCode = "plan_status") |
| | | private String planStatus; |
| | | |
| | | /**æ¹æ¡åå¸ç¶æ*/ |
| | | @Excel(name = "æ¹æ¡åå¸ç¶æ", width = 15) |
| | | @ApiModelProperty(value = "æ¹æ¡åå¸ç¶æ") |
| | | private String publishStatus; |
| | | |
| | | /**æ¹æ¡çæ¬*/ |
| | | @Excel(name = "æ¹æ¡çæ¬", width = 15) |
| | | @ApiModelProperty(value = "æ¹æ¡çæ¬") |
| | | private String version; |
| | | |
| | | /**æ¯å¦ä¸ºææ°çæ¬*/ |
| | | @Excel(name = "æ¯å¦ä¸ºææ°çæ¬", width = 15) |
| | | @ApiModelProperty(value = "æ¯å¦ä¸ºææ°çæ¬") |
| | | private String isNewVersion; |
| | | /**æ¹æ¡åç±»;馿£ãå·¡æ£ãå®å·¥æ£*/ |
| | | @Excel(name = "æ¹æ¡åç±»;馿£ãå·¡æ£ãå®å·¥æ£", width = 15) |
| | | @ApiModelProperty(value = "æ¹æ¡åç±»;馿£ãå·¡æ£ãå®å·¥æ£") |
| | |
| | | /**æ½æ ·è§åID*/ |
| | | @Excel(name = "æ½æ ·è§åID", width = 15) |
| | | @ApiModelProperty(value = "æ½æ ·è§åID") |
| | | @Dict(dictTable = "qms_sampling_rules",dicCode = "id",dicText = "rule_name") |
| | | private String ruleId; |
| | | /**æ¹æ¡æè¿°*/ |
| | | @Excel(name = "æ¹æ¡æè¿°", width = 15) |
| | |
| | | public interface InspectionItemMapper extends BaseMapper<InspectionItem> { |
| | | |
| | | public IPage<Map<String, Object>> queryList(IPage<Map> pageData, @Param(Constants.WRAPPER) Wrapper<Map> wrapper); |
| | | |
| | | public IPage<Map<String, Object>> queryListByPlanId(IPage<Map> pageData, @Param(Constants.WRAPPER) Wrapper<Map> wrapper); |
| | | } |
| | |
| | | t1.create_time createTime, |
| | | t2.item_text itemCategoryName, |
| | | t3.item_text qualitativeOrQuantitativeName, |
| | | t1.remark |
| | | t1.remark, |
| | | t4.sorter, |
| | | t4.standard_value standardValue, |
| | | t4.max_value 'maxValue', |
| | | t4.min_value 'minValue', |
| | | t4.plan_id planId |
| | | FROM |
| | | qms_inspection_item t1 |
| | | left join qms_inspection_plan_item t4 on t4.item_id = t1.id |
| | | LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'item_category' ) t2 ON t2.item_value = t1.item_category |
| | | left join ( SELECT * FROM v_sys_dict WHERE dict_code = 'qualitative_or_quantitative' ) t3 on t3.item_value = t1.qualitative_or_quantitative |
| | | ${ew.customSqlSegment} |
| | | </select> |
| | | |
| | | |
| | | <select id="queryListByPlanId" resultType="map" parameterType="String"> |
| | | SELECT |
| | | t1.id, |
| | | t1.item_code itemCode, |
| | | t1.item_name itemName, |
| | | t1.item_category itemCategory, |
| | | t1.qualitative_or_quantitative qualitativeOrQuantitative, |
| | | t1.inspection_tools inspectionTools, |
| | | t1.item_status itemStatus, |
| | | t1.create_time createTime, |
| | | t2.sorter, |
| | | t2.standard_value standardValue, |
| | | t2.min_value 'minValue', |
| | | t2.max_value 'maxValue', |
| | | t3.plan_code planCode, |
| | | t3.plan_name planName, |
| | | t3.material_number materialNumber, |
| | | t3.material_name materialName, |
| | | t6.item_text planCategoryName, |
| | | t4.item_text itemCategoryName, |
| | | t5.item_text qualitativeOrQuantitativeName, |
| | | t1.remark |
| | | FROM |
| | | qms_inspection_item t1 |
| | | INNER JOIN qms_inspection_plan_item t2 ON t2.item_id = t1.id |
| | | INNER JOIN qms_inspection_plan t3 ON t3.id = t2.plan_id |
| | | LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'item_category' ) t4 ON t4.item_value = t1.item_category |
| | | LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'qualitative_or_quantitative' ) t5 ON t5.item_value = t1.qualitative_or_quantitative |
| | | LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'plan_category' ) t6 ON t6.item_value = t3.plan_category |
| | | ${ew.customSqlSegment} |
| | | </select> |
| | | </mapper> |
| | |
| | | public interface IInspectionItemService extends IService<InspectionItem> { |
| | | |
| | | IPage<Map<String, Object>> queryList(Integer pageNo, Integer pageSize, Map<String, String> query); |
| | | |
| | | IPage<Map<String, Object>> queryListByPlanId(Integer pageNo, Integer pageSize, String inspectionPlanId); |
| | | } |
| | |
| | | } |
| | | return super.getBaseMapper().queryList(pageData,queryWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public IPage<Map<String, Object>> queryListByPlanId(Integer pageNo, Integer pageSize, String inspectionPlanId) { |
| | | if (pageNo == null || pageNo < 1 || pageSize == null || pageSize < 1) { |
| | | ExceptionCast.cast("åæ°é误"); |
| | | } |
| | | IPage<Map> pageData = new Page<Map>(pageNo, pageSize); |
| | | QueryWrapper<Map> queryWrapper = Wrappers.query(); |
| | | if (null != inspectionPlanId) { |
| | | queryWrapper.eq("t2.plan_id", inspectionPlanId); |
| | | // æåºåæ³ |
| | | List<OrderItem> orderItems = new ArrayList<>(); |
| | | orderItems.add(OrderItem.desc("t2.sorter")); |
| | | ((Page<Map>) pageData).setOrders(orderItems); |
| | | } |
| | | return super.getBaseMapper().queryListByPlanId(pageData,queryWrapper); |
| | | } |
| | | } |