From 09b811862f3402b32dab732dafd84eb5e4dc041e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=B1=9F=E6=98=8A?= <384012130@qq.com> Date: Tue, 11 Mar 2025 11:05:50 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=E9=9A=86=E5=BA=86=E6=B0=94?= =?UTF-8?q?=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.en.md | 36 -- .../src/main/resources/application-druid.yml | 2 +- ktg-admin/src/main/resources/application.yml | 2 +- .../md/controller/HtBaoxiaoController.java | 104 +++++ .../mes/md/controller/HtGglController.java | 104 +++++ .../mes/md/controller/HtHetongController.java | 104 +++++ .../HtJczcKehutongjiController.java | 104 +++++ .../HtJczcKucuntongjiController.java | 104 +++++ .../HtJczcQipingtongjiController.java | 104 +++++ .../HtJczcXiaoshoutongjiController.java | 104 +++++ .../md/controller/HtQingjiaController.java | 104 +++++ .../mes/md/controller/HtWeipanController.java | 104 +++++ .../controller/HtZhiliangfenxiController.java | 104 +++++ .../java/com/ktg/mes/md/domain/HtBaoxiao.java | 96 +++++ .../java/com/ktg/mes/md/domain/HtGgl.java | 82 ++++ .../java/com/ktg/mes/md/domain/HtHetong.java | 110 +++++ .../ktg/mes/md/domain/HtJczcKehutongji.java | 379 ++++++++++++++++++ .../ktg/mes/md/domain/HtJczcKucuntongji.java | 363 +++++++++++++++++ .../ktg/mes/md/domain/HtJczcQipingtongji.java | 334 +++++++++++++++ .../mes/md/domain/HtJczcXiaoshoutongji.java | 348 ++++++++++++++++ .../java/com/ktg/mes/md/domain/HtQingjia.java | 97 +++++ .../java/com/ktg/mes/md/domain/HtWeipan.java | 96 +++++ .../ktg/mes/md/domain/HtZhiliangfenxi.java | 334 +++++++++++++++ .../ktg/mes/md/mapper/HtBaoxiaoMapper.java | 61 +++ .../com/ktg/mes/md/mapper/HtGglMapper.java | 61 +++ .../com/ktg/mes/md/mapper/HtHetongMapper.java | 61 +++ .../mes/md/mapper/HtJczcKehutongjiMapper.java | 61 +++ .../md/mapper/HtJczcKucuntongjiMapper.java | 61 +++ .../md/mapper/HtJczcQipingtongjiMapper.java | 61 +++ .../md/mapper/HtJczcXiaoshoutongjiMapper.java | 61 +++ .../ktg/mes/md/mapper/HtQingjiaMapper.java | 61 +++ .../com/ktg/mes/md/mapper/HtWeipanMapper.java | 61 +++ .../mes/md/mapper/HtZhiliangfenxiMapper.java | 61 +++ .../ktg/mes/md/service/IHtBaoxiaoService.java | 61 +++ .../com/ktg/mes/md/service/IHtGglService.java | 61 +++ .../ktg/mes/md/service/IHtHetongService.java | 61 +++ .../md/service/IHtJczcKehutongjiService.java | 61 +++ .../md/service/IHtJczcKucuntongjiService.java | 61 +++ .../service/IHtJczcQipingtongjiService.java | 61 +++ .../service/IHtJczcXiaoshoutongjiService.java | 61 +++ .../ktg/mes/md/service/IHtQingjiaService.java | 61 +++ .../ktg/mes/md/service/IHtWeipanService.java | 61 +++ .../md/service/IHtZhiliangfenxiService.java | 61 +++ .../md/service/impl/HtBaoxiaoServiceImpl.java | 93 +++++ .../mes/md/service/impl/HtGglServiceImpl.java | 93 +++++ .../md/service/impl/HtHetongServiceImpl.java | 93 +++++ .../impl/HtJczcKehutongjiServiceImpl.java | 93 +++++ .../impl/HtJczcKucuntongjiServiceImpl.java | 93 +++++ .../impl/HtJczcQipingtongjiServiceImpl.java | 93 +++++ .../impl/HtJczcXiaoshoutongjiServiceImpl.java | 93 +++++ .../md/service/impl/HtQingjiaServiceImpl.java | 93 +++++ .../md/service/impl/HtWeipanServiceImpl.java | 93 +++++ .../impl/HtZhiliangfenxiServiceImpl.java | 93 +++++ .../resources/mapper/md/HtBaoxiaoMapper.xml | 73 ++++ .../main/resources/mapper/md/HtGglMapper.xml | 66 +++ .../resources/mapper/md/HtHetongMapper.xml | 76 ++++ .../mapper/md/HtJczcKehutongjiMapper.xml | 171 ++++++++ .../mapper/md/HtJczcKucuntongjiMapper.xml | 166 ++++++++ .../mapper/md/HtJczcQipingtongjiMapper.xml | 156 +++++++ .../mapper/md/HtJczcXiaoshoutongjiMapper.xml | 161 ++++++++ .../resources/mapper/md/HtQingjiaMapper.xml | 71 ++++ .../resources/mapper/md/HtWeipanMapper.xml | 71 ++++ .../mapper/md/HtZhiliangfenxiMapper.xml | 156 +++++++ 63 files changed, 6598 insertions(+), 38 deletions(-) create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/controller/HtBaoxiaoController.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/controller/HtGglController.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/controller/HtHetongController.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/controller/HtJczcKehutongjiController.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/controller/HtJczcKucuntongjiController.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/controller/HtJczcQipingtongjiController.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/controller/HtJczcXiaoshoutongjiController.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/controller/HtQingjiaController.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/controller/HtWeipanController.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/controller/HtZhiliangfenxiController.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/domain/HtBaoxiao.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/domain/HtGgl.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/domain/HtHetong.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/domain/HtJczcKehutongji.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/domain/HtJczcKucuntongji.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/domain/HtJczcQipingtongji.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/domain/HtJczcXiaoshoutongji.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/domain/HtQingjia.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/domain/HtWeipan.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/domain/HtZhiliangfenxi.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtBaoxiaoMapper.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtGglMapper.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtHetongMapper.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtJczcKehutongjiMapper.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtJczcKucuntongjiMapper.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtJczcQipingtongjiMapper.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtJczcXiaoshoutongjiMapper.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtQingjiaMapper.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtWeipanMapper.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtZhiliangfenxiMapper.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/service/IHtBaoxiaoService.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/service/IHtGglService.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/service/IHtHetongService.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/service/IHtJczcKehutongjiService.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/service/IHtJczcKucuntongjiService.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/service/IHtJczcQipingtongjiService.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/service/IHtJczcXiaoshoutongjiService.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/service/IHtQingjiaService.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/service/IHtWeipanService.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/service/IHtZhiliangfenxiService.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtBaoxiaoServiceImpl.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtGglServiceImpl.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtHetongServiceImpl.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtJczcKehutongjiServiceImpl.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtJczcKucuntongjiServiceImpl.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtJczcQipingtongjiServiceImpl.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtJczcXiaoshoutongjiServiceImpl.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtQingjiaServiceImpl.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtWeipanServiceImpl.java create mode 100644 ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtZhiliangfenxiServiceImpl.java create mode 100644 ktg-mes/src/main/resources/mapper/md/HtBaoxiaoMapper.xml create mode 100644 ktg-mes/src/main/resources/mapper/md/HtGglMapper.xml create mode 100644 ktg-mes/src/main/resources/mapper/md/HtHetongMapper.xml create mode 100644 ktg-mes/src/main/resources/mapper/md/HtJczcKehutongjiMapper.xml create mode 100644 ktg-mes/src/main/resources/mapper/md/HtJczcKucuntongjiMapper.xml create mode 100644 ktg-mes/src/main/resources/mapper/md/HtJczcQipingtongjiMapper.xml create mode 100644 ktg-mes/src/main/resources/mapper/md/HtJczcXiaoshoutongjiMapper.xml create mode 100644 ktg-mes/src/main/resources/mapper/md/HtQingjiaMapper.xml create mode 100644 ktg-mes/src/main/resources/mapper/md/HtWeipanMapper.xml create mode 100644 ktg-mes/src/main/resources/mapper/md/HtZhiliangfenxiMapper.xml diff --git a/README.en.md b/README.en.md index 5add876..e69de29 100644 --- a/README.en.md +++ b/README.en.md @@ -1,36 +0,0 @@ -# ktg-mes - -#### Description -一款开源、免费的MES生产执行管理系统 - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/ktg-admin/src/main/resources/application-druid.yml b/ktg-admin/src/main/resources/application-druid.yml index 6a71f3f..0da67f7 100644 --- a/ktg-admin/src/main/resources/application-druid.yml +++ b/ktg-admin/src/main/resources/application-druid.yml @@ -6,7 +6,7 @@ spring: druid: # 主库数据源 master: - url: jdbc:mysql://localhost:3306/lqqt?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 + url: jdbc:mysql://localhost:3306/ktg-lqqt?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 username: root password: root # 从库数据源 diff --git a/ktg-admin/src/main/resources/application.yml b/ktg-admin/src/main/resources/application.yml index b7b5420..416edd4 100644 --- a/ktg-admin/src/main/resources/application.yml +++ b/ktg-admin/src/main/resources/application.yml @@ -9,7 +9,7 @@ ktg-mes: # 实例演示开关 demoEnabled: true # 文件路径 示例( Windows配置D:/ktg/uploadPath,Linux配置 /home/ktg/uploadPath) - profile: D:/source_code/j2eeworkspace/ktg-mes/upload + profile: C:/source_code/j2eeworkspace/ktg-mes/upload #profile: /home/www/uploadPath # 获取ip地址开关 addressEnabled: false diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtBaoxiaoController.java b/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtBaoxiaoController.java new file mode 100644 index 0000000..ba71a2a --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtBaoxiaoController.java @@ -0,0 +1,104 @@ +package com.ktg.mes.md.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ktg.common.annotation.Log; +import com.ktg.common.core.controller.BaseController; +import com.ktg.common.core.domain.AjaxResult; +import com.ktg.common.enums.BusinessType; +import com.ktg.mes.md.domain.HtBaoxiao; +import com.ktg.mes.md.service.IHtBaoxiaoService; +import com.ktg.common.utils.poi.ExcelUtil; +import com.ktg.common.core.page.TableDataInfo; + +/** + * 报销Controller + * + * @author yinjinlu + * @date 2025-02-20 + */ +@RestController +@RequestMapping("/md/baoxiao") +public class HtBaoxiaoController extends BaseController +{ + @Autowired + private IHtBaoxiaoService htBaoxiaoService; + + /** + * 查询报销列表 + */ + @PreAuthorize("@ss.hasPermi('md:baoxiao:list')") + @GetMapping("/list") + public TableDataInfo list(HtBaoxiao htBaoxiao) + { + startPage(); + List list = htBaoxiaoService.selectHtBaoxiaoList(htBaoxiao); + return getDataTable(list); + } + + /** + * 导出报销列表 + */ + @PreAuthorize("@ss.hasPermi('md:baoxiao:export')") + @Log(title = "报销", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HtBaoxiao htBaoxiao) + { + List list = htBaoxiaoService.selectHtBaoxiaoList(htBaoxiao); + ExcelUtil util = new ExcelUtil(HtBaoxiao.class); + util.exportExcel(response, list, "报销数据"); + } + + /** + * 获取报销详细信息 + */ + @PreAuthorize("@ss.hasPermi('md:baoxiao:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Integer id) + { + return AjaxResult.success(htBaoxiaoService.selectHtBaoxiaoById(id)); + } + + /** + * 新增报销 + */ + @PreAuthorize("@ss.hasPermi('md:baoxiao:add')") + @Log(title = "报销", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HtBaoxiao htBaoxiao) + { + return toAjax(htBaoxiaoService.insertHtBaoxiao(htBaoxiao)); + } + + /** + * 修改报销 + */ + @PreAuthorize("@ss.hasPermi('md:baoxiao:edit')") + @Log(title = "报销", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HtBaoxiao htBaoxiao) + { + return toAjax(htBaoxiaoService.updateHtBaoxiao(htBaoxiao)); + } + + /** + * 删除报销 + */ + @PreAuthorize("@ss.hasPermi('md:baoxiao:remove')") + @Log(title = "报销", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Integer[] ids) + { + return toAjax(htBaoxiaoService.deleteHtBaoxiaoByIds(ids)); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtGglController.java b/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtGglController.java new file mode 100644 index 0000000..9cbe612 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtGglController.java @@ -0,0 +1,104 @@ +package com.ktg.mes.md.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ktg.common.annotation.Log; +import com.ktg.common.core.controller.BaseController; +import com.ktg.common.core.domain.AjaxResult; +import com.ktg.common.enums.BusinessType; +import com.ktg.mes.md.domain.HtGgl; +import com.ktg.mes.md.service.IHtGglService; +import com.ktg.common.utils.poi.ExcelUtil; +import com.ktg.common.core.page.TableDataInfo; + +/** + * 公告栏Controller + * + * @author yinjinlu + * @date 2025-02-20 + */ +@RestController +@RequestMapping("/md/ggl") +public class HtGglController extends BaseController +{ + @Autowired + private IHtGglService htGglService; + + /** + * 查询公告栏列表 + */ + @PreAuthorize("@ss.hasPermi('md:ggl:list')") + @GetMapping("/list") + public TableDataInfo list(HtGgl htGgl) + { + startPage(); + List list = htGglService.selectHtGglList(htGgl); + return getDataTable(list); + } + + /** + * 导出公告栏列表 + */ + @PreAuthorize("@ss.hasPermi('md:ggl:export')") + @Log(title = "公告栏", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HtGgl htGgl) + { + List list = htGglService.selectHtGglList(htGgl); + ExcelUtil util = new ExcelUtil(HtGgl.class); + util.exportExcel(response, list, "公告栏数据"); + } + + /** + * 获取公告栏详细信息 + */ + @PreAuthorize("@ss.hasPermi('md:ggl:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Integer id) + { + return AjaxResult.success(htGglService.selectHtGglById(id)); + } + + /** + * 新增公告栏 + */ + @PreAuthorize("@ss.hasPermi('md:ggl:add')") + @Log(title = "公告栏", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HtGgl htGgl) + { + return toAjax(htGglService.insertHtGgl(htGgl)); + } + + /** + * 修改公告栏 + */ + @PreAuthorize("@ss.hasPermi('md:ggl:edit')") + @Log(title = "公告栏", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HtGgl htGgl) + { + return toAjax(htGglService.updateHtGgl(htGgl)); + } + + /** + * 删除公告栏 + */ + @PreAuthorize("@ss.hasPermi('md:ggl:remove')") + @Log(title = "公告栏", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Integer[] ids) + { + return toAjax(htGglService.deleteHtGglByIds(ids)); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtHetongController.java b/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtHetongController.java new file mode 100644 index 0000000..812472b --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtHetongController.java @@ -0,0 +1,104 @@ +package com.ktg.mes.md.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ktg.common.annotation.Log; +import com.ktg.common.core.controller.BaseController; +import com.ktg.common.core.domain.AjaxResult; +import com.ktg.common.enums.BusinessType; +import com.ktg.mes.md.domain.HtHetong; +import com.ktg.mes.md.service.IHtHetongService; +import com.ktg.common.utils.poi.ExcelUtil; +import com.ktg.common.core.page.TableDataInfo; + +/** + * 合同管理Controller + * + * @author yinjinlu + * @date 2025-02-20 + */ +@RestController +@RequestMapping("/md/hetong") +public class HtHetongController extends BaseController +{ + @Autowired + private IHtHetongService htHetongService; + + /** + * 查询合同管理列表 + */ + @PreAuthorize("@ss.hasPermi('md:hetong:list')") + @GetMapping("/list") + public TableDataInfo list(HtHetong htHetong) + { + startPage(); + List list = htHetongService.selectHtHetongList(htHetong); + return getDataTable(list); + } + + /** + * 导出合同管理列表 + */ + @PreAuthorize("@ss.hasPermi('md:hetong:export')") + @Log(title = "合同管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HtHetong htHetong) + { + List list = htHetongService.selectHtHetongList(htHetong); + ExcelUtil util = new ExcelUtil(HtHetong.class); + util.exportExcel(response, list, "合同管理数据"); + } + + /** + * 获取合同管理详细信息 + */ + @PreAuthorize("@ss.hasPermi('md:hetong:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Integer id) + { + return AjaxResult.success(htHetongService.selectHtHetongById(id)); + } + + /** + * 新增合同管理 + */ + @PreAuthorize("@ss.hasPermi('md:hetong:add')") + @Log(title = "合同管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HtHetong htHetong) + { + return toAjax(htHetongService.insertHtHetong(htHetong)); + } + + /** + * 修改合同管理 + */ + @PreAuthorize("@ss.hasPermi('md:hetong:edit')") + @Log(title = "合同管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HtHetong htHetong) + { + return toAjax(htHetongService.updateHtHetong(htHetong)); + } + + /** + * 删除合同管理 + */ + @PreAuthorize("@ss.hasPermi('md:hetong:remove')") + @Log(title = "合同管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Integer[] ids) + { + return toAjax(htHetongService.deleteHtHetongByIds(ids)); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtJczcKehutongjiController.java b/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtJczcKehutongjiController.java new file mode 100644 index 0000000..d57c8cb --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtJczcKehutongjiController.java @@ -0,0 +1,104 @@ +package com.ktg.mes.md.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ktg.common.annotation.Log; +import com.ktg.common.core.controller.BaseController; +import com.ktg.common.core.domain.AjaxResult; +import com.ktg.common.enums.BusinessType; +import com.ktg.mes.md.domain.HtJczcKehutongji; +import com.ktg.mes.md.service.IHtJczcKehutongjiService; +import com.ktg.common.utils.poi.ExcelUtil; +import com.ktg.common.core.page.TableDataInfo; + +/** + * 客户统计报Controller + * + * @author yinjinlu + * @date 2025-02-21 + */ +@RestController +@RequestMapping("/md/kehutongji") +public class HtJczcKehutongjiController extends BaseController +{ + @Autowired + private IHtJczcKehutongjiService htJczcKehutongjiService; + + /** + * 查询客户统计报列表 + */ + @PreAuthorize("@ss.hasPermi('md:kehutongji:list')") + @GetMapping("/list") + public TableDataInfo list(HtJczcKehutongji htJczcKehutongji) + { + startPage(); + List list = htJczcKehutongjiService.selectHtJczcKehutongjiList(htJczcKehutongji); + return getDataTable(list); + } + + /** + * 导出客户统计报列表 + */ + @PreAuthorize("@ss.hasPermi('md:kehutongji:export')") + @Log(title = "客户统计报", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HtJczcKehutongji htJczcKehutongji) + { + List list = htJczcKehutongjiService.selectHtJczcKehutongjiList(htJczcKehutongji); + ExcelUtil util = new ExcelUtil(HtJczcKehutongji.class); + util.exportExcel(response, list, "客户统计报数据"); + } + + /** + * 获取客户统计报详细信息 + */ + @PreAuthorize("@ss.hasPermi('md:kehutongji:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Integer id) + { + return AjaxResult.success(htJczcKehutongjiService.selectHtJczcKehutongjiById(id)); + } + + /** + * 新增客户统计报 + */ + @PreAuthorize("@ss.hasPermi('md:kehutongji:add')") + @Log(title = "客户统计报", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HtJczcKehutongji htJczcKehutongji) + { + return toAjax(htJczcKehutongjiService.insertHtJczcKehutongji(htJczcKehutongji)); + } + + /** + * 修改客户统计报 + */ + @PreAuthorize("@ss.hasPermi('md:kehutongji:edit')") + @Log(title = "客户统计报", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HtJczcKehutongji htJczcKehutongji) + { + return toAjax(htJczcKehutongjiService.updateHtJczcKehutongji(htJczcKehutongji)); + } + + /** + * 删除客户统计报 + */ + @PreAuthorize("@ss.hasPermi('md:kehutongji:remove')") + @Log(title = "客户统计报", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Integer[] ids) + { + return toAjax(htJczcKehutongjiService.deleteHtJczcKehutongjiByIds(ids)); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtJczcKucuntongjiController.java b/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtJczcKucuntongjiController.java new file mode 100644 index 0000000..22646de --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtJczcKucuntongjiController.java @@ -0,0 +1,104 @@ +package com.ktg.mes.md.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ktg.common.annotation.Log; +import com.ktg.common.core.controller.BaseController; +import com.ktg.common.core.domain.AjaxResult; +import com.ktg.common.enums.BusinessType; +import com.ktg.mes.md.domain.HtJczcKucuntongji; +import com.ktg.mes.md.service.IHtJczcKucuntongjiService; +import com.ktg.common.utils.poi.ExcelUtil; +import com.ktg.common.core.page.TableDataInfo; + +/** + * 库存统计报Controller + * + * @author yinjinlu + * @date 2025-02-21 + */ +@RestController +@RequestMapping("/md/kucuntongji") +public class HtJczcKucuntongjiController extends BaseController +{ + @Autowired + private IHtJczcKucuntongjiService htJczcKucuntongjiService; + + /** + * 查询库存统计报列表 + */ + @PreAuthorize("@ss.hasPermi('md:kucuntongji:list')") + @GetMapping("/list") + public TableDataInfo list(HtJczcKucuntongji htJczcKucuntongji) + { + startPage(); + List list = htJczcKucuntongjiService.selectHtJczcKucuntongjiList(htJczcKucuntongji); + return getDataTable(list); + } + + /** + * 导出库存统计报列表 + */ + @PreAuthorize("@ss.hasPermi('md:kucuntongji:export')") + @Log(title = "库存统计报", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HtJczcKucuntongji htJczcKucuntongji) + { + List list = htJczcKucuntongjiService.selectHtJczcKucuntongjiList(htJczcKucuntongji); + ExcelUtil util = new ExcelUtil(HtJczcKucuntongji.class); + util.exportExcel(response, list, "库存统计报数据"); + } + + /** + * 获取库存统计报详细信息 + */ + @PreAuthorize("@ss.hasPermi('md:kucuntongji:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Integer id) + { + return AjaxResult.success(htJczcKucuntongjiService.selectHtJczcKucuntongjiById(id)); + } + + /** + * 新增库存统计报 + */ + @PreAuthorize("@ss.hasPermi('md:kucuntongji:add')") + @Log(title = "库存统计报", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HtJczcKucuntongji htJczcKucuntongji) + { + return toAjax(htJczcKucuntongjiService.insertHtJczcKucuntongji(htJczcKucuntongji)); + } + + /** + * 修改库存统计报 + */ + @PreAuthorize("@ss.hasPermi('md:kucuntongji:edit')") + @Log(title = "库存统计报", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HtJczcKucuntongji htJczcKucuntongji) + { + return toAjax(htJczcKucuntongjiService.updateHtJczcKucuntongji(htJczcKucuntongji)); + } + + /** + * 删除库存统计报 + */ + @PreAuthorize("@ss.hasPermi('md:kucuntongji:remove')") + @Log(title = "库存统计报", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Integer[] ids) + { + return toAjax(htJczcKucuntongjiService.deleteHtJczcKucuntongjiByIds(ids)); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtJczcQipingtongjiController.java b/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtJczcQipingtongjiController.java new file mode 100644 index 0000000..4d277fe --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtJczcQipingtongjiController.java @@ -0,0 +1,104 @@ +package com.ktg.mes.md.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ktg.common.annotation.Log; +import com.ktg.common.core.controller.BaseController; +import com.ktg.common.core.domain.AjaxResult; +import com.ktg.common.enums.BusinessType; +import com.ktg.mes.md.domain.HtJczcQipingtongji; +import com.ktg.mes.md.service.IHtJczcQipingtongjiService; +import com.ktg.common.utils.poi.ExcelUtil; +import com.ktg.common.core.page.TableDataInfo; + +/** + * 气瓶统计报Controller + * + * @author yinjinlu + * @date 2025-02-21 + */ +@RestController +@RequestMapping("/md/qipingtongji") +public class HtJczcQipingtongjiController extends BaseController +{ + @Autowired + private IHtJczcQipingtongjiService htJczcQipingtongjiService; + + /** + * 查询气瓶统计报列表 + */ + @PreAuthorize("@ss.hasPermi('md:qipingtongji:list')") + @GetMapping("/list") + public TableDataInfo list(HtJczcQipingtongji htJczcQipingtongji) + { + startPage(); + List list = htJczcQipingtongjiService.selectHtJczcQipingtongjiList(htJczcQipingtongji); + return getDataTable(list); + } + + /** + * 导出气瓶统计报列表 + */ + @PreAuthorize("@ss.hasPermi('md:qipingtongji:export')") + @Log(title = "气瓶统计报", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HtJczcQipingtongji htJczcQipingtongji) + { + List list = htJczcQipingtongjiService.selectHtJczcQipingtongjiList(htJczcQipingtongji); + ExcelUtil util = new ExcelUtil(HtJczcQipingtongji.class); + util.exportExcel(response, list, "气瓶统计报数据"); + } + + /** + * 获取气瓶统计报详细信息 + */ + @PreAuthorize("@ss.hasPermi('md:qipingtongji:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Integer id) + { + return AjaxResult.success(htJczcQipingtongjiService.selectHtJczcQipingtongjiById(id)); + } + + /** + * 新增气瓶统计报 + */ + @PreAuthorize("@ss.hasPermi('md:qipingtongji:add')") + @Log(title = "气瓶统计报", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HtJczcQipingtongji htJczcQipingtongji) + { + return toAjax(htJczcQipingtongjiService.insertHtJczcQipingtongji(htJczcQipingtongji)); + } + + /** + * 修改气瓶统计报 + */ + @PreAuthorize("@ss.hasPermi('md:qipingtongji:edit')") + @Log(title = "气瓶统计报", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HtJczcQipingtongji htJczcQipingtongji) + { + return toAjax(htJczcQipingtongjiService.updateHtJczcQipingtongji(htJczcQipingtongji)); + } + + /** + * 删除气瓶统计报 + */ + @PreAuthorize("@ss.hasPermi('md:qipingtongji:remove')") + @Log(title = "气瓶统计报", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Integer[] ids) + { + return toAjax(htJczcQipingtongjiService.deleteHtJczcQipingtongjiByIds(ids)); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtJczcXiaoshoutongjiController.java b/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtJczcXiaoshoutongjiController.java new file mode 100644 index 0000000..280fa50 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtJczcXiaoshoutongjiController.java @@ -0,0 +1,104 @@ +package com.ktg.mes.md.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ktg.common.annotation.Log; +import com.ktg.common.core.controller.BaseController; +import com.ktg.common.core.domain.AjaxResult; +import com.ktg.common.enums.BusinessType; +import com.ktg.mes.md.domain.HtJczcXiaoshoutongji; +import com.ktg.mes.md.service.IHtJczcXiaoshoutongjiService; +import com.ktg.common.utils.poi.ExcelUtil; +import com.ktg.common.core.page.TableDataInfo; + +/** + * 销售统计报Controller + * + * @author yinjinlu + * @date 2025-02-21 + */ +@RestController +@RequestMapping("/md/xiaoshoutongji") +public class HtJczcXiaoshoutongjiController extends BaseController +{ + @Autowired + private IHtJczcXiaoshoutongjiService htJczcXiaoshoutongjiService; + + /** + * 查询销售统计报列表 + */ + @PreAuthorize("@ss.hasPermi('md:xiaoshoutongji:list')") + @GetMapping("/list") + public TableDataInfo list(HtJczcXiaoshoutongji htJczcXiaoshoutongji) + { + startPage(); + List list = htJczcXiaoshoutongjiService.selectHtJczcXiaoshoutongjiList(htJczcXiaoshoutongji); + return getDataTable(list); + } + + /** + * 导出销售统计报列表 + */ + @PreAuthorize("@ss.hasPermi('md:xiaoshoutongji:export')") + @Log(title = "销售统计报", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HtJczcXiaoshoutongji htJczcXiaoshoutongji) + { + List list = htJczcXiaoshoutongjiService.selectHtJczcXiaoshoutongjiList(htJczcXiaoshoutongji); + ExcelUtil util = new ExcelUtil(HtJczcXiaoshoutongji.class); + util.exportExcel(response, list, "销售统计报数据"); + } + + /** + * 获取销售统计报详细信息 + */ + @PreAuthorize("@ss.hasPermi('md:xiaoshoutongji:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Integer id) + { + return AjaxResult.success(htJczcXiaoshoutongjiService.selectHtJczcXiaoshoutongjiById(id)); + } + + /** + * 新增销售统计报 + */ + @PreAuthorize("@ss.hasPermi('md:xiaoshoutongji:add')") + @Log(title = "销售统计报", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HtJczcXiaoshoutongji htJczcXiaoshoutongji) + { + return toAjax(htJczcXiaoshoutongjiService.insertHtJczcXiaoshoutongji(htJczcXiaoshoutongji)); + } + + /** + * 修改销售统计报 + */ + @PreAuthorize("@ss.hasPermi('md:xiaoshoutongji:edit')") + @Log(title = "销售统计报", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HtJczcXiaoshoutongji htJczcXiaoshoutongji) + { + return toAjax(htJczcXiaoshoutongjiService.updateHtJczcXiaoshoutongji(htJczcXiaoshoutongji)); + } + + /** + * 删除销售统计报 + */ + @PreAuthorize("@ss.hasPermi('md:xiaoshoutongji:remove')") + @Log(title = "销售统计报", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Integer[] ids) + { + return toAjax(htJczcXiaoshoutongjiService.deleteHtJczcXiaoshoutongjiByIds(ids)); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtQingjiaController.java b/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtQingjiaController.java new file mode 100644 index 0000000..04271b4 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtQingjiaController.java @@ -0,0 +1,104 @@ +package com.ktg.mes.md.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ktg.common.annotation.Log; +import com.ktg.common.core.controller.BaseController; +import com.ktg.common.core.domain.AjaxResult; +import com.ktg.common.enums.BusinessType; +import com.ktg.mes.md.domain.HtQingjia; +import com.ktg.mes.md.service.IHtQingjiaService; +import com.ktg.common.utils.poi.ExcelUtil; +import com.ktg.common.core.page.TableDataInfo; + +/** + * 请假Controller + * + * @author yinjinlu + * @date 2025-02-20 + */ +@RestController +@RequestMapping("/md/qingjia") +public class HtQingjiaController extends BaseController +{ + @Autowired + private IHtQingjiaService htQingjiaService; + + /** + * 查询请假列表 + */ + @PreAuthorize("@ss.hasPermi('md:qingjia:list')") + @GetMapping("/list") + public TableDataInfo list(HtQingjia htQingjia) + { + startPage(); + List list = htQingjiaService.selectHtQingjiaList(htQingjia); + return getDataTable(list); + } + + /** + * 导出请假列表 + */ + @PreAuthorize("@ss.hasPermi('md:qingjia:export')") + @Log(title = "请假", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HtQingjia htQingjia) + { + List list = htQingjiaService.selectHtQingjiaList(htQingjia); + ExcelUtil util = new ExcelUtil(HtQingjia.class); + util.exportExcel(response, list, "请假数据"); + } + + /** + * 获取请假详细信息 + */ + @PreAuthorize("@ss.hasPermi('md:qingjia:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Integer id) + { + return AjaxResult.success(htQingjiaService.selectHtQingjiaById(id)); + } + + /** + * 新增请假 + */ + @PreAuthorize("@ss.hasPermi('md:qingjia:add')") + @Log(title = "请假", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HtQingjia htQingjia) + { + return toAjax(htQingjiaService.insertHtQingjia(htQingjia)); + } + + /** + * 修改请假 + */ + @PreAuthorize("@ss.hasPermi('md:qingjia:edit')") + @Log(title = "请假", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HtQingjia htQingjia) + { + return toAjax(htQingjiaService.updateHtQingjia(htQingjia)); + } + + /** + * 删除请假 + */ + @PreAuthorize("@ss.hasPermi('md:qingjia:remove')") + @Log(title = "请假", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Integer[] ids) + { + return toAjax(htQingjiaService.deleteHtQingjiaByIds(ids)); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtWeipanController.java b/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtWeipanController.java new file mode 100644 index 0000000..8272b57 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtWeipanController.java @@ -0,0 +1,104 @@ +package com.ktg.mes.md.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ktg.common.annotation.Log; +import com.ktg.common.core.controller.BaseController; +import com.ktg.common.core.domain.AjaxResult; +import com.ktg.common.enums.BusinessType; +import com.ktg.mes.md.domain.HtWeipan; +import com.ktg.mes.md.service.IHtWeipanService; +import com.ktg.common.utils.poi.ExcelUtil; +import com.ktg.common.core.page.TableDataInfo; + +/** + * 微盘管理Controller + * + * @author yinjinlu + * @date 2025-02-20 + */ +@RestController +@RequestMapping("/md/weipan") +public class HtWeipanController extends BaseController +{ + @Autowired + private IHtWeipanService htWeipanService; + + /** + * 查询微盘管理列表 + */ + @PreAuthorize("@ss.hasPermi('md:weipan:list')") + @GetMapping("/list") + public TableDataInfo list(HtWeipan htWeipan) + { + startPage(); + List list = htWeipanService.selectHtWeipanList(htWeipan); + return getDataTable(list); + } + + /** + * 导出微盘管理列表 + */ + @PreAuthorize("@ss.hasPermi('md:weipan:export')") + @Log(title = "微盘管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HtWeipan htWeipan) + { + List list = htWeipanService.selectHtWeipanList(htWeipan); + ExcelUtil util = new ExcelUtil(HtWeipan.class); + util.exportExcel(response, list, "微盘管理数据"); + } + + /** + * 获取微盘管理详细信息 + */ + @PreAuthorize("@ss.hasPermi('md:weipan:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return AjaxResult.success(htWeipanService.selectHtWeipanById(id)); + } + + /** + * 新增微盘管理 + */ + @PreAuthorize("@ss.hasPermi('md:weipan:add')") + @Log(title = "微盘管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HtWeipan htWeipan) + { + return toAjax(htWeipanService.insertHtWeipan(htWeipan)); + } + + /** + * 修改微盘管理 + */ + @PreAuthorize("@ss.hasPermi('md:weipan:edit')") + @Log(title = "微盘管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HtWeipan htWeipan) + { + return toAjax(htWeipanService.updateHtWeipan(htWeipan)); + } + + /** + * 删除微盘管理 + */ + @PreAuthorize("@ss.hasPermi('md:weipan:remove')") + @Log(title = "微盘管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(htWeipanService.deleteHtWeipanByIds(ids)); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtZhiliangfenxiController.java b/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtZhiliangfenxiController.java new file mode 100644 index 0000000..8d51ec4 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/controller/HtZhiliangfenxiController.java @@ -0,0 +1,104 @@ +package com.ktg.mes.md.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ktg.common.annotation.Log; +import com.ktg.common.core.controller.BaseController; +import com.ktg.common.core.domain.AjaxResult; +import com.ktg.common.enums.BusinessType; +import com.ktg.mes.md.domain.HtZhiliangfenxi; +import com.ktg.mes.md.service.IHtZhiliangfenxiService; +import com.ktg.common.utils.poi.ExcelUtil; +import com.ktg.common.core.page.TableDataInfo; + +/** + * 数据统计与分析Controller + * + * @author yinjinlu + * @date 2025-02-21 + */ +@RestController +@RequestMapping("/md/zhiliangfenxi") +public class HtZhiliangfenxiController extends BaseController +{ + @Autowired + private IHtZhiliangfenxiService htZhiliangfenxiService; + + /** + * 查询数据统计与分析列表 + */ + @PreAuthorize("@ss.hasPermi('md:zhiliangfenxi:list')") + @GetMapping("/list") + public TableDataInfo list(HtZhiliangfenxi htZhiliangfenxi) + { + startPage(); + List list = htZhiliangfenxiService.selectHtZhiliangfenxiList(htZhiliangfenxi); + return getDataTable(list); + } + + /** + * 导出数据统计与分析列表 + */ + @PreAuthorize("@ss.hasPermi('md:zhiliangfenxi:export')") + @Log(title = "数据统计与分析", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, HtZhiliangfenxi htZhiliangfenxi) + { + List list = htZhiliangfenxiService.selectHtZhiliangfenxiList(htZhiliangfenxi); + ExcelUtil util = new ExcelUtil(HtZhiliangfenxi.class); + util.exportExcel(response, list, "数据统计与分析数据"); + } + + /** + * 获取数据统计与分析详细信息 + */ + @PreAuthorize("@ss.hasPermi('md:zhiliangfenxi:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Integer id) + { + return AjaxResult.success(htZhiliangfenxiService.selectHtZhiliangfenxiById(id)); + } + + /** + * 新增数据统计与分析 + */ + @PreAuthorize("@ss.hasPermi('md:zhiliangfenxi:add')") + @Log(title = "数据统计与分析", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody HtZhiliangfenxi htZhiliangfenxi) + { + return toAjax(htZhiliangfenxiService.insertHtZhiliangfenxi(htZhiliangfenxi)); + } + + /** + * 修改数据统计与分析 + */ + @PreAuthorize("@ss.hasPermi('md:zhiliangfenxi:edit')") + @Log(title = "数据统计与分析", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody HtZhiliangfenxi htZhiliangfenxi) + { + return toAjax(htZhiliangfenxiService.updateHtZhiliangfenxi(htZhiliangfenxi)); + } + + /** + * 删除数据统计与分析 + */ + @PreAuthorize("@ss.hasPermi('md:zhiliangfenxi:remove')") + @Log(title = "数据统计与分析", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Integer[] ids) + { + return toAjax(htZhiliangfenxiService.deleteHtZhiliangfenxiByIds(ids)); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtBaoxiao.java b/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtBaoxiao.java new file mode 100644 index 0000000..3ee95d2 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtBaoxiao.java @@ -0,0 +1,96 @@ +package com.ktg.mes.md.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ktg.common.annotation.Excel; +import com.ktg.common.core.domain.BaseEntity; + +/** + * 报销对象 ht_baoxiao + * + * @author yinjinlu + * @date 2025-02-20 + */ +public class HtBaoxiao extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** id */ + private Integer id; + + /** 类型 */ + @Excel(name = "类型") + private String leixing; + + /** 原因 */ + @Excel(name = "原因") + private String yuanyin; + + /** 金额 */ + @Excel(name = "金额") + private Double jine; + + /** 时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date shijian; + + public void setId(Integer id) + { + this.id = id; + } + + public Integer getId() + { + return id; + } + public void setLeixing(String leixing) + { + this.leixing = leixing; + } + + public String getLeixing() + { + return leixing; + } + public void setYuanyin(String yuanyin) + { + this.yuanyin = yuanyin; + } + + public String getYuanyin() + { + return yuanyin; + } + public void setJine(Double jine) + { + this.jine = jine; + } + + public Double getJine() + { + return jine; + } + public void setShijian(Date shijian) + { + this.shijian = shijian; + } + + public Date getShijian() + { + return shijian; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("leixing", getLeixing()) + .append("yuanyin", getYuanyin()) + .append("jine", getJine()) + .append("shijian", getShijian()) + .toString(); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtGgl.java b/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtGgl.java new file mode 100644 index 0000000..65f4337 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtGgl.java @@ -0,0 +1,82 @@ +package com.ktg.mes.md.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ktg.common.annotation.Excel; +import com.ktg.common.core.domain.BaseEntity; + +/** + * 公告栏对象 ht_ggl + * + * @author yinjinlu + * @date 2025-02-20 + */ +public class HtGgl extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private Integer id; + + /** 标题 */ + @Excel(name = "标题") + private String biaoti; + + /** 时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date shijian; + + /** 内容 */ + @Excel(name = "内容") + private String neirong; + + public void setId(Integer id) + { + this.id = id; + } + + public Integer getId() + { + return id; + } + public void setBiaoti(String biaoti) + { + this.biaoti = biaoti; + } + + public String getBiaoti() + { + return biaoti; + } + public void setShijian(Date shijian) + { + this.shijian = shijian; + } + + public Date getShijian() + { + return shijian; + } + public void setNeirong(String neirong) + { + this.neirong = neirong; + } + + public String getNeirong() + { + return neirong; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("biaoti", getBiaoti()) + .append("shijian", getShijian()) + .append("neirong", getNeirong()) + .toString(); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtHetong.java b/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtHetong.java new file mode 100644 index 0000000..1d7446c --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtHetong.java @@ -0,0 +1,110 @@ +package com.ktg.mes.md.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ktg.common.annotation.Excel; +import com.ktg.common.core.domain.BaseEntity; + +/** + * 合同管理对象 ht_hetong + * + * @author yinjinlu + * @date 2025-02-20 + */ +public class HtHetong extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private Integer id; + + /** 合同编号 */ + @Excel(name = "合同编号") + private String bianhao; + + /** 合同名称 */ + @Excel(name = "合同名称") + private String mingcheng; + + /** 合同金额 */ + @Excel(name = "合同金额") + private Double jine; + + /** 合同时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "合同时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date shijian; + + /** 合同内容 */ + @Excel(name = "合同内容") + private String neirong; + + public void setId(Integer id) + { + this.id = id; + } + + public Integer getId() + { + return id; + } + public void setBianhao(String bianhao) + { + this.bianhao = bianhao; + } + + public String getBianhao() + { + return bianhao; + } + public void setMingcheng(String mingcheng) + { + this.mingcheng = mingcheng; + } + + public String getMingcheng() + { + return mingcheng; + } + public void setJine(Double jine) + { + this.jine = jine; + } + + public Double getJine() + { + return jine; + } + public void setShijian(Date shijian) + { + this.shijian = shijian; + } + + public Date getShijian() + { + return shijian; + } + public void setNeirong(String neirong) + { + this.neirong = neirong; + } + + public String getNeirong() + { + return neirong; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("bianhao", getBianhao()) + .append("mingcheng", getMingcheng()) + .append("jine", getJine()) + .append("shijian", getShijian()) + .append("neirong", getNeirong()) + .toString(); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtJczcKehutongji.java b/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtJczcKehutongji.java new file mode 100644 index 0000000..8971479 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtJczcKehutongji.java @@ -0,0 +1,379 @@ +package com.ktg.mes.md.domain; + +import java.math.BigDecimal; +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ktg.common.annotation.Excel; +import com.ktg.common.core.domain.BaseEntity; + +/** + * 客户统计报对象 ht_jczc_kehutongji + * + * @author yinjinlu + * @date 2025-02-21 + */ +public class HtJczcKehutongji extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private Integer id; + + /** 客户名称 */ + @Excel(name = "客户名称") + private String customerName; + + /** 客户类型 */ + @Excel(name = "客户类型") + private String customerType; + + /** 联系人姓名 */ + @Excel(name = "联系人姓名") + private String contactName; + + /** 联系电话 */ + @Excel(name = "联系电话") + private String contactPhone; + + /** 客户所在地区 */ + @Excel(name = "客户所在地区") + private String region; + + /** 总销售额 */ + @Excel(name = "总销售额") + private BigDecimal totalSales; + + /** 总销售量 */ + @Excel(name = "总销售量") + private BigDecimal totalQuantity; + + /** 平均单价 */ + @Excel(name = "平均单价") + private BigDecimal averageUnitPrice; + + /** 最大订单金额 */ + @Excel(name = "最大订单金额") + private BigDecimal largestOrder; + + /** 平均订单金额 */ + @Excel(name = "平均订单金额") + private BigDecimal averageOrderValue; + + /** 直销销售额 */ + @Excel(name = "直销销售额") + private BigDecimal directSales; + + /** 代理商销售额 */ + @Excel(name = "代理商销售额") + private BigDecimal agentSales; + + /** 电商平台销售额 */ + @Excel(name = "电商平台销售额") + private BigDecimal onlineSales; + + /** 气体产品销售额 */ + @Excel(name = "气体产品销售额") + private BigDecimal gasSales; + + /** 设备销售额 */ + @Excel(name = "设备销售额") + private BigDecimal equipmentSales; + + /** 服务销售额 */ + @Excel(name = "服务销售额") + private BigDecimal serviceSales; + + /** 首次下单日期 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "首次下单日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date firstOrderDate; + + /** 最近下单日期 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "最近下单日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date lastOrderDate; + + /** 累计订单数 */ + @Excel(name = "累计订单数") + private Integer totalOrders; + + /** 复购率 */ + @Excel(name = "复购率") + private BigDecimal repeatPurchaseRate; + + /** 累计支付金额 */ + @Excel(name = "累计支付金额") + private BigDecimal totalPayments; + + /** 累计退款金额 */ + @Excel(name = "累计退款金额") + private BigDecimal totalRefunds; + + /** 未结清金额 */ + @Excel(name = "未结清金额") + private BigDecimal outstandingBalance; + + /** 统计周期 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "统计周期", width = 30, dateFormat = "yyyy-MM-dd") + private Date statisticPeriod; + + public void setId(Integer id) + { + this.id = id; + } + + public Integer getId() + { + return id; + } + public void setCustomerName(String customerName) + { + this.customerName = customerName; + } + + public String getCustomerName() + { + return customerName; + } + public void setCustomerType(String customerType) + { + this.customerType = customerType; + } + + public String getCustomerType() + { + return customerType; + } + public void setContactName(String contactName) + { + this.contactName = contactName; + } + + public String getContactName() + { + return contactName; + } + public void setContactPhone(String contactPhone) + { + this.contactPhone = contactPhone; + } + + public String getContactPhone() + { + return contactPhone; + } + public void setRegion(String region) + { + this.region = region; + } + + public String getRegion() + { + return region; + } + public void setTotalSales(BigDecimal totalSales) + { + this.totalSales = totalSales; + } + + public BigDecimal getTotalSales() + { + return totalSales; + } + public void setTotalQuantity(BigDecimal totalQuantity) + { + this.totalQuantity = totalQuantity; + } + + public BigDecimal getTotalQuantity() + { + return totalQuantity; + } + public void setAverageUnitPrice(BigDecimal averageUnitPrice) + { + this.averageUnitPrice = averageUnitPrice; + } + + public BigDecimal getAverageUnitPrice() + { + return averageUnitPrice; + } + public void setLargestOrder(BigDecimal largestOrder) + { + this.largestOrder = largestOrder; + } + + public BigDecimal getLargestOrder() + { + return largestOrder; + } + public void setAverageOrderValue(BigDecimal averageOrderValue) + { + this.averageOrderValue = averageOrderValue; + } + + public BigDecimal getAverageOrderValue() + { + return averageOrderValue; + } + public void setDirectSales(BigDecimal directSales) + { + this.directSales = directSales; + } + + public BigDecimal getDirectSales() + { + return directSales; + } + public void setAgentSales(BigDecimal agentSales) + { + this.agentSales = agentSales; + } + + public BigDecimal getAgentSales() + { + return agentSales; + } + public void setOnlineSales(BigDecimal onlineSales) + { + this.onlineSales = onlineSales; + } + + public BigDecimal getOnlineSales() + { + return onlineSales; + } + public void setGasSales(BigDecimal gasSales) + { + this.gasSales = gasSales; + } + + public BigDecimal getGasSales() + { + return gasSales; + } + public void setEquipmentSales(BigDecimal equipmentSales) + { + this.equipmentSales = equipmentSales; + } + + public BigDecimal getEquipmentSales() + { + return equipmentSales; + } + public void setServiceSales(BigDecimal serviceSales) + { + this.serviceSales = serviceSales; + } + + public BigDecimal getServiceSales() + { + return serviceSales; + } + public void setFirstOrderDate(Date firstOrderDate) + { + this.firstOrderDate = firstOrderDate; + } + + public Date getFirstOrderDate() + { + return firstOrderDate; + } + public void setLastOrderDate(Date lastOrderDate) + { + this.lastOrderDate = lastOrderDate; + } + + public Date getLastOrderDate() + { + return lastOrderDate; + } + public void setTotalOrders(Integer totalOrders) + { + this.totalOrders = totalOrders; + } + + public Integer getTotalOrders() + { + return totalOrders; + } + public void setRepeatPurchaseRate(BigDecimal repeatPurchaseRate) + { + this.repeatPurchaseRate = repeatPurchaseRate; + } + + public BigDecimal getRepeatPurchaseRate() + { + return repeatPurchaseRate; + } + public void setTotalPayments(BigDecimal totalPayments) + { + this.totalPayments = totalPayments; + } + + public BigDecimal getTotalPayments() + { + return totalPayments; + } + public void setTotalRefunds(BigDecimal totalRefunds) + { + this.totalRefunds = totalRefunds; + } + + public BigDecimal getTotalRefunds() + { + return totalRefunds; + } + public void setOutstandingBalance(BigDecimal outstandingBalance) + { + this.outstandingBalance = outstandingBalance; + } + + public BigDecimal getOutstandingBalance() + { + return outstandingBalance; + } + public void setStatisticPeriod(Date statisticPeriod) + { + this.statisticPeriod = statisticPeriod; + } + + public Date getStatisticPeriod() + { + return statisticPeriod; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("customerName", getCustomerName()) + .append("customerType", getCustomerType()) + .append("contactName", getContactName()) + .append("contactPhone", getContactPhone()) + .append("region", getRegion()) + .append("totalSales", getTotalSales()) + .append("totalQuantity", getTotalQuantity()) + .append("averageUnitPrice", getAverageUnitPrice()) + .append("largestOrder", getLargestOrder()) + .append("averageOrderValue", getAverageOrderValue()) + .append("directSales", getDirectSales()) + .append("agentSales", getAgentSales()) + .append("onlineSales", getOnlineSales()) + .append("gasSales", getGasSales()) + .append("equipmentSales", getEquipmentSales()) + .append("serviceSales", getServiceSales()) + .append("firstOrderDate", getFirstOrderDate()) + .append("lastOrderDate", getLastOrderDate()) + .append("totalOrders", getTotalOrders()) + .append("repeatPurchaseRate", getRepeatPurchaseRate()) + .append("totalPayments", getTotalPayments()) + .append("totalRefunds", getTotalRefunds()) + .append("outstandingBalance", getOutstandingBalance()) + .append("statisticPeriod", getStatisticPeriod()) + .toString(); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtJczcKucuntongji.java b/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtJczcKucuntongji.java new file mode 100644 index 0000000..0c676f0 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtJczcKucuntongji.java @@ -0,0 +1,363 @@ +package com.ktg.mes.md.domain; + +import java.math.BigDecimal; +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ktg.common.annotation.Excel; +import com.ktg.common.core.domain.BaseEntity; + +/** + * 库存统计报对象 ht_jczc_kucuntongji + * + * @author yinjinlu + * @date 2025-02-21 + */ +public class HtJczcKucuntongji extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private Integer id; + + /** 统计日期 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "统计日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date statisticDate; + + /** 总库存价值 */ + @Excel(name = "总库存价值") + private BigDecimal totalInventoryValue; + + /** 总库存数量 */ + @Excel(name = "总库存数量") + private BigDecimal totalQuantity; + + /** 原材料库存价值 */ + @Excel(name = "原材料库存价值") + private BigDecimal rawMaterialValue; + + /** 原材料库存数量 */ + @Excel(name = "原材料库存数量") + private BigDecimal rawMaterialQuantity; + + /** 原材料库存周转率 */ + @Excel(name = "原材料库存周转率") + private BigDecimal rawMaterialTurnoverRate; + + /** 成品库存价值 */ + @Excel(name = "成品库存价值") + private BigDecimal finishedGoodsValue; + + /** 成品库存数量 */ + @Excel(name = "成品库存数量") + private BigDecimal finishedGoodsQuantity; + + /** 成品库存周转率 */ + @Excel(name = "成品库存周转率") + private BigDecimal finishedGoodsTurnoverRate; + + /** 氧气库存价值 */ + @Excel(name = "氧气库存价值") + private BigDecimal oxygenValue; + + /** 氧气库存数量 */ + @Excel(name = "氧气库存数量") + private BigDecimal oxygenQuantity; + + /** 氮气库存价值 */ + @Excel(name = "氮气库存价值") + private BigDecimal nitrogenValue; + + /** 氮气库存数量 */ + @Excel(name = "氮气库存数量") + private BigDecimal nitrogenQuantity; + + /** 氩气库存价值 */ + @Excel(name = "氩气库存价值") + private BigDecimal argonValue; + + /** 氩气库存数量 */ + @Excel(name = "氩气库存数量") + private BigDecimal argonQuantity; + + /** 总库存周转率 */ + @Excel(name = "总库存周转率") + private BigDecimal overallTurnoverRate; + + /** 库存周转天数 */ + @Excel(name = "库存周转天数") + private Integer daysInventoryOutstanding; + + /** 低库存商品数量 */ + @Excel(name = "低库存商品数量") + private Integer lowStockItems; + + /** 缺货商品数量 */ + @Excel(name = "缺货商品数量") + private Integer outOfStockItems; + + /** 积压商品数量 */ + @Excel(name = "积压商品数量") + private Integer excessStockItems; + + /** 地区 */ + @Excel(name = "地区") + private String region; + + /** 仓库名称 */ + @Excel(name = "仓库名称") + private String warehouse; + + /** 年份 */ + @Excel(name = "年份") + private Integer year; + + public void setId(Integer id) + { + this.id = id; + } + + public Integer getId() + { + return id; + } + public void setStatisticDate(Date statisticDate) + { + this.statisticDate = statisticDate; + } + + public Date getStatisticDate() + { + return statisticDate; + } + public void setTotalInventoryValue(BigDecimal totalInventoryValue) + { + this.totalInventoryValue = totalInventoryValue; + } + + public BigDecimal getTotalInventoryValue() + { + return totalInventoryValue; + } + public void setTotalQuantity(BigDecimal totalQuantity) + { + this.totalQuantity = totalQuantity; + } + + public BigDecimal getTotalQuantity() + { + return totalQuantity; + } + public void setRawMaterialValue(BigDecimal rawMaterialValue) + { + this.rawMaterialValue = rawMaterialValue; + } + + public BigDecimal getRawMaterialValue() + { + return rawMaterialValue; + } + public void setRawMaterialQuantity(BigDecimal rawMaterialQuantity) + { + this.rawMaterialQuantity = rawMaterialQuantity; + } + + public BigDecimal getRawMaterialQuantity() + { + return rawMaterialQuantity; + } + public void setRawMaterialTurnoverRate(BigDecimal rawMaterialTurnoverRate) + { + this.rawMaterialTurnoverRate = rawMaterialTurnoverRate; + } + + public BigDecimal getRawMaterialTurnoverRate() + { + return rawMaterialTurnoverRate; + } + public void setFinishedGoodsValue(BigDecimal finishedGoodsValue) + { + this.finishedGoodsValue = finishedGoodsValue; + } + + public BigDecimal getFinishedGoodsValue() + { + return finishedGoodsValue; + } + public void setFinishedGoodsQuantity(BigDecimal finishedGoodsQuantity) + { + this.finishedGoodsQuantity = finishedGoodsQuantity; + } + + public BigDecimal getFinishedGoodsQuantity() + { + return finishedGoodsQuantity; + } + public void setFinishedGoodsTurnoverRate(BigDecimal finishedGoodsTurnoverRate) + { + this.finishedGoodsTurnoverRate = finishedGoodsTurnoverRate; + } + + public BigDecimal getFinishedGoodsTurnoverRate() + { + return finishedGoodsTurnoverRate; + } + public void setOxygenValue(BigDecimal oxygenValue) + { + this.oxygenValue = oxygenValue; + } + + public BigDecimal getOxygenValue() + { + return oxygenValue; + } + public void setOxygenQuantity(BigDecimal oxygenQuantity) + { + this.oxygenQuantity = oxygenQuantity; + } + + public BigDecimal getOxygenQuantity() + { + return oxygenQuantity; + } + public void setNitrogenValue(BigDecimal nitrogenValue) + { + this.nitrogenValue = nitrogenValue; + } + + public BigDecimal getNitrogenValue() + { + return nitrogenValue; + } + public void setNitrogenQuantity(BigDecimal nitrogenQuantity) + { + this.nitrogenQuantity = nitrogenQuantity; + } + + public BigDecimal getNitrogenQuantity() + { + return nitrogenQuantity; + } + public void setArgonValue(BigDecimal argonValue) + { + this.argonValue = argonValue; + } + + public BigDecimal getArgonValue() + { + return argonValue; + } + public void setArgonQuantity(BigDecimal argonQuantity) + { + this.argonQuantity = argonQuantity; + } + + public BigDecimal getArgonQuantity() + { + return argonQuantity; + } + public void setOverallTurnoverRate(BigDecimal overallTurnoverRate) + { + this.overallTurnoverRate = overallTurnoverRate; + } + + public BigDecimal getOverallTurnoverRate() + { + return overallTurnoverRate; + } + public void setDaysInventoryOutstanding(Integer daysInventoryOutstanding) + { + this.daysInventoryOutstanding = daysInventoryOutstanding; + } + + public Integer getDaysInventoryOutstanding() + { + return daysInventoryOutstanding; + } + public void setLowStockItems(Integer lowStockItems) + { + this.lowStockItems = lowStockItems; + } + + public Integer getLowStockItems() + { + return lowStockItems; + } + public void setOutOfStockItems(Integer outOfStockItems) + { + this.outOfStockItems = outOfStockItems; + } + + public Integer getOutOfStockItems() + { + return outOfStockItems; + } + public void setExcessStockItems(Integer excessStockItems) + { + this.excessStockItems = excessStockItems; + } + + public Integer getExcessStockItems() + { + return excessStockItems; + } + public void setRegion(String region) + { + this.region = region; + } + + public String getRegion() + { + return region; + } + public void setWarehouse(String warehouse) + { + this.warehouse = warehouse; + } + + public String getWarehouse() + { + return warehouse; + } + public void setYear(Integer year) + { + this.year = year; + } + + public Integer getYear() + { + return year; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("statisticDate", getStatisticDate()) + .append("totalInventoryValue", getTotalInventoryValue()) + .append("totalQuantity", getTotalQuantity()) + .append("rawMaterialValue", getRawMaterialValue()) + .append("rawMaterialQuantity", getRawMaterialQuantity()) + .append("rawMaterialTurnoverRate", getRawMaterialTurnoverRate()) + .append("finishedGoodsValue", getFinishedGoodsValue()) + .append("finishedGoodsQuantity", getFinishedGoodsQuantity()) + .append("finishedGoodsTurnoverRate", getFinishedGoodsTurnoverRate()) + .append("oxygenValue", getOxygenValue()) + .append("oxygenQuantity", getOxygenQuantity()) + .append("nitrogenValue", getNitrogenValue()) + .append("nitrogenQuantity", getNitrogenQuantity()) + .append("argonValue", getArgonValue()) + .append("argonQuantity", getArgonQuantity()) + .append("overallTurnoverRate", getOverallTurnoverRate()) + .append("daysInventoryOutstanding", getDaysInventoryOutstanding()) + .append("lowStockItems", getLowStockItems()) + .append("outOfStockItems", getOutOfStockItems()) + .append("excessStockItems", getExcessStockItems()) + .append("region", getRegion()) + .append("warehouse", getWarehouse()) + .append("year", getYear()) + .toString(); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtJczcQipingtongji.java b/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtJczcQipingtongji.java new file mode 100644 index 0000000..d6d0e11 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtJczcQipingtongji.java @@ -0,0 +1,334 @@ +package com.ktg.mes.md.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ktg.common.annotation.Excel; +import com.ktg.common.core.domain.BaseEntity; + +/** + * 气瓶统计报对象 ht_jczc_qipingtongji + * + * @author yinjinlu + * @date 2025-02-21 + */ +public class HtJczcQipingtongji extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private Integer id; + + /** 统计日期 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "统计日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date statisticDate; + + /** 公司库存气瓶数量 */ + @Excel(name = "公司库存气瓶数量") + private Integer companyStock; + + /** 客户欠瓶数量 */ + @Excel(name = "客户欠瓶数量") + private Integer customerOwing; + + /** 新购气瓶数量 */ + @Excel(name = "新购气瓶数量") + private Integer newlyPurchased; + + /** 售出气瓶数量 */ + @Excel(name = "售出气瓶数量") + private Integer sold; + + /** 报废气瓶数量 */ + @Excel(name = "报废气瓶数量") + private Integer scrapped; + + /** 气瓶实际总量 */ + @Excel(name = "气瓶实际总量") + private Integer totalCylinders; + + /** 在库气瓶数量 */ + @Excel(name = "在库气瓶数量") + private Integer inStock; + + /** 在用气瓶数量 */ + @Excel(name = "在用气瓶数量") + private Integer inUse; + + /** 在维护气瓶数量 */ + @Excel(name = "在维护气瓶数量") + private Integer inMaintenance; + + /** 待报废气瓶数量 */ + @Excel(name = "待报废气瓶数量") + private Integer awaitingScrap; + + /** 氧气瓶数量 */ + @Excel(name = "氧气瓶数量") + private Integer oxygenCylinders; + + /** 氮气瓶数量 */ + @Excel(name = "氮气瓶数量") + private Integer nitrogenCylinders; + + /** 氩气瓶数量 */ + @Excel(name = "氩气瓶数量") + private Integer argonCylinders; + + /** 其他气瓶数量 */ + @Excel(name = "其他气瓶数量") + private Integer otherCylinders; + + /** 租出气瓶数量 */ + @Excel(name = "租出气瓶数量") + private Integer cylindersRented; + + /** 归还气瓶数量 */ + @Excel(name = "归还气瓶数量") + private Integer cylindersReturned; + + /** 丢失气瓶数量 */ + @Excel(name = "丢失气瓶数量") + private Integer cylindersLost; + + /** 地区 */ + @Excel(name = "地区") + private String region; + + /** 仓库名称 */ + @Excel(name = "仓库名称") + private String warehouse; + + /** 年份 */ + @Excel(name = "年份") + private Integer year; + + public void setId(Integer id) + { + this.id = id; + } + + public Integer getId() + { + return id; + } + public void setStatisticDate(Date statisticDate) + { + this.statisticDate = statisticDate; + } + + public Date getStatisticDate() + { + return statisticDate; + } + public void setCompanyStock(Integer companyStock) + { + this.companyStock = companyStock; + } + + public Integer getCompanyStock() + { + return companyStock; + } + public void setCustomerOwing(Integer customerOwing) + { + this.customerOwing = customerOwing; + } + + public Integer getCustomerOwing() + { + return customerOwing; + } + public void setNewlyPurchased(Integer newlyPurchased) + { + this.newlyPurchased = newlyPurchased; + } + + public Integer getNewlyPurchased() + { + return newlyPurchased; + } + public void setSold(Integer sold) + { + this.sold = sold; + } + + public Integer getSold() + { + return sold; + } + public void setScrapped(Integer scrapped) + { + this.scrapped = scrapped; + } + + public Integer getScrapped() + { + return scrapped; + } + public void setTotalCylinders(Integer totalCylinders) + { + this.totalCylinders = totalCylinders; + } + + public Integer getTotalCylinders() + { + return totalCylinders; + } + public void setInStock(Integer inStock) + { + this.inStock = inStock; + } + + public Integer getInStock() + { + return inStock; + } + public void setInUse(Integer inUse) + { + this.inUse = inUse; + } + + public Integer getInUse() + { + return inUse; + } + public void setInMaintenance(Integer inMaintenance) + { + this.inMaintenance = inMaintenance; + } + + public Integer getInMaintenance() + { + return inMaintenance; + } + public void setAwaitingScrap(Integer awaitingScrap) + { + this.awaitingScrap = awaitingScrap; + } + + public Integer getAwaitingScrap() + { + return awaitingScrap; + } + public void setOxygenCylinders(Integer oxygenCylinders) + { + this.oxygenCylinders = oxygenCylinders; + } + + public Integer getOxygenCylinders() + { + return oxygenCylinders; + } + public void setNitrogenCylinders(Integer nitrogenCylinders) + { + this.nitrogenCylinders = nitrogenCylinders; + } + + public Integer getNitrogenCylinders() + { + return nitrogenCylinders; + } + public void setArgonCylinders(Integer argonCylinders) + { + this.argonCylinders = argonCylinders; + } + + public Integer getArgonCylinders() + { + return argonCylinders; + } + public void setOtherCylinders(Integer otherCylinders) + { + this.otherCylinders = otherCylinders; + } + + public Integer getOtherCylinders() + { + return otherCylinders; + } + public void setCylindersRented(Integer cylindersRented) + { + this.cylindersRented = cylindersRented; + } + + public Integer getCylindersRented() + { + return cylindersRented; + } + public void setCylindersReturned(Integer cylindersReturned) + { + this.cylindersReturned = cylindersReturned; + } + + public Integer getCylindersReturned() + { + return cylindersReturned; + } + public void setCylindersLost(Integer cylindersLost) + { + this.cylindersLost = cylindersLost; + } + + public Integer getCylindersLost() + { + return cylindersLost; + } + public void setRegion(String region) + { + this.region = region; + } + + public String getRegion() + { + return region; + } + public void setWarehouse(String warehouse) + { + this.warehouse = warehouse; + } + + public String getWarehouse() + { + return warehouse; + } + public void setYear(Integer year) + { + this.year = year; + } + + public Integer getYear() + { + return year; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("statisticDate", getStatisticDate()) + .append("companyStock", getCompanyStock()) + .append("customerOwing", getCustomerOwing()) + .append("newlyPurchased", getNewlyPurchased()) + .append("sold", getSold()) + .append("scrapped", getScrapped()) + .append("totalCylinders", getTotalCylinders()) + .append("inStock", getInStock()) + .append("inUse", getInUse()) + .append("inMaintenance", getInMaintenance()) + .append("awaitingScrap", getAwaitingScrap()) + .append("oxygenCylinders", getOxygenCylinders()) + .append("nitrogenCylinders", getNitrogenCylinders()) + .append("argonCylinders", getArgonCylinders()) + .append("otherCylinders", getOtherCylinders()) + .append("cylindersRented", getCylindersRented()) + .append("cylindersReturned", getCylindersReturned()) + .append("cylindersLost", getCylindersLost()) + .append("region", getRegion()) + .append("warehouse", getWarehouse()) + .append("year", getYear()) + .toString(); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtJczcXiaoshoutongji.java b/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtJczcXiaoshoutongji.java new file mode 100644 index 0000000..601d160 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtJczcXiaoshoutongji.java @@ -0,0 +1,348 @@ +package com.ktg.mes.md.domain; + +import java.math.BigDecimal; +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ktg.common.annotation.Excel; +import com.ktg.common.core.domain.BaseEntity; + +/** + * 销售统计报对象 ht_jczc_xiaoshoutongji + * + * @author yinjinlu + * @date 2025-02-21 + */ +public class HtJczcXiaoshoutongji extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private Integer id; + + /** 统计日期(通常是每月第一天) */ + @Excel(name = "统计日期", readConverterExp = "通=常是每月第一天") + private Date statisticDate; + + /** 总销售额 */ + @Excel(name = "总销售额") + private BigDecimal totalSales; + + /** 总销售量 */ + @Excel(name = "总销售量") + private BigDecimal totalQuantity; + + /** 平均单价 */ + @Excel(name = "平均单价") + private BigDecimal averageUnitPrice; + + /** 工业客户销售额 */ + @Excel(name = "工业客户销售额") + private BigDecimal industrialSales; + + /** 医疗客户销售额 */ + @Excel(name = "医疗客户销售额") + private BigDecimal medicalSales; + + /** 零售客户销售额 */ + @Excel(name = "零售客户销售额") + private BigDecimal retailSales; + + /** 其他客户销售额 */ + @Excel(name = "其他客户销售额") + private BigDecimal otherSales; + + /** 直销销售额 */ + @Excel(name = "直销销售额") + private BigDecimal directSales; + + /** 代理商销售额 */ + @Excel(name = "代理商销售额") + private BigDecimal agentSales; + + /** 电商平台销售额 */ + @Excel(name = "电商平台销售额") + private BigDecimal onlineSales; + + /** 气体产品销售额 */ + @Excel(name = "气体产品销售额") + private BigDecimal gasSales; + + /** 设备销售额 */ + @Excel(name = "设备销售额") + private BigDecimal equipmentSales; + + /** 服务销售额 */ + @Excel(name = "服务销售额") + private BigDecimal serviceSales; + + /** 新增客户数量 */ + @Excel(name = "新增客户数量") + private Integer newCustomers; + + /** 回头客数量 */ + @Excel(name = "回头客数量") + private Integer repeatCustomers; + + /** 最大订单金额 */ + @Excel(name = "最大订单金额") + private BigDecimal largestOrder; + + /** 平均订单金额 */ + @Excel(name = "平均订单金额") + private BigDecimal averageOrderValue; + + /** 退款金额 */ + @Excel(name = "退款金额") + private BigDecimal refundAmount; + + /** 净销售额 */ + @Excel(name = "净销售额") + private BigDecimal netSales; + + /** 季度 */ + @Excel(name = "季度") + private String season; + + /** 年份 */ + @Excel(name = "年份") + private Integer year; + + public void setId(Integer id) + { + this.id = id; + } + + public Integer getId() + { + return id; + } + public void setStatisticDate(Date statisticDate) + { + this.statisticDate = statisticDate; + } + + public Date getStatisticDate() + { + return statisticDate; + } + public void setTotalSales(BigDecimal totalSales) + { + this.totalSales = totalSales; + } + + public BigDecimal getTotalSales() + { + return totalSales; + } + public void setTotalQuantity(BigDecimal totalQuantity) + { + this.totalQuantity = totalQuantity; + } + + public BigDecimal getTotalQuantity() + { + return totalQuantity; + } + public void setAverageUnitPrice(BigDecimal averageUnitPrice) + { + this.averageUnitPrice = averageUnitPrice; + } + + public BigDecimal getAverageUnitPrice() + { + return averageUnitPrice; + } + public void setIndustrialSales(BigDecimal industrialSales) + { + this.industrialSales = industrialSales; + } + + public BigDecimal getIndustrialSales() + { + return industrialSales; + } + public void setMedicalSales(BigDecimal medicalSales) + { + this.medicalSales = medicalSales; + } + + public BigDecimal getMedicalSales() + { + return medicalSales; + } + public void setRetailSales(BigDecimal retailSales) + { + this.retailSales = retailSales; + } + + public BigDecimal getRetailSales() + { + return retailSales; + } + public void setOtherSales(BigDecimal otherSales) + { + this.otherSales = otherSales; + } + + public BigDecimal getOtherSales() + { + return otherSales; + } + public void setDirectSales(BigDecimal directSales) + { + this.directSales = directSales; + } + + public BigDecimal getDirectSales() + { + return directSales; + } + public void setAgentSales(BigDecimal agentSales) + { + this.agentSales = agentSales; + } + + public BigDecimal getAgentSales() + { + return agentSales; + } + public void setOnlineSales(BigDecimal onlineSales) + { + this.onlineSales = onlineSales; + } + + public BigDecimal getOnlineSales() + { + return onlineSales; + } + public void setGasSales(BigDecimal gasSales) + { + this.gasSales = gasSales; + } + + public BigDecimal getGasSales() + { + return gasSales; + } + public void setEquipmentSales(BigDecimal equipmentSales) + { + this.equipmentSales = equipmentSales; + } + + public BigDecimal getEquipmentSales() + { + return equipmentSales; + } + public void setServiceSales(BigDecimal serviceSales) + { + this.serviceSales = serviceSales; + } + + public BigDecimal getServiceSales() + { + return serviceSales; + } + public void setNewCustomers(Integer newCustomers) + { + this.newCustomers = newCustomers; + } + + public Integer getNewCustomers() + { + return newCustomers; + } + public void setRepeatCustomers(Integer repeatCustomers) + { + this.repeatCustomers = repeatCustomers; + } + + public Integer getRepeatCustomers() + { + return repeatCustomers; + } + public void setLargestOrder(BigDecimal largestOrder) + { + this.largestOrder = largestOrder; + } + + public BigDecimal getLargestOrder() + { + return largestOrder; + } + public void setAverageOrderValue(BigDecimal averageOrderValue) + { + this.averageOrderValue = averageOrderValue; + } + + public BigDecimal getAverageOrderValue() + { + return averageOrderValue; + } + public void setRefundAmount(BigDecimal refundAmount) + { + this.refundAmount = refundAmount; + } + + public BigDecimal getRefundAmount() + { + return refundAmount; + } + public void setNetSales(BigDecimal netSales) + { + this.netSales = netSales; + } + + public BigDecimal getNetSales() + { + return netSales; + } + public void setSeason(String season) + { + this.season = season; + } + + public String getSeason() + { + return season; + } + public void setYear(Integer year) + { + this.year = year; + } + + public Integer getYear() + { + return year; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("statisticDate", getStatisticDate()) + .append("totalSales", getTotalSales()) + .append("totalQuantity", getTotalQuantity()) + .append("averageUnitPrice", getAverageUnitPrice()) + .append("industrialSales", getIndustrialSales()) + .append("medicalSales", getMedicalSales()) + .append("retailSales", getRetailSales()) + .append("otherSales", getOtherSales()) + .append("directSales", getDirectSales()) + .append("agentSales", getAgentSales()) + .append("onlineSales", getOnlineSales()) + .append("gasSales", getGasSales()) + .append("equipmentSales", getEquipmentSales()) + .append("serviceSales", getServiceSales()) + .append("newCustomers", getNewCustomers()) + .append("repeatCustomers", getRepeatCustomers()) + .append("largestOrder", getLargestOrder()) + .append("averageOrderValue", getAverageOrderValue()) + .append("refundAmount", getRefundAmount()) + .append("netSales", getNetSales()) + .append("season", getSeason()) + .append("year", getYear()) + .toString(); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtQingjia.java b/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtQingjia.java new file mode 100644 index 0000000..3ce7a1b --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtQingjia.java @@ -0,0 +1,97 @@ +package com.ktg.mes.md.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ktg.common.annotation.Excel; +import com.ktg.common.core.domain.BaseEntity; + +/** + * 请假对象 ht_qingjia + * + * @author yinjinlu + * @date 2025-02-20 + */ +public class HtQingjia extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** id */ + private Integer id; + + /** 类型 */ + @Excel(name = "类型") + private String leixing; + + /** 开始时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date kaishi; + + /** 结束时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date jieshu; + + /** 原因 */ + @Excel(name = "原因") + private String yuanyin; + + public void setId(Integer id) + { + this.id = id; + } + + public Integer getId() + { + return id; + } + public void setLeixing(String leixing) + { + this.leixing = leixing; + } + + public String getLeixing() + { + return leixing; + } + public void setKaishi(Date kaishi) + { + this.kaishi = kaishi; + } + + public Date getKaishi() + { + return kaishi; + } + public void setJieshu(Date jieshu) + { + this.jieshu = jieshu; + } + + public Date getJieshu() + { + return jieshu; + } + public void setYuanyin(String yuanyin) + { + this.yuanyin = yuanyin; + } + + public String getYuanyin() + { + return yuanyin; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("leixing", getLeixing()) + .append("kaishi", getKaishi()) + .append("jieshu", getJieshu()) + .append("yuanyin", getYuanyin()) + .toString(); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtWeipan.java b/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtWeipan.java new file mode 100644 index 0000000..ba56daf --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtWeipan.java @@ -0,0 +1,96 @@ +package com.ktg.mes.md.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ktg.common.annotation.Excel; +import com.ktg.common.core.domain.BaseEntity; + +/** + * 微盘管理对象 ht_weipan + * + * @author yinjinlu + * @date 2025-02-20 + */ +public class HtWeipan extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private Long id; + + /** 上传人 */ + @Excel(name = "上传人") + private String shangchuanren; + + /** 时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date shijian; + + /** 类型 */ + @Excel(name = "类型") + private String leixing; + + /** 文件 */ + @Excel(name = "文件") + private String wenjian; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setShangchuanren(String shangchuanren) + { + this.shangchuanren = shangchuanren; + } + + public String getShangchuanren() + { + return shangchuanren; + } + public void setShijian(Date shijian) + { + this.shijian = shijian; + } + + public Date getShijian() + { + return shijian; + } + public void setLeixing(String leixing) + { + this.leixing = leixing; + } + + public String getLeixing() + { + return leixing; + } + public void setWenjian(String wenjian) + { + this.wenjian = wenjian; + } + + public String getWenjian() + { + return wenjian; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("shangchuanren", getShangchuanren()) + .append("shijian", getShijian()) + .append("leixing", getLeixing()) + .append("wenjian", getWenjian()) + .toString(); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtZhiliangfenxi.java b/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtZhiliangfenxi.java new file mode 100644 index 0000000..4899e2d --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/domain/HtZhiliangfenxi.java @@ -0,0 +1,334 @@ +package com.ktg.mes.md.domain; + +import java.math.BigDecimal; +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ktg.common.annotation.Excel; +import com.ktg.common.core.domain.BaseEntity; + +/** + * 数据统计与分析对象 ht_zhiliangfenxi + * + * @author yinjinlu + * @date 2025-02-21 + */ +public class HtZhiliangfenxi extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private Integer id; + + /** 统计日期(通常是每天或每月第一天) */ + @Excel(name = "统计日期", readConverterExp = "通=常是每天或每月第一天") + private Date statisticDate; + + /** 总检测样本数 */ + @Excel(name = "总检测样本数") + private Integer totalSamples; + + /** 合格样本数 */ + @Excel(name = "合格样本数") + private Integer passedSamples; + + /** 不合格样本数 */ + @Excel(name = "不合格样本数") + private Integer failedSamples; + + /** 合格率 */ + @Excel(name = "合格率") + private BigDecimal passRate; + + /** 杂质超标不合格数 */ + @Excel(name = "杂质超标不合格数") + private Integer impurityFailures; + + /** 压力不合格数 */ + @Excel(name = "压力不合格数") + private Integer pressureFailures; + + /** 泄漏不合格数 */ + @Excel(name = "泄漏不合格数") + private Integer leakageFailures; + + /** 标签错误不合格数 */ + @Excel(name = "标签错误不合格数") + private Integer labelingFailures; + + /** 其他原因不合格数 */ + @Excel(name = "其他原因不合格数") + private Integer otherFailures; + + /** 氧气产品合格率 */ + @Excel(name = "氧气产品合格率") + private BigDecimal oxygenPassRate; + + /** 氮气产品合格率 */ + @Excel(name = "氮气产品合格率") + private BigDecimal nitrogenPassRate; + + /** 氩气产品合格率 */ + @Excel(name = "氩气产品合格率") + private BigDecimal argonPassRate; + + /** 其他气体产品合格率 */ + @Excel(name = "其他气体产品合格率") + private BigDecimal otherGasesPassRate; + + /** 检测设备名称 */ + @Excel(name = "检测设备名称") + private String testingEquipment; + + /** 检测人员姓名 */ + @Excel(name = "检测人员姓名") + private String testingPersonnel; + + /** 地区 */ + @Excel(name = "地区") + private String region; + + /** 生产线名称 */ + @Excel(name = "生产线名称") + private String productionLine; + + /** 年份 */ + @Excel(name = "年份") + private Integer year; + + /** 纠正措施 */ + @Excel(name = "纠正措施") + private String correctiveActions; + + /** 预防措施 */ + @Excel(name = "预防措施") + private String preventiveActions; + + public void setId(Integer id) + { + this.id = id; + } + + public Integer getId() + { + return id; + } + public void setStatisticDate(Date statisticDate) + { + this.statisticDate = statisticDate; + } + + public Date getStatisticDate() + { + return statisticDate; + } + public void setTotalSamples(Integer totalSamples) + { + this.totalSamples = totalSamples; + } + + public Integer getTotalSamples() + { + return totalSamples; + } + public void setPassedSamples(Integer passedSamples) + { + this.passedSamples = passedSamples; + } + + public Integer getPassedSamples() + { + return passedSamples; + } + public void setFailedSamples(Integer failedSamples) + { + this.failedSamples = failedSamples; + } + + public Integer getFailedSamples() + { + return failedSamples; + } + public void setPassRate(BigDecimal passRate) + { + this.passRate = passRate; + } + + public BigDecimal getPassRate() + { + return passRate; + } + public void setImpurityFailures(Integer impurityFailures) + { + this.impurityFailures = impurityFailures; + } + + public Integer getImpurityFailures() + { + return impurityFailures; + } + public void setPressureFailures(Integer pressureFailures) + { + this.pressureFailures = pressureFailures; + } + + public Integer getPressureFailures() + { + return pressureFailures; + } + public void setLeakageFailures(Integer leakageFailures) + { + this.leakageFailures = leakageFailures; + } + + public Integer getLeakageFailures() + { + return leakageFailures; + } + public void setLabelingFailures(Integer labelingFailures) + { + this.labelingFailures = labelingFailures; + } + + public Integer getLabelingFailures() + { + return labelingFailures; + } + public void setOtherFailures(Integer otherFailures) + { + this.otherFailures = otherFailures; + } + + public Integer getOtherFailures() + { + return otherFailures; + } + public void setOxygenPassRate(BigDecimal oxygenPassRate) + { + this.oxygenPassRate = oxygenPassRate; + } + + public BigDecimal getOxygenPassRate() + { + return oxygenPassRate; + } + public void setNitrogenPassRate(BigDecimal nitrogenPassRate) + { + this.nitrogenPassRate = nitrogenPassRate; + } + + public BigDecimal getNitrogenPassRate() + { + return nitrogenPassRate; + } + public void setArgonPassRate(BigDecimal argonPassRate) + { + this.argonPassRate = argonPassRate; + } + + public BigDecimal getArgonPassRate() + { + return argonPassRate; + } + public void setOtherGasesPassRate(BigDecimal otherGasesPassRate) + { + this.otherGasesPassRate = otherGasesPassRate; + } + + public BigDecimal getOtherGasesPassRate() + { + return otherGasesPassRate; + } + public void setTestingEquipment(String testingEquipment) + { + this.testingEquipment = testingEquipment; + } + + public String getTestingEquipment() + { + return testingEquipment; + } + public void setTestingPersonnel(String testingPersonnel) + { + this.testingPersonnel = testingPersonnel; + } + + public String getTestingPersonnel() + { + return testingPersonnel; + } + public void setRegion(String region) + { + this.region = region; + } + + public String getRegion() + { + return region; + } + public void setProductionLine(String productionLine) + { + this.productionLine = productionLine; + } + + public String getProductionLine() + { + return productionLine; + } + public void setYear(Integer year) + { + this.year = year; + } + + public Integer getYear() + { + return year; + } + public void setCorrectiveActions(String correctiveActions) + { + this.correctiveActions = correctiveActions; + } + + public String getCorrectiveActions() + { + return correctiveActions; + } + public void setPreventiveActions(String preventiveActions) + { + this.preventiveActions = preventiveActions; + } + + public String getPreventiveActions() + { + return preventiveActions; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("statisticDate", getStatisticDate()) + .append("totalSamples", getTotalSamples()) + .append("passedSamples", getPassedSamples()) + .append("failedSamples", getFailedSamples()) + .append("passRate", getPassRate()) + .append("impurityFailures", getImpurityFailures()) + .append("pressureFailures", getPressureFailures()) + .append("leakageFailures", getLeakageFailures()) + .append("labelingFailures", getLabelingFailures()) + .append("otherFailures", getOtherFailures()) + .append("oxygenPassRate", getOxygenPassRate()) + .append("nitrogenPassRate", getNitrogenPassRate()) + .append("argonPassRate", getArgonPassRate()) + .append("otherGasesPassRate", getOtherGasesPassRate()) + .append("testingEquipment", getTestingEquipment()) + .append("testingPersonnel", getTestingPersonnel()) + .append("region", getRegion()) + .append("productionLine", getProductionLine()) + .append("year", getYear()) + .append("correctiveActions", getCorrectiveActions()) + .append("preventiveActions", getPreventiveActions()) + .toString(); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtBaoxiaoMapper.java b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtBaoxiaoMapper.java new file mode 100644 index 0000000..ddd8ec8 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtBaoxiaoMapper.java @@ -0,0 +1,61 @@ +package com.ktg.mes.md.mapper; + +import java.util.List; +import com.ktg.mes.md.domain.HtBaoxiao; + +/** + * 报销Mapper接口 + * + * @author yinjinlu + * @date 2025-02-20 + */ +public interface HtBaoxiaoMapper +{ + /** + * 查询报销 + * + * @param id 报销主键 + * @return 报销 + */ + public HtBaoxiao selectHtBaoxiaoById(Integer id); + + /** + * 查询报销列表 + * + * @param htBaoxiao 报销 + * @return 报销集合 + */ + public List selectHtBaoxiaoList(HtBaoxiao htBaoxiao); + + /** + * 新增报销 + * + * @param htBaoxiao 报销 + * @return 结果 + */ + public int insertHtBaoxiao(HtBaoxiao htBaoxiao); + + /** + * 修改报销 + * + * @param htBaoxiao 报销 + * @return 结果 + */ + public int updateHtBaoxiao(HtBaoxiao htBaoxiao); + + /** + * 删除报销 + * + * @param id 报销主键 + * @return 结果 + */ + public int deleteHtBaoxiaoById(Integer id); + + /** + * 批量删除报销 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHtBaoxiaoByIds(Integer[] ids); +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtGglMapper.java b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtGglMapper.java new file mode 100644 index 0000000..a73a544 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtGglMapper.java @@ -0,0 +1,61 @@ +package com.ktg.mes.md.mapper; + +import java.util.List; +import com.ktg.mes.md.domain.HtGgl; + +/** + * 公告栏Mapper接口 + * + * @author yinjinlu + * @date 2025-02-20 + */ +public interface HtGglMapper +{ + /** + * 查询公告栏 + * + * @param id 公告栏主键 + * @return 公告栏 + */ + public HtGgl selectHtGglById(Integer id); + + /** + * 查询公告栏列表 + * + * @param htGgl 公告栏 + * @return 公告栏集合 + */ + public List selectHtGglList(HtGgl htGgl); + + /** + * 新增公告栏 + * + * @param htGgl 公告栏 + * @return 结果 + */ + public int insertHtGgl(HtGgl htGgl); + + /** + * 修改公告栏 + * + * @param htGgl 公告栏 + * @return 结果 + */ + public int updateHtGgl(HtGgl htGgl); + + /** + * 删除公告栏 + * + * @param id 公告栏主键 + * @return 结果 + */ + public int deleteHtGglById(Integer id); + + /** + * 批量删除公告栏 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHtGglByIds(Integer[] ids); +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtHetongMapper.java b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtHetongMapper.java new file mode 100644 index 0000000..62372f6 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtHetongMapper.java @@ -0,0 +1,61 @@ +package com.ktg.mes.md.mapper; + +import java.util.List; +import com.ktg.mes.md.domain.HtHetong; + +/** + * 合同管理Mapper接口 + * + * @author yinjinlu + * @date 2025-02-20 + */ +public interface HtHetongMapper +{ + /** + * 查询合同管理 + * + * @param id 合同管理主键 + * @return 合同管理 + */ + public HtHetong selectHtHetongById(Integer id); + + /** + * 查询合同管理列表 + * + * @param htHetong 合同管理 + * @return 合同管理集合 + */ + public List selectHtHetongList(HtHetong htHetong); + + /** + * 新增合同管理 + * + * @param htHetong 合同管理 + * @return 结果 + */ + public int insertHtHetong(HtHetong htHetong); + + /** + * 修改合同管理 + * + * @param htHetong 合同管理 + * @return 结果 + */ + public int updateHtHetong(HtHetong htHetong); + + /** + * 删除合同管理 + * + * @param id 合同管理主键 + * @return 结果 + */ + public int deleteHtHetongById(Integer id); + + /** + * 批量删除合同管理 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHtHetongByIds(Integer[] ids); +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtJczcKehutongjiMapper.java b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtJczcKehutongjiMapper.java new file mode 100644 index 0000000..9d19724 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtJczcKehutongjiMapper.java @@ -0,0 +1,61 @@ +package com.ktg.mes.md.mapper; + +import java.util.List; +import com.ktg.mes.md.domain.HtJczcKehutongji; + +/** + * 客户统计报Mapper接口 + * + * @author yinjinlu + * @date 2025-02-21 + */ +public interface HtJczcKehutongjiMapper +{ + /** + * 查询客户统计报 + * + * @param id 客户统计报主键 + * @return 客户统计报 + */ + public HtJczcKehutongji selectHtJczcKehutongjiById(Integer id); + + /** + * 查询客户统计报列表 + * + * @param htJczcKehutongji 客户统计报 + * @return 客户统计报集合 + */ + public List selectHtJczcKehutongjiList(HtJczcKehutongji htJczcKehutongji); + + /** + * 新增客户统计报 + * + * @param htJczcKehutongji 客户统计报 + * @return 结果 + */ + public int insertHtJczcKehutongji(HtJczcKehutongji htJczcKehutongji); + + /** + * 修改客户统计报 + * + * @param htJczcKehutongji 客户统计报 + * @return 结果 + */ + public int updateHtJczcKehutongji(HtJczcKehutongji htJczcKehutongji); + + /** + * 删除客户统计报 + * + * @param id 客户统计报主键 + * @return 结果 + */ + public int deleteHtJczcKehutongjiById(Integer id); + + /** + * 批量删除客户统计报 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHtJczcKehutongjiByIds(Integer[] ids); +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtJczcKucuntongjiMapper.java b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtJczcKucuntongjiMapper.java new file mode 100644 index 0000000..d294a32 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtJczcKucuntongjiMapper.java @@ -0,0 +1,61 @@ +package com.ktg.mes.md.mapper; + +import java.util.List; +import com.ktg.mes.md.domain.HtJczcKucuntongji; + +/** + * 库存统计报Mapper接口 + * + * @author yinjinlu + * @date 2025-02-21 + */ +public interface HtJczcKucuntongjiMapper +{ + /** + * 查询库存统计报 + * + * @param id 库存统计报主键 + * @return 库存统计报 + */ + public HtJczcKucuntongji selectHtJczcKucuntongjiById(Integer id); + + /** + * 查询库存统计报列表 + * + * @param htJczcKucuntongji 库存统计报 + * @return 库存统计报集合 + */ + public List selectHtJczcKucuntongjiList(HtJczcKucuntongji htJczcKucuntongji); + + /** + * 新增库存统计报 + * + * @param htJczcKucuntongji 库存统计报 + * @return 结果 + */ + public int insertHtJczcKucuntongji(HtJczcKucuntongji htJczcKucuntongji); + + /** + * 修改库存统计报 + * + * @param htJczcKucuntongji 库存统计报 + * @return 结果 + */ + public int updateHtJczcKucuntongji(HtJczcKucuntongji htJczcKucuntongji); + + /** + * 删除库存统计报 + * + * @param id 库存统计报主键 + * @return 结果 + */ + public int deleteHtJczcKucuntongjiById(Integer id); + + /** + * 批量删除库存统计报 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHtJczcKucuntongjiByIds(Integer[] ids); +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtJczcQipingtongjiMapper.java b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtJczcQipingtongjiMapper.java new file mode 100644 index 0000000..93edaed --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtJczcQipingtongjiMapper.java @@ -0,0 +1,61 @@ +package com.ktg.mes.md.mapper; + +import java.util.List; +import com.ktg.mes.md.domain.HtJczcQipingtongji; + +/** + * 气瓶统计报Mapper接口 + * + * @author yinjinlu + * @date 2025-02-21 + */ +public interface HtJczcQipingtongjiMapper +{ + /** + * 查询气瓶统计报 + * + * @param id 气瓶统计报主键 + * @return 气瓶统计报 + */ + public HtJczcQipingtongji selectHtJczcQipingtongjiById(Integer id); + + /** + * 查询气瓶统计报列表 + * + * @param htJczcQipingtongji 气瓶统计报 + * @return 气瓶统计报集合 + */ + public List selectHtJczcQipingtongjiList(HtJczcQipingtongji htJczcQipingtongji); + + /** + * 新增气瓶统计报 + * + * @param htJczcQipingtongji 气瓶统计报 + * @return 结果 + */ + public int insertHtJczcQipingtongji(HtJczcQipingtongji htJczcQipingtongji); + + /** + * 修改气瓶统计报 + * + * @param htJczcQipingtongji 气瓶统计报 + * @return 结果 + */ + public int updateHtJczcQipingtongji(HtJczcQipingtongji htJczcQipingtongji); + + /** + * 删除气瓶统计报 + * + * @param id 气瓶统计报主键 + * @return 结果 + */ + public int deleteHtJczcQipingtongjiById(Integer id); + + /** + * 批量删除气瓶统计报 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHtJczcQipingtongjiByIds(Integer[] ids); +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtJczcXiaoshoutongjiMapper.java b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtJczcXiaoshoutongjiMapper.java new file mode 100644 index 0000000..9db9dbd --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtJczcXiaoshoutongjiMapper.java @@ -0,0 +1,61 @@ +package com.ktg.mes.md.mapper; + +import java.util.List; +import com.ktg.mes.md.domain.HtJczcXiaoshoutongji; + +/** + * 销售统计报Mapper接口 + * + * @author yinjinlu + * @date 2025-02-21 + */ +public interface HtJczcXiaoshoutongjiMapper +{ + /** + * 查询销售统计报 + * + * @param id 销售统计报主键 + * @return 销售统计报 + */ + public HtJczcXiaoshoutongji selectHtJczcXiaoshoutongjiById(Integer id); + + /** + * 查询销售统计报列表 + * + * @param htJczcXiaoshoutongji 销售统计报 + * @return 销售统计报集合 + */ + public List selectHtJczcXiaoshoutongjiList(HtJczcXiaoshoutongji htJczcXiaoshoutongji); + + /** + * 新增销售统计报 + * + * @param htJczcXiaoshoutongji 销售统计报 + * @return 结果 + */ + public int insertHtJczcXiaoshoutongji(HtJczcXiaoshoutongji htJczcXiaoshoutongji); + + /** + * 修改销售统计报 + * + * @param htJczcXiaoshoutongji 销售统计报 + * @return 结果 + */ + public int updateHtJczcXiaoshoutongji(HtJczcXiaoshoutongji htJczcXiaoshoutongji); + + /** + * 删除销售统计报 + * + * @param id 销售统计报主键 + * @return 结果 + */ + public int deleteHtJczcXiaoshoutongjiById(Integer id); + + /** + * 批量删除销售统计报 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHtJczcXiaoshoutongjiByIds(Integer[] ids); +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtQingjiaMapper.java b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtQingjiaMapper.java new file mode 100644 index 0000000..e4c6e06 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtQingjiaMapper.java @@ -0,0 +1,61 @@ +package com.ktg.mes.md.mapper; + +import java.util.List; +import com.ktg.mes.md.domain.HtQingjia; + +/** + * 请假Mapper接口 + * + * @author yinjinlu + * @date 2025-02-20 + */ +public interface HtQingjiaMapper +{ + /** + * 查询请假 + * + * @param id 请假主键 + * @return 请假 + */ + public HtQingjia selectHtQingjiaById(Integer id); + + /** + * 查询请假列表 + * + * @param htQingjia 请假 + * @return 请假集合 + */ + public List selectHtQingjiaList(HtQingjia htQingjia); + + /** + * 新增请假 + * + * @param htQingjia 请假 + * @return 结果 + */ + public int insertHtQingjia(HtQingjia htQingjia); + + /** + * 修改请假 + * + * @param htQingjia 请假 + * @return 结果 + */ + public int updateHtQingjia(HtQingjia htQingjia); + + /** + * 删除请假 + * + * @param id 请假主键 + * @return 结果 + */ + public int deleteHtQingjiaById(Integer id); + + /** + * 批量删除请假 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHtQingjiaByIds(Integer[] ids); +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtWeipanMapper.java b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtWeipanMapper.java new file mode 100644 index 0000000..0a5239d --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtWeipanMapper.java @@ -0,0 +1,61 @@ +package com.ktg.mes.md.mapper; + +import java.util.List; +import com.ktg.mes.md.domain.HtWeipan; + +/** + * 微盘管理Mapper接口 + * + * @author yinjinlu + * @date 2025-02-20 + */ +public interface HtWeipanMapper +{ + /** + * 查询微盘管理 + * + * @param id 微盘管理主键 + * @return 微盘管理 + */ + public HtWeipan selectHtWeipanById(Long id); + + /** + * 查询微盘管理列表 + * + * @param htWeipan 微盘管理 + * @return 微盘管理集合 + */ + public List selectHtWeipanList(HtWeipan htWeipan); + + /** + * 新增微盘管理 + * + * @param htWeipan 微盘管理 + * @return 结果 + */ + public int insertHtWeipan(HtWeipan htWeipan); + + /** + * 修改微盘管理 + * + * @param htWeipan 微盘管理 + * @return 结果 + */ + public int updateHtWeipan(HtWeipan htWeipan); + + /** + * 删除微盘管理 + * + * @param id 微盘管理主键 + * @return 结果 + */ + public int deleteHtWeipanById(Long id); + + /** + * 批量删除微盘管理 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHtWeipanByIds(Long[] ids); +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtZhiliangfenxiMapper.java b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtZhiliangfenxiMapper.java new file mode 100644 index 0000000..ec5855c --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/mapper/HtZhiliangfenxiMapper.java @@ -0,0 +1,61 @@ +package com.ktg.mes.md.mapper; + +import java.util.List; +import com.ktg.mes.md.domain.HtZhiliangfenxi; + +/** + * 数据统计与分析Mapper接口 + * + * @author yinjinlu + * @date 2025-02-21 + */ +public interface HtZhiliangfenxiMapper +{ + /** + * 查询数据统计与分析 + * + * @param id 数据统计与分析主键 + * @return 数据统计与分析 + */ + public HtZhiliangfenxi selectHtZhiliangfenxiById(Integer id); + + /** + * 查询数据统计与分析列表 + * + * @param htZhiliangfenxi 数据统计与分析 + * @return 数据统计与分析集合 + */ + public List selectHtZhiliangfenxiList(HtZhiliangfenxi htZhiliangfenxi); + + /** + * 新增数据统计与分析 + * + * @param htZhiliangfenxi 数据统计与分析 + * @return 结果 + */ + public int insertHtZhiliangfenxi(HtZhiliangfenxi htZhiliangfenxi); + + /** + * 修改数据统计与分析 + * + * @param htZhiliangfenxi 数据统计与分析 + * @return 结果 + */ + public int updateHtZhiliangfenxi(HtZhiliangfenxi htZhiliangfenxi); + + /** + * 删除数据统计与分析 + * + * @param id 数据统计与分析主键 + * @return 结果 + */ + public int deleteHtZhiliangfenxiById(Integer id); + + /** + * 批量删除数据统计与分析 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteHtZhiliangfenxiByIds(Integer[] ids); +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtBaoxiaoService.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtBaoxiaoService.java new file mode 100644 index 0000000..d45c22d --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtBaoxiaoService.java @@ -0,0 +1,61 @@ +package com.ktg.mes.md.service; + +import java.util.List; +import com.ktg.mes.md.domain.HtBaoxiao; + +/** + * 报销Service接口 + * + * @author yinjinlu + * @date 2025-02-20 + */ +public interface IHtBaoxiaoService +{ + /** + * 查询报销 + * + * @param id 报销主键 + * @return 报销 + */ + public HtBaoxiao selectHtBaoxiaoById(Integer id); + + /** + * 查询报销列表 + * + * @param htBaoxiao 报销 + * @return 报销集合 + */ + public List selectHtBaoxiaoList(HtBaoxiao htBaoxiao); + + /** + * 新增报销 + * + * @param htBaoxiao 报销 + * @return 结果 + */ + public int insertHtBaoxiao(HtBaoxiao htBaoxiao); + + /** + * 修改报销 + * + * @param htBaoxiao 报销 + * @return 结果 + */ + public int updateHtBaoxiao(HtBaoxiao htBaoxiao); + + /** + * 批量删除报销 + * + * @param ids 需要删除的报销主键集合 + * @return 结果 + */ + public int deleteHtBaoxiaoByIds(Integer[] ids); + + /** + * 删除报销信息 + * + * @param id 报销主键 + * @return 结果 + */ + public int deleteHtBaoxiaoById(Integer id); +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtGglService.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtGglService.java new file mode 100644 index 0000000..797855d --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtGglService.java @@ -0,0 +1,61 @@ +package com.ktg.mes.md.service; + +import java.util.List; +import com.ktg.mes.md.domain.HtGgl; + +/** + * 公告栏Service接口 + * + * @author yinjinlu + * @date 2025-02-20 + */ +public interface IHtGglService +{ + /** + * 查询公告栏 + * + * @param id 公告栏主键 + * @return 公告栏 + */ + public HtGgl selectHtGglById(Integer id); + + /** + * 查询公告栏列表 + * + * @param htGgl 公告栏 + * @return 公告栏集合 + */ + public List selectHtGglList(HtGgl htGgl); + + /** + * 新增公告栏 + * + * @param htGgl 公告栏 + * @return 结果 + */ + public int insertHtGgl(HtGgl htGgl); + + /** + * 修改公告栏 + * + * @param htGgl 公告栏 + * @return 结果 + */ + public int updateHtGgl(HtGgl htGgl); + + /** + * 批量删除公告栏 + * + * @param ids 需要删除的公告栏主键集合 + * @return 结果 + */ + public int deleteHtGglByIds(Integer[] ids); + + /** + * 删除公告栏信息 + * + * @param id 公告栏主键 + * @return 结果 + */ + public int deleteHtGglById(Integer id); +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtHetongService.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtHetongService.java new file mode 100644 index 0000000..acac1ef --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtHetongService.java @@ -0,0 +1,61 @@ +package com.ktg.mes.md.service; + +import java.util.List; +import com.ktg.mes.md.domain.HtHetong; + +/** + * 合同管理Service接口 + * + * @author yinjinlu + * @date 2025-02-20 + */ +public interface IHtHetongService +{ + /** + * 查询合同管理 + * + * @param id 合同管理主键 + * @return 合同管理 + */ + public HtHetong selectHtHetongById(Integer id); + + /** + * 查询合同管理列表 + * + * @param htHetong 合同管理 + * @return 合同管理集合 + */ + public List selectHtHetongList(HtHetong htHetong); + + /** + * 新增合同管理 + * + * @param htHetong 合同管理 + * @return 结果 + */ + public int insertHtHetong(HtHetong htHetong); + + /** + * 修改合同管理 + * + * @param htHetong 合同管理 + * @return 结果 + */ + public int updateHtHetong(HtHetong htHetong); + + /** + * 批量删除合同管理 + * + * @param ids 需要删除的合同管理主键集合 + * @return 结果 + */ + public int deleteHtHetongByIds(Integer[] ids); + + /** + * 删除合同管理信息 + * + * @param id 合同管理主键 + * @return 结果 + */ + public int deleteHtHetongById(Integer id); +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtJczcKehutongjiService.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtJczcKehutongjiService.java new file mode 100644 index 0000000..235995e --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtJczcKehutongjiService.java @@ -0,0 +1,61 @@ +package com.ktg.mes.md.service; + +import java.util.List; +import com.ktg.mes.md.domain.HtJczcKehutongji; + +/** + * 客户统计报Service接口 + * + * @author yinjinlu + * @date 2025-02-21 + */ +public interface IHtJczcKehutongjiService +{ + /** + * 查询客户统计报 + * + * @param id 客户统计报主键 + * @return 客户统计报 + */ + public HtJczcKehutongji selectHtJczcKehutongjiById(Integer id); + + /** + * 查询客户统计报列表 + * + * @param htJczcKehutongji 客户统计报 + * @return 客户统计报集合 + */ + public List selectHtJczcKehutongjiList(HtJczcKehutongji htJczcKehutongji); + + /** + * 新增客户统计报 + * + * @param htJczcKehutongji 客户统计报 + * @return 结果 + */ + public int insertHtJczcKehutongji(HtJczcKehutongji htJczcKehutongji); + + /** + * 修改客户统计报 + * + * @param htJczcKehutongji 客户统计报 + * @return 结果 + */ + public int updateHtJczcKehutongji(HtJczcKehutongji htJczcKehutongji); + + /** + * 批量删除客户统计报 + * + * @param ids 需要删除的客户统计报主键集合 + * @return 结果 + */ + public int deleteHtJczcKehutongjiByIds(Integer[] ids); + + /** + * 删除客户统计报信息 + * + * @param id 客户统计报主键 + * @return 结果 + */ + public int deleteHtJczcKehutongjiById(Integer id); +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtJczcKucuntongjiService.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtJczcKucuntongjiService.java new file mode 100644 index 0000000..9d7d6f1 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtJczcKucuntongjiService.java @@ -0,0 +1,61 @@ +package com.ktg.mes.md.service; + +import java.util.List; +import com.ktg.mes.md.domain.HtJczcKucuntongji; + +/** + * 库存统计报Service接口 + * + * @author yinjinlu + * @date 2025-02-21 + */ +public interface IHtJczcKucuntongjiService +{ + /** + * 查询库存统计报 + * + * @param id 库存统计报主键 + * @return 库存统计报 + */ + public HtJczcKucuntongji selectHtJczcKucuntongjiById(Integer id); + + /** + * 查询库存统计报列表 + * + * @param htJczcKucuntongji 库存统计报 + * @return 库存统计报集合 + */ + public List selectHtJczcKucuntongjiList(HtJczcKucuntongji htJczcKucuntongji); + + /** + * 新增库存统计报 + * + * @param htJczcKucuntongji 库存统计报 + * @return 结果 + */ + public int insertHtJczcKucuntongji(HtJczcKucuntongji htJczcKucuntongji); + + /** + * 修改库存统计报 + * + * @param htJczcKucuntongji 库存统计报 + * @return 结果 + */ + public int updateHtJczcKucuntongji(HtJczcKucuntongji htJczcKucuntongji); + + /** + * 批量删除库存统计报 + * + * @param ids 需要删除的库存统计报主键集合 + * @return 结果 + */ + public int deleteHtJczcKucuntongjiByIds(Integer[] ids); + + /** + * 删除库存统计报信息 + * + * @param id 库存统计报主键 + * @return 结果 + */ + public int deleteHtJczcKucuntongjiById(Integer id); +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtJczcQipingtongjiService.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtJczcQipingtongjiService.java new file mode 100644 index 0000000..46d6bfe --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtJczcQipingtongjiService.java @@ -0,0 +1,61 @@ +package com.ktg.mes.md.service; + +import java.util.List; +import com.ktg.mes.md.domain.HtJczcQipingtongji; + +/** + * 气瓶统计报Service接口 + * + * @author yinjinlu + * @date 2025-02-21 + */ +public interface IHtJczcQipingtongjiService +{ + /** + * 查询气瓶统计报 + * + * @param id 气瓶统计报主键 + * @return 气瓶统计报 + */ + public HtJczcQipingtongji selectHtJczcQipingtongjiById(Integer id); + + /** + * 查询气瓶统计报列表 + * + * @param htJczcQipingtongji 气瓶统计报 + * @return 气瓶统计报集合 + */ + public List selectHtJczcQipingtongjiList(HtJczcQipingtongji htJczcQipingtongji); + + /** + * 新增气瓶统计报 + * + * @param htJczcQipingtongji 气瓶统计报 + * @return 结果 + */ + public int insertHtJczcQipingtongji(HtJczcQipingtongji htJczcQipingtongji); + + /** + * 修改气瓶统计报 + * + * @param htJczcQipingtongji 气瓶统计报 + * @return 结果 + */ + public int updateHtJczcQipingtongji(HtJczcQipingtongji htJczcQipingtongji); + + /** + * 批量删除气瓶统计报 + * + * @param ids 需要删除的气瓶统计报主键集合 + * @return 结果 + */ + public int deleteHtJczcQipingtongjiByIds(Integer[] ids); + + /** + * 删除气瓶统计报信息 + * + * @param id 气瓶统计报主键 + * @return 结果 + */ + public int deleteHtJczcQipingtongjiById(Integer id); +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtJczcXiaoshoutongjiService.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtJczcXiaoshoutongjiService.java new file mode 100644 index 0000000..4b87383 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtJczcXiaoshoutongjiService.java @@ -0,0 +1,61 @@ +package com.ktg.mes.md.service; + +import java.util.List; +import com.ktg.mes.md.domain.HtJczcXiaoshoutongji; + +/** + * 销售统计报Service接口 + * + * @author yinjinlu + * @date 2025-02-21 + */ +public interface IHtJczcXiaoshoutongjiService +{ + /** + * 查询销售统计报 + * + * @param id 销售统计报主键 + * @return 销售统计报 + */ + public HtJczcXiaoshoutongji selectHtJczcXiaoshoutongjiById(Integer id); + + /** + * 查询销售统计报列表 + * + * @param htJczcXiaoshoutongji 销售统计报 + * @return 销售统计报集合 + */ + public List selectHtJczcXiaoshoutongjiList(HtJczcXiaoshoutongji htJczcXiaoshoutongji); + + /** + * 新增销售统计报 + * + * @param htJczcXiaoshoutongji 销售统计报 + * @return 结果 + */ + public int insertHtJczcXiaoshoutongji(HtJczcXiaoshoutongji htJczcXiaoshoutongji); + + /** + * 修改销售统计报 + * + * @param htJczcXiaoshoutongji 销售统计报 + * @return 结果 + */ + public int updateHtJczcXiaoshoutongji(HtJczcXiaoshoutongji htJczcXiaoshoutongji); + + /** + * 批量删除销售统计报 + * + * @param ids 需要删除的销售统计报主键集合 + * @return 结果 + */ + public int deleteHtJczcXiaoshoutongjiByIds(Integer[] ids); + + /** + * 删除销售统计报信息 + * + * @param id 销售统计报主键 + * @return 结果 + */ + public int deleteHtJczcXiaoshoutongjiById(Integer id); +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtQingjiaService.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtQingjiaService.java new file mode 100644 index 0000000..3a349eb --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtQingjiaService.java @@ -0,0 +1,61 @@ +package com.ktg.mes.md.service; + +import java.util.List; +import com.ktg.mes.md.domain.HtQingjia; + +/** + * 请假Service接口 + * + * @author yinjinlu + * @date 2025-02-20 + */ +public interface IHtQingjiaService +{ + /** + * 查询请假 + * + * @param id 请假主键 + * @return 请假 + */ + public HtQingjia selectHtQingjiaById(Integer id); + + /** + * 查询请假列表 + * + * @param htQingjia 请假 + * @return 请假集合 + */ + public List selectHtQingjiaList(HtQingjia htQingjia); + + /** + * 新增请假 + * + * @param htQingjia 请假 + * @return 结果 + */ + public int insertHtQingjia(HtQingjia htQingjia); + + /** + * 修改请假 + * + * @param htQingjia 请假 + * @return 结果 + */ + public int updateHtQingjia(HtQingjia htQingjia); + + /** + * 批量删除请假 + * + * @param ids 需要删除的请假主键集合 + * @return 结果 + */ + public int deleteHtQingjiaByIds(Integer[] ids); + + /** + * 删除请假信息 + * + * @param id 请假主键 + * @return 结果 + */ + public int deleteHtQingjiaById(Integer id); +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtWeipanService.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtWeipanService.java new file mode 100644 index 0000000..ba4e3ef --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtWeipanService.java @@ -0,0 +1,61 @@ +package com.ktg.mes.md.service; + +import java.util.List; +import com.ktg.mes.md.domain.HtWeipan; + +/** + * 微盘管理Service接口 + * + * @author yinjinlu + * @date 2025-02-20 + */ +public interface IHtWeipanService +{ + /** + * 查询微盘管理 + * + * @param id 微盘管理主键 + * @return 微盘管理 + */ + public HtWeipan selectHtWeipanById(Long id); + + /** + * 查询微盘管理列表 + * + * @param htWeipan 微盘管理 + * @return 微盘管理集合 + */ + public List selectHtWeipanList(HtWeipan htWeipan); + + /** + * 新增微盘管理 + * + * @param htWeipan 微盘管理 + * @return 结果 + */ + public int insertHtWeipan(HtWeipan htWeipan); + + /** + * 修改微盘管理 + * + * @param htWeipan 微盘管理 + * @return 结果 + */ + public int updateHtWeipan(HtWeipan htWeipan); + + /** + * 批量删除微盘管理 + * + * @param ids 需要删除的微盘管理主键集合 + * @return 结果 + */ + public int deleteHtWeipanByIds(Long[] ids); + + /** + * 删除微盘管理信息 + * + * @param id 微盘管理主键 + * @return 结果 + */ + public int deleteHtWeipanById(Long id); +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtZhiliangfenxiService.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtZhiliangfenxiService.java new file mode 100644 index 0000000..2a0d700 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/IHtZhiliangfenxiService.java @@ -0,0 +1,61 @@ +package com.ktg.mes.md.service; + +import java.util.List; +import com.ktg.mes.md.domain.HtZhiliangfenxi; + +/** + * 数据统计与分析Service接口 + * + * @author yinjinlu + * @date 2025-02-21 + */ +public interface IHtZhiliangfenxiService +{ + /** + * 查询数据统计与分析 + * + * @param id 数据统计与分析主键 + * @return 数据统计与分析 + */ + public HtZhiliangfenxi selectHtZhiliangfenxiById(Integer id); + + /** + * 查询数据统计与分析列表 + * + * @param htZhiliangfenxi 数据统计与分析 + * @return 数据统计与分析集合 + */ + public List selectHtZhiliangfenxiList(HtZhiliangfenxi htZhiliangfenxi); + + /** + * 新增数据统计与分析 + * + * @param htZhiliangfenxi 数据统计与分析 + * @return 结果 + */ + public int insertHtZhiliangfenxi(HtZhiliangfenxi htZhiliangfenxi); + + /** + * 修改数据统计与分析 + * + * @param htZhiliangfenxi 数据统计与分析 + * @return 结果 + */ + public int updateHtZhiliangfenxi(HtZhiliangfenxi htZhiliangfenxi); + + /** + * 批量删除数据统计与分析 + * + * @param ids 需要删除的数据统计与分析主键集合 + * @return 结果 + */ + public int deleteHtZhiliangfenxiByIds(Integer[] ids); + + /** + * 删除数据统计与分析信息 + * + * @param id 数据统计与分析主键 + * @return 结果 + */ + public int deleteHtZhiliangfenxiById(Integer id); +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtBaoxiaoServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtBaoxiaoServiceImpl.java new file mode 100644 index 0000000..d8a0a85 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtBaoxiaoServiceImpl.java @@ -0,0 +1,93 @@ +package com.ktg.mes.md.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ktg.mes.md.mapper.HtBaoxiaoMapper; +import com.ktg.mes.md.domain.HtBaoxiao; +import com.ktg.mes.md.service.IHtBaoxiaoService; + +/** + * 报销Service业务层处理 + * + * @author yinjinlu + * @date 2025-02-20 + */ +@Service +public class HtBaoxiaoServiceImpl implements IHtBaoxiaoService +{ + @Autowired + private HtBaoxiaoMapper htBaoxiaoMapper; + + /** + * 查询报销 + * + * @param id 报销主键 + * @return 报销 + */ + @Override + public HtBaoxiao selectHtBaoxiaoById(Integer id) + { + return htBaoxiaoMapper.selectHtBaoxiaoById(id); + } + + /** + * 查询报销列表 + * + * @param htBaoxiao 报销 + * @return 报销 + */ + @Override + public List selectHtBaoxiaoList(HtBaoxiao htBaoxiao) + { + return htBaoxiaoMapper.selectHtBaoxiaoList(htBaoxiao); + } + + /** + * 新增报销 + * + * @param htBaoxiao 报销 + * @return 结果 + */ + @Override + public int insertHtBaoxiao(HtBaoxiao htBaoxiao) + { + return htBaoxiaoMapper.insertHtBaoxiao(htBaoxiao); + } + + /** + * 修改报销 + * + * @param htBaoxiao 报销 + * @return 结果 + */ + @Override + public int updateHtBaoxiao(HtBaoxiao htBaoxiao) + { + return htBaoxiaoMapper.updateHtBaoxiao(htBaoxiao); + } + + /** + * 批量删除报销 + * + * @param ids 需要删除的报销主键 + * @return 结果 + */ + @Override + public int deleteHtBaoxiaoByIds(Integer[] ids) + { + return htBaoxiaoMapper.deleteHtBaoxiaoByIds(ids); + } + + /** + * 删除报销信息 + * + * @param id 报销主键 + * @return 结果 + */ + @Override + public int deleteHtBaoxiaoById(Integer id) + { + return htBaoxiaoMapper.deleteHtBaoxiaoById(id); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtGglServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtGglServiceImpl.java new file mode 100644 index 0000000..5827048 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtGglServiceImpl.java @@ -0,0 +1,93 @@ +package com.ktg.mes.md.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ktg.mes.md.mapper.HtGglMapper; +import com.ktg.mes.md.domain.HtGgl; +import com.ktg.mes.md.service.IHtGglService; + +/** + * 公告栏Service业务层处理 + * + * @author yinjinlu + * @date 2025-02-20 + */ +@Service +public class HtGglServiceImpl implements IHtGglService +{ + @Autowired + private HtGglMapper htGglMapper; + + /** + * 查询公告栏 + * + * @param id 公告栏主键 + * @return 公告栏 + */ + @Override + public HtGgl selectHtGglById(Integer id) + { + return htGglMapper.selectHtGglById(id); + } + + /** + * 查询公告栏列表 + * + * @param htGgl 公告栏 + * @return 公告栏 + */ + @Override + public List selectHtGglList(HtGgl htGgl) + { + return htGglMapper.selectHtGglList(htGgl); + } + + /** + * 新增公告栏 + * + * @param htGgl 公告栏 + * @return 结果 + */ + @Override + public int insertHtGgl(HtGgl htGgl) + { + return htGglMapper.insertHtGgl(htGgl); + } + + /** + * 修改公告栏 + * + * @param htGgl 公告栏 + * @return 结果 + */ + @Override + public int updateHtGgl(HtGgl htGgl) + { + return htGglMapper.updateHtGgl(htGgl); + } + + /** + * 批量删除公告栏 + * + * @param ids 需要删除的公告栏主键 + * @return 结果 + */ + @Override + public int deleteHtGglByIds(Integer[] ids) + { + return htGglMapper.deleteHtGglByIds(ids); + } + + /** + * 删除公告栏信息 + * + * @param id 公告栏主键 + * @return 结果 + */ + @Override + public int deleteHtGglById(Integer id) + { + return htGglMapper.deleteHtGglById(id); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtHetongServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtHetongServiceImpl.java new file mode 100644 index 0000000..f0331ae --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtHetongServiceImpl.java @@ -0,0 +1,93 @@ +package com.ktg.mes.md.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ktg.mes.md.mapper.HtHetongMapper; +import com.ktg.mes.md.domain.HtHetong; +import com.ktg.mes.md.service.IHtHetongService; + +/** + * 合同管理Service业务层处理 + * + * @author yinjinlu + * @date 2025-02-20 + */ +@Service +public class HtHetongServiceImpl implements IHtHetongService +{ + @Autowired + private HtHetongMapper htHetongMapper; + + /** + * 查询合同管理 + * + * @param id 合同管理主键 + * @return 合同管理 + */ + @Override + public HtHetong selectHtHetongById(Integer id) + { + return htHetongMapper.selectHtHetongById(id); + } + + /** + * 查询合同管理列表 + * + * @param htHetong 合同管理 + * @return 合同管理 + */ + @Override + public List selectHtHetongList(HtHetong htHetong) + { + return htHetongMapper.selectHtHetongList(htHetong); + } + + /** + * 新增合同管理 + * + * @param htHetong 合同管理 + * @return 结果 + */ + @Override + public int insertHtHetong(HtHetong htHetong) + { + return htHetongMapper.insertHtHetong(htHetong); + } + + /** + * 修改合同管理 + * + * @param htHetong 合同管理 + * @return 结果 + */ + @Override + public int updateHtHetong(HtHetong htHetong) + { + return htHetongMapper.updateHtHetong(htHetong); + } + + /** + * 批量删除合同管理 + * + * @param ids 需要删除的合同管理主键 + * @return 结果 + */ + @Override + public int deleteHtHetongByIds(Integer[] ids) + { + return htHetongMapper.deleteHtHetongByIds(ids); + } + + /** + * 删除合同管理信息 + * + * @param id 合同管理主键 + * @return 结果 + */ + @Override + public int deleteHtHetongById(Integer id) + { + return htHetongMapper.deleteHtHetongById(id); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtJczcKehutongjiServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtJczcKehutongjiServiceImpl.java new file mode 100644 index 0000000..783eecc --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtJczcKehutongjiServiceImpl.java @@ -0,0 +1,93 @@ +package com.ktg.mes.md.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ktg.mes.md.mapper.HtJczcKehutongjiMapper; +import com.ktg.mes.md.domain.HtJczcKehutongji; +import com.ktg.mes.md.service.IHtJczcKehutongjiService; + +/** + * 客户统计报Service业务层处理 + * + * @author yinjinlu + * @date 2025-02-21 + */ +@Service +public class HtJczcKehutongjiServiceImpl implements IHtJczcKehutongjiService +{ + @Autowired + private HtJczcKehutongjiMapper htJczcKehutongjiMapper; + + /** + * 查询客户统计报 + * + * @param id 客户统计报主键 + * @return 客户统计报 + */ + @Override + public HtJczcKehutongji selectHtJczcKehutongjiById(Integer id) + { + return htJczcKehutongjiMapper.selectHtJczcKehutongjiById(id); + } + + /** + * 查询客户统计报列表 + * + * @param htJczcKehutongji 客户统计报 + * @return 客户统计报 + */ + @Override + public List selectHtJczcKehutongjiList(HtJczcKehutongji htJczcKehutongji) + { + return htJczcKehutongjiMapper.selectHtJczcKehutongjiList(htJczcKehutongji); + } + + /** + * 新增客户统计报 + * + * @param htJczcKehutongji 客户统计报 + * @return 结果 + */ + @Override + public int insertHtJczcKehutongji(HtJczcKehutongji htJczcKehutongji) + { + return htJczcKehutongjiMapper.insertHtJczcKehutongji(htJczcKehutongji); + } + + /** + * 修改客户统计报 + * + * @param htJczcKehutongji 客户统计报 + * @return 结果 + */ + @Override + public int updateHtJczcKehutongji(HtJczcKehutongji htJczcKehutongji) + { + return htJczcKehutongjiMapper.updateHtJczcKehutongji(htJczcKehutongji); + } + + /** + * 批量删除客户统计报 + * + * @param ids 需要删除的客户统计报主键 + * @return 结果 + */ + @Override + public int deleteHtJczcKehutongjiByIds(Integer[] ids) + { + return htJczcKehutongjiMapper.deleteHtJczcKehutongjiByIds(ids); + } + + /** + * 删除客户统计报信息 + * + * @param id 客户统计报主键 + * @return 结果 + */ + @Override + public int deleteHtJczcKehutongjiById(Integer id) + { + return htJczcKehutongjiMapper.deleteHtJczcKehutongjiById(id); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtJczcKucuntongjiServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtJczcKucuntongjiServiceImpl.java new file mode 100644 index 0000000..1681720 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtJczcKucuntongjiServiceImpl.java @@ -0,0 +1,93 @@ +package com.ktg.mes.md.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ktg.mes.md.mapper.HtJczcKucuntongjiMapper; +import com.ktg.mes.md.domain.HtJczcKucuntongji; +import com.ktg.mes.md.service.IHtJczcKucuntongjiService; + +/** + * 库存统计报Service业务层处理 + * + * @author yinjinlu + * @date 2025-02-21 + */ +@Service +public class HtJczcKucuntongjiServiceImpl implements IHtJczcKucuntongjiService +{ + @Autowired + private HtJczcKucuntongjiMapper htJczcKucuntongjiMapper; + + /** + * 查询库存统计报 + * + * @param id 库存统计报主键 + * @return 库存统计报 + */ + @Override + public HtJczcKucuntongji selectHtJczcKucuntongjiById(Integer id) + { + return htJczcKucuntongjiMapper.selectHtJczcKucuntongjiById(id); + } + + /** + * 查询库存统计报列表 + * + * @param htJczcKucuntongji 库存统计报 + * @return 库存统计报 + */ + @Override + public List selectHtJczcKucuntongjiList(HtJczcKucuntongji htJczcKucuntongji) + { + return htJczcKucuntongjiMapper.selectHtJczcKucuntongjiList(htJczcKucuntongji); + } + + /** + * 新增库存统计报 + * + * @param htJczcKucuntongji 库存统计报 + * @return 结果 + */ + @Override + public int insertHtJczcKucuntongji(HtJczcKucuntongji htJczcKucuntongji) + { + return htJczcKucuntongjiMapper.insertHtJczcKucuntongji(htJczcKucuntongji); + } + + /** + * 修改库存统计报 + * + * @param htJczcKucuntongji 库存统计报 + * @return 结果 + */ + @Override + public int updateHtJczcKucuntongji(HtJczcKucuntongji htJczcKucuntongji) + { + return htJczcKucuntongjiMapper.updateHtJczcKucuntongji(htJczcKucuntongji); + } + + /** + * 批量删除库存统计报 + * + * @param ids 需要删除的库存统计报主键 + * @return 结果 + */ + @Override + public int deleteHtJczcKucuntongjiByIds(Integer[] ids) + { + return htJczcKucuntongjiMapper.deleteHtJczcKucuntongjiByIds(ids); + } + + /** + * 删除库存统计报信息 + * + * @param id 库存统计报主键 + * @return 结果 + */ + @Override + public int deleteHtJczcKucuntongjiById(Integer id) + { + return htJczcKucuntongjiMapper.deleteHtJczcKucuntongjiById(id); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtJczcQipingtongjiServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtJczcQipingtongjiServiceImpl.java new file mode 100644 index 0000000..200aa0e --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtJczcQipingtongjiServiceImpl.java @@ -0,0 +1,93 @@ +package com.ktg.mes.md.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ktg.mes.md.mapper.HtJczcQipingtongjiMapper; +import com.ktg.mes.md.domain.HtJczcQipingtongji; +import com.ktg.mes.md.service.IHtJczcQipingtongjiService; + +/** + * 气瓶统计报Service业务层处理 + * + * @author yinjinlu + * @date 2025-02-21 + */ +@Service +public class HtJczcQipingtongjiServiceImpl implements IHtJczcQipingtongjiService +{ + @Autowired + private HtJczcQipingtongjiMapper htJczcQipingtongjiMapper; + + /** + * 查询气瓶统计报 + * + * @param id 气瓶统计报主键 + * @return 气瓶统计报 + */ + @Override + public HtJczcQipingtongji selectHtJczcQipingtongjiById(Integer id) + { + return htJczcQipingtongjiMapper.selectHtJczcQipingtongjiById(id); + } + + /** + * 查询气瓶统计报列表 + * + * @param htJczcQipingtongji 气瓶统计报 + * @return 气瓶统计报 + */ + @Override + public List selectHtJczcQipingtongjiList(HtJczcQipingtongji htJczcQipingtongji) + { + return htJczcQipingtongjiMapper.selectHtJczcQipingtongjiList(htJczcQipingtongji); + } + + /** + * 新增气瓶统计报 + * + * @param htJczcQipingtongji 气瓶统计报 + * @return 结果 + */ + @Override + public int insertHtJczcQipingtongji(HtJczcQipingtongji htJczcQipingtongji) + { + return htJczcQipingtongjiMapper.insertHtJczcQipingtongji(htJczcQipingtongji); + } + + /** + * 修改气瓶统计报 + * + * @param htJczcQipingtongji 气瓶统计报 + * @return 结果 + */ + @Override + public int updateHtJczcQipingtongji(HtJczcQipingtongji htJczcQipingtongji) + { + return htJczcQipingtongjiMapper.updateHtJczcQipingtongji(htJczcQipingtongji); + } + + /** + * 批量删除气瓶统计报 + * + * @param ids 需要删除的气瓶统计报主键 + * @return 结果 + */ + @Override + public int deleteHtJczcQipingtongjiByIds(Integer[] ids) + { + return htJczcQipingtongjiMapper.deleteHtJczcQipingtongjiByIds(ids); + } + + /** + * 删除气瓶统计报信息 + * + * @param id 气瓶统计报主键 + * @return 结果 + */ + @Override + public int deleteHtJczcQipingtongjiById(Integer id) + { + return htJczcQipingtongjiMapper.deleteHtJczcQipingtongjiById(id); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtJczcXiaoshoutongjiServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtJczcXiaoshoutongjiServiceImpl.java new file mode 100644 index 0000000..f30dda7 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtJczcXiaoshoutongjiServiceImpl.java @@ -0,0 +1,93 @@ +package com.ktg.mes.md.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ktg.mes.md.mapper.HtJczcXiaoshoutongjiMapper; +import com.ktg.mes.md.domain.HtJczcXiaoshoutongji; +import com.ktg.mes.md.service.IHtJczcXiaoshoutongjiService; + +/** + * 销售统计报Service业务层处理 + * + * @author yinjinlu + * @date 2025-02-21 + */ +@Service +public class HtJczcXiaoshoutongjiServiceImpl implements IHtJczcXiaoshoutongjiService +{ + @Autowired + private HtJczcXiaoshoutongjiMapper htJczcXiaoshoutongjiMapper; + + /** + * 查询销售统计报 + * + * @param id 销售统计报主键 + * @return 销售统计报 + */ + @Override + public HtJczcXiaoshoutongji selectHtJczcXiaoshoutongjiById(Integer id) + { + return htJczcXiaoshoutongjiMapper.selectHtJczcXiaoshoutongjiById(id); + } + + /** + * 查询销售统计报列表 + * + * @param htJczcXiaoshoutongji 销售统计报 + * @return 销售统计报 + */ + @Override + public List selectHtJczcXiaoshoutongjiList(HtJczcXiaoshoutongji htJczcXiaoshoutongji) + { + return htJczcXiaoshoutongjiMapper.selectHtJczcXiaoshoutongjiList(htJczcXiaoshoutongji); + } + + /** + * 新增销售统计报 + * + * @param htJczcXiaoshoutongji 销售统计报 + * @return 结果 + */ + @Override + public int insertHtJczcXiaoshoutongji(HtJczcXiaoshoutongji htJczcXiaoshoutongji) + { + return htJczcXiaoshoutongjiMapper.insertHtJczcXiaoshoutongji(htJczcXiaoshoutongji); + } + + /** + * 修改销售统计报 + * + * @param htJczcXiaoshoutongji 销售统计报 + * @return 结果 + */ + @Override + public int updateHtJczcXiaoshoutongji(HtJczcXiaoshoutongji htJczcXiaoshoutongji) + { + return htJczcXiaoshoutongjiMapper.updateHtJczcXiaoshoutongji(htJczcXiaoshoutongji); + } + + /** + * 批量删除销售统计报 + * + * @param ids 需要删除的销售统计报主键 + * @return 结果 + */ + @Override + public int deleteHtJczcXiaoshoutongjiByIds(Integer[] ids) + { + return htJczcXiaoshoutongjiMapper.deleteHtJczcXiaoshoutongjiByIds(ids); + } + + /** + * 删除销售统计报信息 + * + * @param id 销售统计报主键 + * @return 结果 + */ + @Override + public int deleteHtJczcXiaoshoutongjiById(Integer id) + { + return htJczcXiaoshoutongjiMapper.deleteHtJczcXiaoshoutongjiById(id); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtQingjiaServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtQingjiaServiceImpl.java new file mode 100644 index 0000000..e413c23 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtQingjiaServiceImpl.java @@ -0,0 +1,93 @@ +package com.ktg.mes.md.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ktg.mes.md.mapper.HtQingjiaMapper; +import com.ktg.mes.md.domain.HtQingjia; +import com.ktg.mes.md.service.IHtQingjiaService; + +/** + * 请假Service业务层处理 + * + * @author yinjinlu + * @date 2025-02-20 + */ +@Service +public class HtQingjiaServiceImpl implements IHtQingjiaService +{ + @Autowired + private HtQingjiaMapper htQingjiaMapper; + + /** + * 查询请假 + * + * @param id 请假主键 + * @return 请假 + */ + @Override + public HtQingjia selectHtQingjiaById(Integer id) + { + return htQingjiaMapper.selectHtQingjiaById(id); + } + + /** + * 查询请假列表 + * + * @param htQingjia 请假 + * @return 请假 + */ + @Override + public List selectHtQingjiaList(HtQingjia htQingjia) + { + return htQingjiaMapper.selectHtQingjiaList(htQingjia); + } + + /** + * 新增请假 + * + * @param htQingjia 请假 + * @return 结果 + */ + @Override + public int insertHtQingjia(HtQingjia htQingjia) + { + return htQingjiaMapper.insertHtQingjia(htQingjia); + } + + /** + * 修改请假 + * + * @param htQingjia 请假 + * @return 结果 + */ + @Override + public int updateHtQingjia(HtQingjia htQingjia) + { + return htQingjiaMapper.updateHtQingjia(htQingjia); + } + + /** + * 批量删除请假 + * + * @param ids 需要删除的请假主键 + * @return 结果 + */ + @Override + public int deleteHtQingjiaByIds(Integer[] ids) + { + return htQingjiaMapper.deleteHtQingjiaByIds(ids); + } + + /** + * 删除请假信息 + * + * @param id 请假主键 + * @return 结果 + */ + @Override + public int deleteHtQingjiaById(Integer id) + { + return htQingjiaMapper.deleteHtQingjiaById(id); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtWeipanServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtWeipanServiceImpl.java new file mode 100644 index 0000000..d35ef36 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtWeipanServiceImpl.java @@ -0,0 +1,93 @@ +package com.ktg.mes.md.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ktg.mes.md.mapper.HtWeipanMapper; +import com.ktg.mes.md.domain.HtWeipan; +import com.ktg.mes.md.service.IHtWeipanService; + +/** + * 微盘管理Service业务层处理 + * + * @author yinjinlu + * @date 2025-02-20 + */ +@Service +public class HtWeipanServiceImpl implements IHtWeipanService +{ + @Autowired + private HtWeipanMapper htWeipanMapper; + + /** + * 查询微盘管理 + * + * @param id 微盘管理主键 + * @return 微盘管理 + */ + @Override + public HtWeipan selectHtWeipanById(Long id) + { + return htWeipanMapper.selectHtWeipanById(id); + } + + /** + * 查询微盘管理列表 + * + * @param htWeipan 微盘管理 + * @return 微盘管理 + */ + @Override + public List selectHtWeipanList(HtWeipan htWeipan) + { + return htWeipanMapper.selectHtWeipanList(htWeipan); + } + + /** + * 新增微盘管理 + * + * @param htWeipan 微盘管理 + * @return 结果 + */ + @Override + public int insertHtWeipan(HtWeipan htWeipan) + { + return htWeipanMapper.insertHtWeipan(htWeipan); + } + + /** + * 修改微盘管理 + * + * @param htWeipan 微盘管理 + * @return 结果 + */ + @Override + public int updateHtWeipan(HtWeipan htWeipan) + { + return htWeipanMapper.updateHtWeipan(htWeipan); + } + + /** + * 批量删除微盘管理 + * + * @param ids 需要删除的微盘管理主键 + * @return 结果 + */ + @Override + public int deleteHtWeipanByIds(Long[] ids) + { + return htWeipanMapper.deleteHtWeipanByIds(ids); + } + + /** + * 删除微盘管理信息 + * + * @param id 微盘管理主键 + * @return 结果 + */ + @Override + public int deleteHtWeipanById(Long id) + { + return htWeipanMapper.deleteHtWeipanById(id); + } +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtZhiliangfenxiServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtZhiliangfenxiServiceImpl.java new file mode 100644 index 0000000..17661f4 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/HtZhiliangfenxiServiceImpl.java @@ -0,0 +1,93 @@ +package com.ktg.mes.md.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ktg.mes.md.mapper.HtZhiliangfenxiMapper; +import com.ktg.mes.md.domain.HtZhiliangfenxi; +import com.ktg.mes.md.service.IHtZhiliangfenxiService; + +/** + * 数据统计与分析Service业务层处理 + * + * @author yinjinlu + * @date 2025-02-21 + */ +@Service +public class HtZhiliangfenxiServiceImpl implements IHtZhiliangfenxiService +{ + @Autowired + private HtZhiliangfenxiMapper htZhiliangfenxiMapper; + + /** + * 查询数据统计与分析 + * + * @param id 数据统计与分析主键 + * @return 数据统计与分析 + */ + @Override + public HtZhiliangfenxi selectHtZhiliangfenxiById(Integer id) + { + return htZhiliangfenxiMapper.selectHtZhiliangfenxiById(id); + } + + /** + * 查询数据统计与分析列表 + * + * @param htZhiliangfenxi 数据统计与分析 + * @return 数据统计与分析 + */ + @Override + public List selectHtZhiliangfenxiList(HtZhiliangfenxi htZhiliangfenxi) + { + return htZhiliangfenxiMapper.selectHtZhiliangfenxiList(htZhiliangfenxi); + } + + /** + * 新增数据统计与分析 + * + * @param htZhiliangfenxi 数据统计与分析 + * @return 结果 + */ + @Override + public int insertHtZhiliangfenxi(HtZhiliangfenxi htZhiliangfenxi) + { + return htZhiliangfenxiMapper.insertHtZhiliangfenxi(htZhiliangfenxi); + } + + /** + * 修改数据统计与分析 + * + * @param htZhiliangfenxi 数据统计与分析 + * @return 结果 + */ + @Override + public int updateHtZhiliangfenxi(HtZhiliangfenxi htZhiliangfenxi) + { + return htZhiliangfenxiMapper.updateHtZhiliangfenxi(htZhiliangfenxi); + } + + /** + * 批量删除数据统计与分析 + * + * @param ids 需要删除的数据统计与分析主键 + * @return 结果 + */ + @Override + public int deleteHtZhiliangfenxiByIds(Integer[] ids) + { + return htZhiliangfenxiMapper.deleteHtZhiliangfenxiByIds(ids); + } + + /** + * 删除数据统计与分析信息 + * + * @param id 数据统计与分析主键 + * @return 结果 + */ + @Override + public int deleteHtZhiliangfenxiById(Integer id) + { + return htZhiliangfenxiMapper.deleteHtZhiliangfenxiById(id); + } +} diff --git a/ktg-mes/src/main/resources/mapper/md/HtBaoxiaoMapper.xml b/ktg-mes/src/main/resources/mapper/md/HtBaoxiaoMapper.xml new file mode 100644 index 0000000..f71dc7a --- /dev/null +++ b/ktg-mes/src/main/resources/mapper/md/HtBaoxiaoMapper.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + select id, leixing, yuanyin, jine, shijian from ht_baoxiao + + + + + + + + insert into ht_baoxiao + + id, + leixing, + yuanyin, + jine, + shijian, + + + #{id}, + #{leixing}, + #{yuanyin}, + #{jine}, + #{shijian}, + + + + + update ht_baoxiao + + leixing = #{leixing}, + yuanyin = #{yuanyin}, + jine = #{jine}, + shijian = #{shijian}, + + where id = #{id} + + + + delete from ht_baoxiao where id = #{id} + + + + delete from ht_baoxiao where id in + + #{id} + + + \ No newline at end of file diff --git a/ktg-mes/src/main/resources/mapper/md/HtGglMapper.xml b/ktg-mes/src/main/resources/mapper/md/HtGglMapper.xml new file mode 100644 index 0000000..c0f6f5a --- /dev/null +++ b/ktg-mes/src/main/resources/mapper/md/HtGglMapper.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + select id, biaoti, shijian, neirong from ht_ggl + + + + + + + + insert into ht_ggl + + biaoti, + shijian, + neirong, + + + #{biaoti}, + #{shijian}, + #{neirong}, + + + + + update ht_ggl + + biaoti = #{biaoti}, + shijian = #{shijian}, + neirong = #{neirong}, + + where id = #{id} + + + + delete from ht_ggl where id = #{id} + + + + delete from ht_ggl where id in + + #{id} + + + \ No newline at end of file diff --git a/ktg-mes/src/main/resources/mapper/md/HtHetongMapper.xml b/ktg-mes/src/main/resources/mapper/md/HtHetongMapper.xml new file mode 100644 index 0000000..328b098 --- /dev/null +++ b/ktg-mes/src/main/resources/mapper/md/HtHetongMapper.xml @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + select id, bianhao, mingcheng, jine, shijian, neirong from ht_hetong + + + + + + + + insert into ht_hetong + + bianhao, + mingcheng, + jine, + shijian, + neirong, + + + #{bianhao}, + #{mingcheng}, + #{jine}, + #{shijian}, + #{neirong}, + + + + + update ht_hetong + + bianhao = #{bianhao}, + mingcheng = #{mingcheng}, + jine = #{jine}, + shijian = #{shijian}, + neirong = #{neirong}, + + where id = #{id} + + + + delete from ht_hetong where id = #{id} + + + + delete from ht_hetong where id in + + #{id} + + + \ No newline at end of file diff --git a/ktg-mes/src/main/resources/mapper/md/HtJczcKehutongjiMapper.xml b/ktg-mes/src/main/resources/mapper/md/HtJczcKehutongjiMapper.xml new file mode 100644 index 0000000..b9420b5 --- /dev/null +++ b/ktg-mes/src/main/resources/mapper/md/HtJczcKehutongjiMapper.xml @@ -0,0 +1,171 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, customer_name, customer_type, contact_name, contact_phone, region, total_sales, total_quantity, average_unit_price, largest_order, average_order_value, direct_sales, agent_sales, online_sales, gas_sales, equipment_sales, service_sales, first_order_date, last_order_date, total_orders, repeat_purchase_rate, total_payments, total_refunds, outstanding_balance, statistic_period from ht_jczc_kehutongji + + + + + + + + insert into ht_jczc_kehutongji + + customer_name, + customer_type, + contact_name, + contact_phone, + region, + total_sales, + total_quantity, + average_unit_price, + largest_order, + average_order_value, + direct_sales, + agent_sales, + online_sales, + gas_sales, + equipment_sales, + service_sales, + first_order_date, + last_order_date, + total_orders, + repeat_purchase_rate, + total_payments, + total_refunds, + outstanding_balance, + statistic_period, + + + #{customerName}, + #{customerType}, + #{contactName}, + #{contactPhone}, + #{region}, + #{totalSales}, + #{totalQuantity}, + #{averageUnitPrice}, + #{largestOrder}, + #{averageOrderValue}, + #{directSales}, + #{agentSales}, + #{onlineSales}, + #{gasSales}, + #{equipmentSales}, + #{serviceSales}, + #{firstOrderDate}, + #{lastOrderDate}, + #{totalOrders}, + #{repeatPurchaseRate}, + #{totalPayments}, + #{totalRefunds}, + #{outstandingBalance}, + #{statisticPeriod}, + + + + + update ht_jczc_kehutongji + + customer_name = #{customerName}, + customer_type = #{customerType}, + contact_name = #{contactName}, + contact_phone = #{contactPhone}, + region = #{region}, + total_sales = #{totalSales}, + total_quantity = #{totalQuantity}, + average_unit_price = #{averageUnitPrice}, + largest_order = #{largestOrder}, + average_order_value = #{averageOrderValue}, + direct_sales = #{directSales}, + agent_sales = #{agentSales}, + online_sales = #{onlineSales}, + gas_sales = #{gasSales}, + equipment_sales = #{equipmentSales}, + service_sales = #{serviceSales}, + first_order_date = #{firstOrderDate}, + last_order_date = #{lastOrderDate}, + total_orders = #{totalOrders}, + repeat_purchase_rate = #{repeatPurchaseRate}, + total_payments = #{totalPayments}, + total_refunds = #{totalRefunds}, + outstanding_balance = #{outstandingBalance}, + statistic_period = #{statisticPeriod}, + + where id = #{id} + + + + delete from ht_jczc_kehutongji where id = #{id} + + + + delete from ht_jczc_kehutongji where id in + + #{id} + + + \ No newline at end of file diff --git a/ktg-mes/src/main/resources/mapper/md/HtJczcKucuntongjiMapper.xml b/ktg-mes/src/main/resources/mapper/md/HtJczcKucuntongjiMapper.xml new file mode 100644 index 0000000..4fc91c5 --- /dev/null +++ b/ktg-mes/src/main/resources/mapper/md/HtJczcKucuntongjiMapper.xml @@ -0,0 +1,166 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, statistic_date, total_inventory_value, total_quantity, raw_material_value, raw_material_quantity, raw_material_turnover_rate, finished_goods_value, finished_goods_quantity, finished_goods_turnover_rate, oxygen_value, oxygen_quantity, nitrogen_value, nitrogen_quantity, argon_value, argon_quantity, overall_turnover_rate, days_inventory_outstanding, low_stock_items, out_of_stock_items, excess_stock_items, region, warehouse, year from ht_jczc_kucuntongji + + + + + + + + insert into ht_jczc_kucuntongji + + statistic_date, + total_inventory_value, + total_quantity, + raw_material_value, + raw_material_quantity, + raw_material_turnover_rate, + finished_goods_value, + finished_goods_quantity, + finished_goods_turnover_rate, + oxygen_value, + oxygen_quantity, + nitrogen_value, + nitrogen_quantity, + argon_value, + argon_quantity, + overall_turnover_rate, + days_inventory_outstanding, + low_stock_items, + out_of_stock_items, + excess_stock_items, + region, + warehouse, + year, + + + #{statisticDate}, + #{totalInventoryValue}, + #{totalQuantity}, + #{rawMaterialValue}, + #{rawMaterialQuantity}, + #{rawMaterialTurnoverRate}, + #{finishedGoodsValue}, + #{finishedGoodsQuantity}, + #{finishedGoodsTurnoverRate}, + #{oxygenValue}, + #{oxygenQuantity}, + #{nitrogenValue}, + #{nitrogenQuantity}, + #{argonValue}, + #{argonQuantity}, + #{overallTurnoverRate}, + #{daysInventoryOutstanding}, + #{lowStockItems}, + #{outOfStockItems}, + #{excessStockItems}, + #{region}, + #{warehouse}, + #{year}, + + + + + update ht_jczc_kucuntongji + + statistic_date = #{statisticDate}, + total_inventory_value = #{totalInventoryValue}, + total_quantity = #{totalQuantity}, + raw_material_value = #{rawMaterialValue}, + raw_material_quantity = #{rawMaterialQuantity}, + raw_material_turnover_rate = #{rawMaterialTurnoverRate}, + finished_goods_value = #{finishedGoodsValue}, + finished_goods_quantity = #{finishedGoodsQuantity}, + finished_goods_turnover_rate = #{finishedGoodsTurnoverRate}, + oxygen_value = #{oxygenValue}, + oxygen_quantity = #{oxygenQuantity}, + nitrogen_value = #{nitrogenValue}, + nitrogen_quantity = #{nitrogenQuantity}, + argon_value = #{argonValue}, + argon_quantity = #{argonQuantity}, + overall_turnover_rate = #{overallTurnoverRate}, + days_inventory_outstanding = #{daysInventoryOutstanding}, + low_stock_items = #{lowStockItems}, + out_of_stock_items = #{outOfStockItems}, + excess_stock_items = #{excessStockItems}, + region = #{region}, + warehouse = #{warehouse}, + year = #{year}, + + where id = #{id} + + + + delete from ht_jczc_kucuntongji where id = #{id} + + + + delete from ht_jczc_kucuntongji where id in + + #{id} + + + \ No newline at end of file diff --git a/ktg-mes/src/main/resources/mapper/md/HtJczcQipingtongjiMapper.xml b/ktg-mes/src/main/resources/mapper/md/HtJczcQipingtongjiMapper.xml new file mode 100644 index 0000000..7a2cf4f --- /dev/null +++ b/ktg-mes/src/main/resources/mapper/md/HtJczcQipingtongjiMapper.xml @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, statistic_date, company_stock, customer_owing, newly_purchased, sold, scrapped, total_cylinders, in_stock, in_use, in_maintenance, awaiting_scrap, oxygen_cylinders, nitrogen_cylinders, argon_cylinders, other_cylinders, cylinders_rented, cylinders_returned, cylinders_lost, region, warehouse, year from ht_jczc_qipingtongji + + + + + + + + insert into ht_jczc_qipingtongji + + statistic_date, + company_stock, + customer_owing, + newly_purchased, + sold, + scrapped, + total_cylinders, + in_stock, + in_use, + in_maintenance, + awaiting_scrap, + oxygen_cylinders, + nitrogen_cylinders, + argon_cylinders, + other_cylinders, + cylinders_rented, + cylinders_returned, + cylinders_lost, + region, + warehouse, + year, + + + #{statisticDate}, + #{companyStock}, + #{customerOwing}, + #{newlyPurchased}, + #{sold}, + #{scrapped}, + #{totalCylinders}, + #{inStock}, + #{inUse}, + #{inMaintenance}, + #{awaitingScrap}, + #{oxygenCylinders}, + #{nitrogenCylinders}, + #{argonCylinders}, + #{otherCylinders}, + #{cylindersRented}, + #{cylindersReturned}, + #{cylindersLost}, + #{region}, + #{warehouse}, + #{year}, + + + + + update ht_jczc_qipingtongji + + statistic_date = #{statisticDate}, + company_stock = #{companyStock}, + customer_owing = #{customerOwing}, + newly_purchased = #{newlyPurchased}, + sold = #{sold}, + scrapped = #{scrapped}, + total_cylinders = #{totalCylinders}, + in_stock = #{inStock}, + in_use = #{inUse}, + in_maintenance = #{inMaintenance}, + awaiting_scrap = #{awaitingScrap}, + oxygen_cylinders = #{oxygenCylinders}, + nitrogen_cylinders = #{nitrogenCylinders}, + argon_cylinders = #{argonCylinders}, + other_cylinders = #{otherCylinders}, + cylinders_rented = #{cylindersRented}, + cylinders_returned = #{cylindersReturned}, + cylinders_lost = #{cylindersLost}, + region = #{region}, + warehouse = #{warehouse}, + year = #{year}, + + where id = #{id} + + + + delete from ht_jczc_qipingtongji where id = #{id} + + + + delete from ht_jczc_qipingtongji where id in + + #{id} + + + \ No newline at end of file diff --git a/ktg-mes/src/main/resources/mapper/md/HtJczcXiaoshoutongjiMapper.xml b/ktg-mes/src/main/resources/mapper/md/HtJczcXiaoshoutongjiMapper.xml new file mode 100644 index 0000000..b8496c9 --- /dev/null +++ b/ktg-mes/src/main/resources/mapper/md/HtJczcXiaoshoutongjiMapper.xml @@ -0,0 +1,161 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, statistic_date, total_sales, total_quantity, average_unit_price, industrial_sales, medical_sales, retail_sales, other_sales, direct_sales, agent_sales, online_sales, gas_sales, equipment_sales, service_sales, new_customers, repeat_customers, largest_order, average_order_value, refund_amount, net_sales, season, year from ht_jczc_xiaoshoutongji + + + + + + + + insert into ht_jczc_xiaoshoutongji + + statistic_date, + total_sales, + total_quantity, + average_unit_price, + industrial_sales, + medical_sales, + retail_sales, + other_sales, + direct_sales, + agent_sales, + online_sales, + gas_sales, + equipment_sales, + service_sales, + new_customers, + repeat_customers, + largest_order, + average_order_value, + refund_amount, + net_sales, + season, + year, + + + #{statisticDate}, + #{totalSales}, + #{totalQuantity}, + #{averageUnitPrice}, + #{industrialSales}, + #{medicalSales}, + #{retailSales}, + #{otherSales}, + #{directSales}, + #{agentSales}, + #{onlineSales}, + #{gasSales}, + #{equipmentSales}, + #{serviceSales}, + #{newCustomers}, + #{repeatCustomers}, + #{largestOrder}, + #{averageOrderValue}, + #{refundAmount}, + #{netSales}, + #{season}, + #{year}, + + + + + update ht_jczc_xiaoshoutongji + + statistic_date = #{statisticDate}, + total_sales = #{totalSales}, + total_quantity = #{totalQuantity}, + average_unit_price = #{averageUnitPrice}, + industrial_sales = #{industrialSales}, + medical_sales = #{medicalSales}, + retail_sales = #{retailSales}, + other_sales = #{otherSales}, + direct_sales = #{directSales}, + agent_sales = #{agentSales}, + online_sales = #{onlineSales}, + gas_sales = #{gasSales}, + equipment_sales = #{equipmentSales}, + service_sales = #{serviceSales}, + new_customers = #{newCustomers}, + repeat_customers = #{repeatCustomers}, + largest_order = #{largestOrder}, + average_order_value = #{averageOrderValue}, + refund_amount = #{refundAmount}, + net_sales = #{netSales}, + season = #{season}, + year = #{year}, + + where id = #{id} + + + + delete from ht_jczc_xiaoshoutongji where id = #{id} + + + + delete from ht_jczc_xiaoshoutongji where id in + + #{id} + + + \ No newline at end of file diff --git a/ktg-mes/src/main/resources/mapper/md/HtQingjiaMapper.xml b/ktg-mes/src/main/resources/mapper/md/HtQingjiaMapper.xml new file mode 100644 index 0000000..69ef2de --- /dev/null +++ b/ktg-mes/src/main/resources/mapper/md/HtQingjiaMapper.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + select id, leixing, kaishi, jieshu, yuanyin from ht_qingjia + + + + + + + + insert into ht_qingjia + + leixing, + kaishi, + jieshu, + yuanyin, + + + #{leixing}, + #{kaishi}, + #{jieshu}, + #{yuanyin}, + + + + + update ht_qingjia + + leixing = #{leixing}, + kaishi = #{kaishi}, + jieshu = #{jieshu}, + yuanyin = #{yuanyin}, + + where id = #{id} + + + + delete from ht_qingjia where id = #{id} + + + + delete from ht_qingjia where id in + + #{id} + + + \ No newline at end of file diff --git a/ktg-mes/src/main/resources/mapper/md/HtWeipanMapper.xml b/ktg-mes/src/main/resources/mapper/md/HtWeipanMapper.xml new file mode 100644 index 0000000..6d9c82b --- /dev/null +++ b/ktg-mes/src/main/resources/mapper/md/HtWeipanMapper.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + select id, shangchuanren, shijian, leixing, wenjian from ht_weipan + + + + + + + + insert into ht_weipan + + shangchuanren, + shijian, + leixing, + wenjian, + + + #{shangchuanren}, + #{shijian}, + #{leixing}, + #{wenjian}, + + + + + update ht_weipan + + shangchuanren = #{shangchuanren}, + shijian = #{shijian}, + leixing = #{leixing}, + wenjian = #{wenjian}, + + where id = #{id} + + + + delete from ht_weipan where id = #{id} + + + + delete from ht_weipan where id in + + #{id} + + + \ No newline at end of file diff --git a/ktg-mes/src/main/resources/mapper/md/HtZhiliangfenxiMapper.xml b/ktg-mes/src/main/resources/mapper/md/HtZhiliangfenxiMapper.xml new file mode 100644 index 0000000..7d95490 --- /dev/null +++ b/ktg-mes/src/main/resources/mapper/md/HtZhiliangfenxiMapper.xml @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, statistic_date, total_samples, passed_samples, failed_samples, pass_rate, impurity_failures, pressure_failures, leakage_failures, labeling_failures, other_failures, oxygen_pass_rate, nitrogen_pass_rate, argon_pass_rate, other_gases_pass_rate, testing_equipment, testing_personnel, region, production_line, year, corrective_actions, preventive_actions from ht_zhiliangfenxi + + + + + + + + insert into ht_zhiliangfenxi + + statistic_date, + total_samples, + passed_samples, + failed_samples, + pass_rate, + impurity_failures, + pressure_failures, + leakage_failures, + labeling_failures, + other_failures, + oxygen_pass_rate, + nitrogen_pass_rate, + argon_pass_rate, + other_gases_pass_rate, + testing_equipment, + testing_personnel, + region, + production_line, + year, + corrective_actions, + preventive_actions, + + + #{statisticDate}, + #{totalSamples}, + #{passedSamples}, + #{failedSamples}, + #{passRate}, + #{impurityFailures}, + #{pressureFailures}, + #{leakageFailures}, + #{labelingFailures}, + #{otherFailures}, + #{oxygenPassRate}, + #{nitrogenPassRate}, + #{argonPassRate}, + #{otherGasesPassRate}, + #{testingEquipment}, + #{testingPersonnel}, + #{region}, + #{productionLine}, + #{year}, + #{correctiveActions}, + #{preventiveActions}, + + + + + update ht_zhiliangfenxi + + statistic_date = #{statisticDate}, + total_samples = #{totalSamples}, + passed_samples = #{passedSamples}, + failed_samples = #{failedSamples}, + pass_rate = #{passRate}, + impurity_failures = #{impurityFailures}, + pressure_failures = #{pressureFailures}, + leakage_failures = #{leakageFailures}, + labeling_failures = #{labelingFailures}, + other_failures = #{otherFailures}, + oxygen_pass_rate = #{oxygenPassRate}, + nitrogen_pass_rate = #{nitrogenPassRate}, + argon_pass_rate = #{argonPassRate}, + other_gases_pass_rate = #{otherGasesPassRate}, + testing_equipment = #{testingEquipment}, + testing_personnel = #{testingPersonnel}, + region = #{region}, + production_line = #{productionLine}, + year = #{year}, + corrective_actions = #{correctiveActions}, + preventive_actions = #{preventiveActions}, + + where id = #{id} + + + + delete from ht_zhiliangfenxi where id = #{id} + + + + delete from ht_zhiliangfenxi where id in + + #{id} + + + \ No newline at end of file