zhouxingyu 1 miesiąc temu
rodzic
commit
d578c79d90
31 zmienionych plików z 1472 dodań i 0 usunięć
  1. 42 0
      lg-code/pom.xml
  2. 173 0
      lg-code/src/main/java/org.jeecg.lg/Contact/controller/LgContactController.java
  3. 49 0
      lg-code/src/main/java/org.jeecg.lg/Contact/entity/LgContact.java
  4. 17 0
      lg-code/src/main/java/org.jeecg.lg/Contact/mapper/LgContactMapper.java
  5. 5 0
      lg-code/src/main/java/org.jeecg.lg/Contact/mapper/xml/LgContactMapper.xml
  6. 14 0
      lg-code/src/main/java/org.jeecg.lg/Contact/service/ILgContactService.java
  7. 20 0
      lg-code/src/main/java/org.jeecg.lg/Contact/service/impl/LgContactServiceImpl.java
  8. 176 0
      lg-code/src/main/java/org.jeecg.lg/DefectiveProduct/controller/DefectiveProductController.java
  9. 64 0
      lg-code/src/main/java/org.jeecg.lg/DefectiveProduct/entity/DefectiveProduct.java
  10. 18 0
      lg-code/src/main/java/org.jeecg.lg/DefectiveProduct/mapper/DefectiveProductMapper.java
  11. 5 0
      lg-code/src/main/java/org.jeecg.lg/DefectiveProduct/mapper/xml/DefectiveProductMapper.xml
  12. 14 0
      lg-code/src/main/java/org.jeecg.lg/DefectiveProduct/service/IDefectiveProductService.java
  13. 20 0
      lg-code/src/main/java/org.jeecg.lg/DefectiveProduct/service/impl/DefectiveProductServiceImpl.java
  14. 173 0
      lg-code/src/main/java/org.jeecg.lg/DestRule/controller/DestRuleController.java
  15. 49 0
      lg-code/src/main/java/org.jeecg.lg/DestRule/entity/DestRule.java
  16. 17 0
      lg-code/src/main/java/org.jeecg.lg/DestRule/mapper/DestRuleMapper.java
  17. 5 0
      lg-code/src/main/java/org.jeecg.lg/DestRule/mapper/xml/DestRuleMapper.xml
  18. 14 0
      lg-code/src/main/java/org.jeecg.lg/DestRule/service/IDestRuleService.java
  19. 20 0
      lg-code/src/main/java/org.jeecg.lg/DestRule/service/impl/DestRuleServiceImpl.java
  20. 174 0
      lg-code/src/main/java/org.jeecg.lg/ReasonRule/controller/ReasonRuleController.java
  21. 46 0
      lg-code/src/main/java/org.jeecg.lg/ReasonRule/entity/ReasonRule.java
  22. 17 0
      lg-code/src/main/java/org.jeecg.lg/ReasonRule/mapper/ReasonRuleMapper.java
  23. 5 0
      lg-code/src/main/java/org.jeecg.lg/ReasonRule/mapper/xml/ReasonRuleMapper.xml
  24. 14 0
      lg-code/src/main/java/org.jeecg.lg/ReasonRule/service/IReasonRuleService.java
  25. 20 0
      lg-code/src/main/java/org.jeecg.lg/ReasonRule/service/impl/ReasonRuleServiceImpl.java
  26. 175 0
      lg-code/src/main/java/org.jeecg.lg/RegionRule/controller/RegionRuleController.java
  27. 70 0
      lg-code/src/main/java/org.jeecg.lg/RegionRule/entity/RegionRule.java
  28. 17 0
      lg-code/src/main/java/org.jeecg.lg/RegionRule/mapper/RegionRuleMapper.java
  29. 5 0
      lg-code/src/main/java/org.jeecg.lg/RegionRule/mapper/xml/RegionRuleMapper.xml
  30. 14 0
      lg-code/src/main/java/org.jeecg.lg/RegionRule/service/IRegionRuleService.java
  31. 20 0
      lg-code/src/main/java/org.jeecg.lg/RegionRule/service/impl/RegionRuleServiceImpl.java

+ 42 - 0
lg-code/pom.xml

@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>jeecg-boot-parent</artifactId>
+        <groupId>org.jeecgframework.boot</groupId>
+        <version>3.6.3</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>lg-code</artifactId>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.jeecgframework.boot</groupId>
+            <artifactId>jeecg-boot-base-core</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.jeecgframework.boot</groupId>
+            <artifactId>jeecg-system-biz</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.pdfbox</groupId>
+            <artifactId>pdfbox</artifactId>
+            <version>2.0.24</version>
+        </dependency>
+        <dependency>
+            <groupId>technology.tabula</groupId>
+            <artifactId>tabula</artifactId>
+            <version>1.0.5</version>
+            <exclusions>
+                <exclusion>
+                    <artifactId>slf4j-simple</artifactId>
+                    <groupId>org.slf4j</groupId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+    </dependencies>
+
+</project>

+ 173 - 0
lg-code/src/main/java/org.jeecg.lg/Contact/controller/LgContactController.java

@@ -0,0 +1,173 @@
+package org.jeecg.lg.Contact.controller;
+
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.system.query.QueryRuleEnum;
+import org.jeecg.common.util.oConvertUtils;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecg.lg.Contact.entity.LgContact;
+import org.jeecg.lg.Contact.service.ILgContactService;
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+ /**
+ * @Description: contact
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+@RestController
+@RequestMapping("/lg/lgContact")
+@Slf4j
+public class LgContactController extends JeecgController<LgContact, ILgContactService> {
+	@Autowired
+	private ILgContactService lgContactService;
+
+	/**
+	 * 分页列表查询
+	 *
+	 * @param lgContact
+	 * @param pageNo
+	 * @param pageSize
+	 * @param req
+	 * @return
+	 */
+	//@AutoLog(value = "contact-分页列表查询")
+	@GetMapping(value = "/list")
+	public Result<IPage<LgContact>> queryPageList(LgContact lgContact,
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+								   HttpServletRequest req) {
+
+
+        QueryWrapper<LgContact> queryWrapper = QueryGenerator.initQueryWrapper(lgContact, req.getParameterMap());
+		Page<LgContact> page = new Page<LgContact>(pageNo, pageSize);
+		IPage<LgContact> pageList = lgContactService.page(page, queryWrapper);
+		return Result.OK(pageList);
+	}
+
+	/**
+	 *   添加
+	 *
+	 * @param lgContact
+	 * @return
+	 */
+	@AutoLog(value = "contact-添加")
+	@RequiresPermissions("lg:lg_contact:add")
+	@PostMapping(value = "/add")
+	public Result<String> add(@RequestBody LgContact lgContact) {
+		lgContactService.save(lgContact);
+
+		return Result.OK("添加成功!");
+	}
+
+	/**
+	 *  编辑
+	 *
+	 * @param lgContact
+	 * @return
+	 */
+	@AutoLog(value = "contact-编辑")
+	@RequiresPermissions("lg:lg_contact:edit")
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+	public Result<String> edit(@RequestBody LgContact lgContact) {
+		lgContactService.updateById(lgContact);
+		return Result.OK("编辑成功!");
+	}
+
+	/**
+	 *   通过id删除
+	 *
+	 * @param id
+	 * @return
+	 */
+	@AutoLog(value = "contact-通过id删除")
+	@RequiresPermissions("lg:lg_contact:delete")
+	@DeleteMapping(value = "/delete")
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
+		lgContactService.removeById(id);
+		return Result.OK("删除成功!");
+	}
+
+	/**
+	 *  批量删除
+	 *
+	 * @param ids
+	 * @return
+	 */
+	@AutoLog(value = "contact-批量删除")
+	@RequiresPermissions("lg:lg_contact:deleteBatch")
+	@DeleteMapping(value = "/deleteBatch")
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+		this.lgContactService.removeByIds(Arrays.asList(ids.split(",")));
+		return Result.OK("批量删除成功!");
+	}
+
+	/**
+	 * 通过id查询
+	 *
+	 * @param id
+	 * @return
+	 */
+	//@AutoLog(value = "contact-通过id查询")
+	@GetMapping(value = "/queryById")
+	public Result<LgContact> queryById(@RequestParam(name="id",required=true) String id) {
+		LgContact lgContact = lgContactService.getById(id);
+		if(lgContact==null) {
+			return Result.error("未找到对应数据");
+		}
+		return Result.OK(lgContact);
+	}
+
+    /**
+    * 导出excel
+    *
+    * @param request
+    * @param lgContact
+    */
+    @RequiresPermissions("lg:lg_contact:exportXls")
+    @RequestMapping(value = "/exportXls")
+    public ModelAndView exportXls(HttpServletRequest request, LgContact lgContact) {
+        return super.exportXls(request, lgContact, LgContact.class, "contact");
+    }
+
+    /**
+      * 通过excel导入数据
+    *
+    * @param request
+    * @param response
+    * @return
+    */
+    @RequiresPermissions("lg:lg_contact:importExcel")
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
+        return super.importExcel(request, response, LgContact.class);
+    }
+
+}

+ 49 - 0
lg-code/src/main/java/org.jeecg.lg/Contact/entity/LgContact.java

@@ -0,0 +1,49 @@
+package org.jeecg.lg.Contact.entity;
+
+import java.io.Serializable;
+import java.io.UnsupportedEncodingException;
+import java.util.Date;
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import org.jeecg.common.constant.ProvinceCityArea;
+import org.jeecg.common.util.SpringContextUtils;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.jeecg.common.aspect.annotation.Dict;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @Description: contact
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+@Data
+@TableName("lg_contact")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+public class LgContact implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+	/**主键*/
+	@TableId(type = IdType.ASSIGN_ID)
+    private String id;
+	/**name*/
+	@Excel(name = "name", width = 15)
+    private String name;
+	/**email*/
+	@Excel(name = "email", width = 15)
+    private String email;
+	/**类型:发送、抄送*/
+	@Excel(name = "类型:发送、抄送", width = 15)
+    private Integer recType;
+	/**是否启用*/
+	@Excel(name = "是否启用", width = 15)
+    private Integer isActive;
+}

+ 17 - 0
lg-code/src/main/java/org.jeecg.lg/Contact/mapper/LgContactMapper.java

@@ -0,0 +1,17 @@
+package org.jeecg.lg.Contact.mapper;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.jeecg.lg.Contact.entity.LgContact;
+
+/**
+ * @Description: contact
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+public interface LgContactMapper extends BaseMapper<LgContact> {
+
+}

+ 5 - 0
lg-code/src/main/java/org.jeecg.lg/Contact/mapper/xml/LgContactMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="org.jeecg.modules.demo.lg.mapper.LgContactMapper">
+
+</mapper>

+ 14 - 0
lg-code/src/main/java/org.jeecg.lg/Contact/service/ILgContactService.java

@@ -0,0 +1,14 @@
+package org.jeecg.lg.Contact.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.jeecg.lg.Contact.entity.LgContact;
+
+/**
+ * @Description: contact
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+public interface ILgContactService extends IService<LgContact> {
+
+}

+ 20 - 0
lg-code/src/main/java/org.jeecg.lg/Contact/service/impl/LgContactServiceImpl.java

@@ -0,0 +1,20 @@
+package org.jeecg.lg.Contact.service.impl;
+
+
+import org.jeecg.lg.Contact.entity.LgContact;
+import org.jeecg.lg.Contact.mapper.LgContactMapper;
+import org.jeecg.lg.Contact.service.ILgContactService;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ * @Description: contact
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+@Service
+public class LgContactServiceImpl extends ServiceImpl<LgContactMapper, LgContact> implements ILgContactService {
+
+}

+ 176 - 0
lg-code/src/main/java/org.jeecg.lg/DefectiveProduct/controller/DefectiveProductController.java

@@ -0,0 +1,176 @@
+package org.jeecg.lg.DefectiveProduct.controller;
+
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import io.swagger.annotations.Tag;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.system.query.QueryRuleEnum;
+import org.jeecg.common.util.oConvertUtils;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecg.lg.DefectiveProduct.entity.DefectiveProduct;
+import org.jeecg.lg.DefectiveProduct.service.IDefectiveProductService;
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+ /**
+ * @Description: defective_product
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+
+@RestController
+@RequestMapping("/lg/defectiveProduct")
+@Slf4j
+public class DefectiveProductController extends JeecgController<DefectiveProduct, IDefectiveProductService> {
+	@Autowired
+	private IDefectiveProductService defectiveProductService;
+
+	/**
+	 * 分页列表查询
+	 *
+	 * @param defectiveProduct
+	 * @param pageNo
+	 * @param pageSize
+	 * @param req
+	 * @return
+	 */
+	//@AutoLog(value = "defective_product-分页列表查询")
+	@GetMapping(value = "/list")
+	public Result<IPage<DefectiveProduct>> queryPageList(DefectiveProduct defectiveProduct,
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+								   HttpServletRequest req) {
+
+
+        QueryWrapper<DefectiveProduct> queryWrapper = QueryGenerator.initQueryWrapper(defectiveProduct, req.getParameterMap());
+		Page<DefectiveProduct> page = new Page<DefectiveProduct>(pageNo, pageSize);
+		IPage<DefectiveProduct> pageList = defectiveProductService.page(page, queryWrapper);
+		return Result.OK(pageList);
+	}
+
+	/**
+	 *   添加
+	 *
+	 * @param defectiveProduct
+	 * @return
+	 */
+	@AutoLog(value = "defective_product-添加")
+	@RequiresPermissions("lg:defective_product:add")
+	@PostMapping(value = "/add")
+	public Result<String> add(@RequestBody DefectiveProduct defectiveProduct) {
+		defectiveProductService.save(defectiveProduct);
+
+		return Result.OK("添加成功!");
+	}
+
+	/**
+	 *  编辑
+	 *
+	 * @param defectiveProduct
+	 * @return
+	 */
+	@AutoLog(value = "defective_product-编辑")
+	@RequiresPermissions("lg:defective_product:edit")
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+	public Result<String> edit(@RequestBody DefectiveProduct defectiveProduct) {
+		defectiveProductService.updateById(defectiveProduct);
+		return Result.OK("编辑成功!");
+	}
+
+	/**
+	 *   通过id删除
+	 *
+	 * @param id
+	 * @return
+	 */
+	@AutoLog(value = "defective_product-通过id删除")
+	@RequiresPermissions("lg:defective_product:delete")
+	@DeleteMapping(value = "/delete")
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
+		defectiveProductService.removeById(id);
+		return Result.OK("删除成功!");
+	}
+
+	/**
+	 *  批量删除
+	 *
+	 * @param ids
+	 * @return
+	 */
+	@AutoLog(value = "defective_product-批量删除")
+	@RequiresPermissions("lg:defective_product:deleteBatch")
+	@DeleteMapping(value = "/deleteBatch")
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+		this.defectiveProductService.removeByIds(Arrays.asList(ids.split(",")));
+		return Result.OK("批量删除成功!");
+	}
+
+	/**
+	 * 通过id查询
+	 *
+	 * @param id
+	 * @return
+	 */
+	//@AutoLog(value = "defective_product-通过id查询")
+	@GetMapping(value = "/queryById")
+	public Result<DefectiveProduct> queryById(@RequestParam(name="id",required=true) String id) {
+		DefectiveProduct defectiveProduct = defectiveProductService.getById(id);
+		if(defectiveProduct==null) {
+			return Result.error("未找到对应数据");
+		}
+		return Result.OK(defectiveProduct);
+	}
+
+    /**
+    * 导出excel
+    *
+    * @param request
+    * @param defectiveProduct
+    */
+    @RequiresPermissions("lg:defective_product:exportXls")
+    @RequestMapping(value = "/exportXls")
+    public ModelAndView exportXls(HttpServletRequest request, DefectiveProduct defectiveProduct) {
+        return super.exportXls(request, defectiveProduct, DefectiveProduct.class, "defective_product");
+    }
+
+    /**
+      * 通过excel导入数据
+    *
+    * @param request
+    * @param response
+    * @return
+    */
+    @RequiresPermissions("lg:defective_product:importExcel")
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
+        return super.importExcel(request, response, DefectiveProduct.class);
+    }
+
+}

+ 64 - 0
lg-code/src/main/java/org.jeecg.lg/DefectiveProduct/entity/DefectiveProduct.java

@@ -0,0 +1,64 @@
+package org.jeecg.lg.DefectiveProduct.entity;
+
+import java.io.Serializable;
+import java.io.UnsupportedEncodingException;
+import java.util.Date;
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import org.jeecg.common.constant.ProvinceCityArea;
+import org.jeecg.common.util.SpringContextUtils;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.jeecg.common.aspect.annotation.Dict;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @Description: defective_product
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+@Data
+@TableName("lg_defective_product")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+public class DefectiveProduct implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+	/**主键*/
+	@TableId(type = IdType.ASSIGN_ID)
+    private String id;
+	/**region*/
+	@Excel(name = "region", width = 15)
+    private String region;
+	/**model*/
+	@Excel(name = "model", width = 15)
+    private String model;
+	/**week*/
+	@Excel(name = "week", width = 15)
+    private String week;
+	/**line*/
+	@Excel(name = "line", width = 15)
+    private String line;
+	/**tool*/
+	@Excel(name = "tool", width = 15)
+    private String tool;
+	/**po*/
+	@Excel(name = "po", width = 15)
+    private String po;
+	/**due_date*/
+	@Excel(name = "due_date", width = 15)
+    private String dueDate;
+	/**comment1*/
+	@Excel(name = "comment1", width = 15)
+    private String comment1;
+	/**remark*/
+	@Excel(name = "remark", width = 15)
+    private String remark;
+}

+ 18 - 0
lg-code/src/main/java/org.jeecg.lg/DefectiveProduct/mapper/DefectiveProductMapper.java

@@ -0,0 +1,18 @@
+package org.jeecg.lg.DefectiveProduct.mapper;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.jeecg.lg.DefectiveProduct.entity.DefectiveProduct;
+
+/**
+ * @Description: defective_product
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+public interface DefectiveProductMapper extends BaseMapper<DefectiveProduct> {
+
+}

+ 5 - 0
lg-code/src/main/java/org.jeecg.lg/DefectiveProduct/mapper/xml/DefectiveProductMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="org.jeecg.modules.demo.lg.mapper.DefectiveProductMapper">
+
+</mapper>

+ 14 - 0
lg-code/src/main/java/org.jeecg.lg/DefectiveProduct/service/IDefectiveProductService.java

@@ -0,0 +1,14 @@
+package org.jeecg.lg.DefectiveProduct.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.jeecg.lg.DefectiveProduct.entity.DefectiveProduct;
+
+/**
+ * @Description: defective_product
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+public interface IDefectiveProductService extends IService<DefectiveProduct> {
+
+}

+ 20 - 0
lg-code/src/main/java/org.jeecg.lg/DefectiveProduct/service/impl/DefectiveProductServiceImpl.java

@@ -0,0 +1,20 @@
+package org.jeecg.lg.DefectiveProduct.service.impl;
+
+
+import org.jeecg.lg.DefectiveProduct.entity.DefectiveProduct;
+import org.jeecg.lg.DefectiveProduct.mapper.DefectiveProductMapper;
+import org.jeecg.lg.DefectiveProduct.service.IDefectiveProductService;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ * @Description: defective_product
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+@Service
+public class DefectiveProductServiceImpl extends ServiceImpl<DefectiveProductMapper, DefectiveProduct> implements IDefectiveProductService {
+
+}

+ 173 - 0
lg-code/src/main/java/org.jeecg.lg/DestRule/controller/DestRuleController.java

@@ -0,0 +1,173 @@
+package org.jeecg.lg.DestRule.controller;
+
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.system.query.QueryRuleEnum;
+import org.jeecg.common.util.oConvertUtils;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecg.lg.DestRule.entity.DestRule;
+import org.jeecg.lg.DestRule.service.IDestRuleService;
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+ /**
+ * @Description: dest_rule
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+@RestController
+@RequestMapping("/lg/destRule")
+@Slf4j
+public class DestRuleController extends JeecgController<DestRule, IDestRuleService> {
+	@Autowired
+	private IDestRuleService destRuleService;
+
+	/**
+	 * 分页列表查询
+	 *
+	 * @param destRule
+	 * @param pageNo
+	 * @param pageSize
+	 * @param req
+	 * @return
+	 */
+	//@AutoLog(value = "dest_rule-分页列表查询")
+	@GetMapping(value = "/list")
+	public Result<IPage<DestRule>> queryPageList(DestRule destRule,
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+								   HttpServletRequest req) {
+
+
+        QueryWrapper<DestRule> queryWrapper = QueryGenerator.initQueryWrapper(destRule, req.getParameterMap());
+		Page<DestRule> page = new Page<DestRule>(pageNo, pageSize);
+		IPage<DestRule> pageList = destRuleService.page(page, queryWrapper);
+		return Result.OK(pageList);
+	}
+
+	/**
+	 *   添加
+	 *
+	 * @param destRule
+	 * @return
+	 */
+	@AutoLog(value = "dest_rule-添加")
+	@RequiresPermissions("lg:dest_rule:add")
+	@PostMapping(value = "/add")
+	public Result<String> add(@RequestBody DestRule destRule) {
+		destRuleService.save(destRule);
+
+		return Result.OK("添加成功!");
+	}
+
+	/**
+	 *  编辑
+	 *
+	 * @param destRule
+	 * @return
+	 */
+	@AutoLog(value = "dest_rule-编辑")
+	@RequiresPermissions("lg:dest_rule:edit")
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+	public Result<String> edit(@RequestBody DestRule destRule) {
+		destRuleService.updateById(destRule);
+		return Result.OK("编辑成功!");
+	}
+
+	/**
+	 *   通过id删除
+	 *
+	 * @param id
+	 * @return
+	 */
+	@AutoLog(value = "dest_rule-通过id删除")
+	@RequiresPermissions("lg:dest_rule:delete")
+	@DeleteMapping(value = "/delete")
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
+		destRuleService.removeById(id);
+		return Result.OK("删除成功!");
+	}
+
+	/**
+	 *  批量删除
+	 *
+	 * @param ids
+	 * @return
+	 */
+	@AutoLog(value = "dest_rule-批量删除")
+	@RequiresPermissions("lg:dest_rule:deleteBatch")
+	@DeleteMapping(value = "/deleteBatch")
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+		this.destRuleService.removeByIds(Arrays.asList(ids.split(",")));
+		return Result.OK("批量删除成功!");
+	}
+
+	/**
+	 * 通过id查询
+	 *
+	 * @param id
+	 * @return
+	 */
+	//@AutoLog(value = "dest_rule-通过id查询")
+	@GetMapping(value = "/queryById")
+	public Result<DestRule> queryById(@RequestParam(name="id",required=true) String id) {
+		DestRule destRule = destRuleService.getById(id);
+		if(destRule==null) {
+			return Result.error("未找到对应数据");
+		}
+		return Result.OK(destRule);
+	}
+
+    /**
+    * 导出excel
+    *
+    * @param request
+    * @param destRule
+    */
+    @RequiresPermissions("lg:dest_rule:exportXls")
+    @RequestMapping(value = "/exportXls")
+    public ModelAndView exportXls(HttpServletRequest request, DestRule destRule) {
+        return super.exportXls(request, destRule, DestRule.class, "dest_rule");
+    }
+
+    /**
+      * 通过excel导入数据
+    *
+    * @param request
+    * @param response
+    * @return
+    */
+    @RequiresPermissions("lg:dest_rule:importExcel")
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
+        return super.importExcel(request, response, DestRule.class);
+    }
+
+}

+ 49 - 0
lg-code/src/main/java/org.jeecg.lg/DestRule/entity/DestRule.java

@@ -0,0 +1,49 @@
+package org.jeecg.lg.DestRule.entity;
+
+import java.io.Serializable;
+import java.io.UnsupportedEncodingException;
+import java.util.Date;
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import org.jeecg.common.constant.ProvinceCityArea;
+import org.jeecg.common.util.SpringContextUtils;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.jeecg.common.aspect.annotation.Dict;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @Description: dest_rule
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+@Data
+@TableName("lg_dest_rule")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+public class DestRule implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+	/**主键*/
+	@TableId(type = IdType.ASSIGN_ID)
+    private String id;
+	/**destination*/
+	@Excel(name = "destination", width = 15)
+    private String destination;
+	/**to_site*/
+	@Excel(name = "to_site", width = 15)
+    private String toSite;
+	/**nation*/
+	@Excel(name = "nation", width = 15)
+    private String nation;
+	/**sub*/
+	@Excel(name = "sub", width = 15)
+    private String sub;
+}

+ 17 - 0
lg-code/src/main/java/org.jeecg.lg/DestRule/mapper/DestRuleMapper.java

@@ -0,0 +1,17 @@
+package org.jeecg.lg.DestRule.mapper;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.jeecg.lg.DestRule.entity.DestRule;
+
+/**
+ * @Description: dest_rule
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+public interface DestRuleMapper extends BaseMapper<DestRule> {
+
+}

+ 5 - 0
lg-code/src/main/java/org.jeecg.lg/DestRule/mapper/xml/DestRuleMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="org.jeecg.modules.demo.lg.mapper.DestRuleMapper">
+
+</mapper>

+ 14 - 0
lg-code/src/main/java/org.jeecg.lg/DestRule/service/IDestRuleService.java

@@ -0,0 +1,14 @@
+package org.jeecg.lg.DestRule.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.jeecg.lg.DestRule.entity.DestRule;
+
+/**
+ * @Description: dest_rule
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+public interface IDestRuleService extends IService<DestRule> {
+
+}

+ 20 - 0
lg-code/src/main/java/org.jeecg.lg/DestRule/service/impl/DestRuleServiceImpl.java

@@ -0,0 +1,20 @@
+package org.jeecg.lg.DestRule.service.impl;
+
+
+import org.jeecg.lg.DestRule.entity.DestRule;
+import org.jeecg.lg.DestRule.mapper.DestRuleMapper;
+import org.jeecg.lg.DestRule.service.IDestRuleService;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ * @Description: dest_rule
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+@Service
+public class DestRuleServiceImpl extends ServiceImpl<DestRuleMapper, DestRule> implements IDestRuleService {
+
+}

+ 174 - 0
lg-code/src/main/java/org.jeecg.lg/ReasonRule/controller/ReasonRuleController.java

@@ -0,0 +1,174 @@
+package org.jeecg.lg.ReasonRule.controller;
+
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.system.query.QueryRuleEnum;
+import org.jeecg.common.util.oConvertUtils;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecg.lg.ReasonRule.entity.ReasonRule;
+import org.jeecg.lg.ReasonRule.service.IReasonRuleService;
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+ /**
+ * @Description: reason_rule
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+@RestController
+@RequestMapping("/lg/reasonRule")
+@Slf4j
+public class ReasonRuleController extends JeecgController<ReasonRule, IReasonRuleService> {
+	@Autowired
+	private IReasonRuleService reasonRuleService;
+
+	/**
+	 * 分页列表查询
+	 *
+	 * @param reasonRule
+	 * @param pageNo
+	 * @param pageSize
+	 * @param req
+	 * @return
+	 */
+	//@AutoLog(value = "reason_rule-分页列表查询")
+	@GetMapping(value = "/list")
+	public Result<IPage<ReasonRule>> queryPageList(ReasonRule reasonRule,
+												   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+												   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+												   HttpServletRequest req) {
+
+
+        QueryWrapper<ReasonRule> queryWrapper = QueryGenerator.initQueryWrapper(reasonRule, req.getParameterMap());
+		Page<ReasonRule> page = new Page<ReasonRule>(pageNo, pageSize);
+		IPage<ReasonRule> pageList = reasonRuleService.page(page, queryWrapper);
+		return Result.OK(pageList);
+	}
+
+	/**
+	 *   添加
+	 *
+	 * @param reasonRule
+	 * @return
+	 */
+	@AutoLog(value = "reason_rule-添加")
+	@RequiresPermissions("lg:reason_rule:add")
+	@PostMapping(value = "/add")
+	public Result<String> add(@RequestBody ReasonRule reasonRule) {
+		reasonRuleService.save(reasonRule);
+
+		return Result.OK("添加成功!");
+	}
+
+	/**
+	 *  编辑
+	 *
+	 * @param reasonRule
+	 * @return
+	 */
+	@AutoLog(value = "reason_rule-编辑")
+	@RequiresPermissions("lg:reason_rule:edit")
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+	public Result<String> edit(@RequestBody ReasonRule reasonRule) {
+		reasonRuleService.updateById(reasonRule);
+		return Result.OK("编辑成功!");
+	}
+
+	/**
+	 *   通过id删除
+	 *
+	 * @param id
+	 * @return
+	 */
+	@AutoLog(value = "reason_rule-通过id删除")
+	@RequiresPermissions("lg:reason_rule:delete")
+	@DeleteMapping(value = "/delete")
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
+		reasonRuleService.removeById(id);
+		return Result.OK("删除成功!");
+	}
+
+	/**
+	 *  批量删除
+	 *
+	 * @param ids
+	 * @return
+	 */
+	@AutoLog(value = "reason_rule-批量删除")
+	@RequiresPermissions("lg:reason_rule:deleteBatch")
+	@DeleteMapping(value = "/deleteBatch")
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+		this.reasonRuleService.removeByIds(Arrays.asList(ids.split(",")));
+		return Result.OK("批量删除成功!");
+	}
+
+	/**
+	 * 通过id查询
+	 *
+	 * @param id
+	 * @return
+	 */
+	//@AutoLog(value = "reason_rule-通过id查询")
+	@GetMapping(value = "/queryById")
+	public Result<ReasonRule> queryById(@RequestParam(name="id",required=true) String id) {
+		ReasonRule reasonRule = reasonRuleService.getById(id);
+		if(reasonRule==null) {
+			return Result.error("未找到对应数据");
+		}
+		return Result.OK(reasonRule);
+	}
+
+    /**
+    * 导出excel
+    *
+    * @param request
+    * @param reasonRule
+    */
+    @RequiresPermissions("lg:reason_rule:exportXls")
+    @RequestMapping(value = "/exportXls")
+    public ModelAndView exportXls(HttpServletRequest request, ReasonRule reasonRule) {
+        return super.exportXls(request, reasonRule, ReasonRule.class, "reason_rule");
+    }
+
+    /**
+      * 通过excel导入数据
+    *
+    * @param request
+    * @param response
+    * @return
+    */
+    @RequiresPermissions("lg:reason_rule:importExcel")
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
+        return super.importExcel(request, response, ReasonRule.class);
+    }
+
+}

+ 46 - 0
lg-code/src/main/java/org.jeecg.lg/ReasonRule/entity/ReasonRule.java

@@ -0,0 +1,46 @@
+package org.jeecg.lg.ReasonRule.entity;
+
+import java.io.Serializable;
+import java.io.UnsupportedEncodingException;
+import java.util.Date;
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import org.jeecg.common.constant.ProvinceCityArea;
+import org.jeecg.common.util.SpringContextUtils;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.jeecg.common.aspect.annotation.Dict;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @Description: reason_rule
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+@Data
+@TableName("lg_reason_rule")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+public class ReasonRule implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+	/**主键*/
+	@TableId(type = IdType.ASSIGN_ID)
+    private String id;
+	/**comment1*/
+	@Excel(name = "comment1", width = 15)
+    private String comment1;
+	/**comment2*/
+	@Excel(name = "comment2", width = 15)
+    private String comment2;
+	/**remark*/
+	@Excel(name = "remark", width = 15)
+    private String remark;
+}

+ 17 - 0
lg-code/src/main/java/org.jeecg.lg/ReasonRule/mapper/ReasonRuleMapper.java

@@ -0,0 +1,17 @@
+package org.jeecg.lg.ReasonRule.mapper;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.jeecg.lg.ReasonRule.entity.ReasonRule;
+
+/**
+ * @Description: reason_rule
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+public interface ReasonRuleMapper extends BaseMapper<ReasonRule> {
+
+}

+ 5 - 0
lg-code/src/main/java/org.jeecg.lg/ReasonRule/mapper/xml/ReasonRuleMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="org.jeecg.modules.demo.lg.mapper.ReasonRuleMapper">
+
+</mapper>

+ 14 - 0
lg-code/src/main/java/org.jeecg.lg/ReasonRule/service/IReasonRuleService.java

@@ -0,0 +1,14 @@
+package org.jeecg.lg.ReasonRule.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.jeecg.lg.ReasonRule.entity.ReasonRule;
+
+/**
+ * @Description: reason_rule
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+public interface IReasonRuleService extends IService<ReasonRule> {
+
+}

+ 20 - 0
lg-code/src/main/java/org.jeecg.lg/ReasonRule/service/impl/ReasonRuleServiceImpl.java

@@ -0,0 +1,20 @@
+package org.jeecg.lg.ReasonRule.service.impl;
+
+
+import org.jeecg.lg.ReasonRule.entity.ReasonRule;
+import org.jeecg.lg.ReasonRule.mapper.ReasonRuleMapper;
+import org.jeecg.lg.ReasonRule.service.IReasonRuleService;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ * @Description: reason_rule
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+@Service
+public class ReasonRuleServiceImpl extends ServiceImpl<ReasonRuleMapper, ReasonRule> implements IReasonRuleService {
+
+}

+ 175 - 0
lg-code/src/main/java/org.jeecg.lg/RegionRule/controller/RegionRuleController.java

@@ -0,0 +1,175 @@
+package org.jeecg.lg.RegionRule.controller;
+
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.system.query.QueryRuleEnum;
+import org.jeecg.common.util.oConvertUtils;
+
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecg.lg.RegionRule.entity.RegionRule;
+import org.jeecg.lg.RegionRule.service.IRegionRuleService;
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+ /**
+ * @Description: 国别基准
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+@RestController
+@RequestMapping("/lg/regionRule")
+@Slf4j
+public class RegionRuleController extends JeecgController<RegionRule, IRegionRuleService> {
+	@Autowired
+	private IRegionRuleService regionRuleService;
+
+	/**
+	 * 分页列表查询
+	 *
+	 * @param regionRule
+	 * @param pageNo
+	 * @param pageSize
+	 * @param req
+	 * @return
+	 */
+	//@AutoLog(value = "国别基准-分页列表查询")
+	@GetMapping(value = "/list")
+	public Result<IPage<RegionRule>> queryPageList(RegionRule regionRule,
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+								   HttpServletRequest req) {
+
+
+        QueryWrapper<RegionRule> queryWrapper = QueryGenerator.initQueryWrapper(regionRule, req.getParameterMap());
+		Page<RegionRule> page = new Page<RegionRule>(pageNo, pageSize);
+		IPage<RegionRule> pageList = regionRuleService.page(page, queryWrapper);
+		return Result.OK(pageList);
+	}
+
+	/**
+	 *   添加
+	 *
+	 * @param regionRule
+	 * @return
+	 */
+	@AutoLog(value = "国别基准-添加")
+	@RequiresPermissions("lg:region_rule:add")
+	@PostMapping(value = "/add")
+	public Result<String> add(@RequestBody RegionRule regionRule) {
+		regionRuleService.save(regionRule);
+
+		return Result.OK("添加成功!");
+	}
+
+	/**
+	 *  编辑
+	 *
+	 * @param regionRule
+	 * @return
+	 */
+	@AutoLog(value = "国别基准-编辑")
+	@RequiresPermissions("lg:region_rule:edit")
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+	public Result<String> edit(@RequestBody RegionRule regionRule) {
+		regionRuleService.updateById(regionRule);
+		return Result.OK("编辑成功!");
+	}
+
+	/**
+	 *   通过id删除
+	 *
+	 * @param id
+	 * @return
+	 */
+	@AutoLog(value = "国别基准-通过id删除")
+	@RequiresPermissions("lg:region_rule:delete")
+	@DeleteMapping(value = "/delete")
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
+		regionRuleService.removeById(id);
+		return Result.OK("删除成功!");
+	}
+
+	/**
+	 *  批量删除
+	 *
+	 * @param ids
+	 * @return
+	 */
+	@AutoLog(value = "国别基准-批量删除")
+	@RequiresPermissions("lg:region_rule:deleteBatch")
+	@DeleteMapping(value = "/deleteBatch")
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+		this.regionRuleService.removeByIds(Arrays.asList(ids.split(",")));
+		return Result.OK("批量删除成功!");
+	}
+
+	/**
+	 * 通过id查询
+	 *
+	 * @param id
+	 * @return
+	 */
+	//@AutoLog(value = "国别基准-通过id查询")
+	@GetMapping(value = "/queryById")
+	public Result<RegionRule> queryById(@RequestParam(name="id",required=true) String id) {
+		RegionRule regionRule = regionRuleService.getById(id);
+		if(regionRule==null) {
+			return Result.error("未找到对应数据");
+		}
+		return Result.OK(regionRule);
+	}
+
+    /**
+    * 导出excel
+    *
+    * @param request
+    * @param regionRule
+    */
+    @RequiresPermissions("lg:region_rule:exportXls")
+    @RequestMapping(value = "/exportXls")
+    public ModelAndView exportXls(HttpServletRequest request, RegionRule regionRule) {
+        return super.exportXls(request, regionRule, RegionRule.class, "国别基准");
+    }
+
+    /**
+      * 通过excel导入数据
+    *
+    * @param request
+    * @param response
+    * @return
+    */
+    @RequiresPermissions("lg:region_rule:importExcel")
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
+        return super.importExcel(request, response, RegionRule.class);
+    }
+
+}

+ 70 - 0
lg-code/src/main/java/org.jeecg.lg/RegionRule/entity/RegionRule.java

@@ -0,0 +1,70 @@
+package org.jeecg.lg.RegionRule.entity;
+
+import java.io.Serializable;
+import java.io.UnsupportedEncodingException;
+import java.util.Date;
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import org.jeecg.common.constant.ProvinceCityArea;
+import org.jeecg.common.util.SpringContextUtils;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.jeecg.common.aspect.annotation.Dict;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @Description: 国别基准
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+@Data
+@TableName("lg_region_rule")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+public class RegionRule implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+	/**主键*/
+	@TableId(type = IdType.ASSIGN_ID)
+    private String id;
+	/**region*/
+	@Excel(name = "region", width = 15)
+    private String region;
+	/**suffix*/
+	@Excel(name = "suffix", width = 15)
+    private String suffix;
+	/**last_mon*/
+	@Excel(name = "last_mon", width = 15)
+    private String lastMon;
+	/**last_tue*/
+	@Excel(name = "last_tue", width = 15)
+    private String lastTue;
+	/**last_wed*/
+	@Excel(name = "last_wed", width = 15)
+    private String lastWed;
+	/**last_thu*/
+	@Excel(name = "last_thu", width = 15)
+    private String lastThu;
+	/**last_fri*/
+	@Excel(name = "last_fri", width = 15)
+    private String lastFri;
+	/**mon*/
+	@Excel(name = "mon", width = 15)
+    private String mon;
+	/**tue*/
+	@Excel(name = "tue", width = 15)
+    private String tue;
+	/**thu*/
+	@Excel(name = "thu", width = 15)
+    private String thu;
+	/**fri*/
+	@Excel(name = "fri", width = 15)
+    private String fri;
+}

+ 17 - 0
lg-code/src/main/java/org.jeecg.lg/RegionRule/mapper/RegionRuleMapper.java

@@ -0,0 +1,17 @@
+package org.jeecg.lg.RegionRule.mapper;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.jeecg.lg.RegionRule.entity.RegionRule;
+
+/**
+ * @Description: 国别基准
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+public interface RegionRuleMapper extends BaseMapper<RegionRule> {
+
+}

+ 5 - 0
lg-code/src/main/java/org.jeecg.lg/RegionRule/mapper/xml/RegionRuleMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="org.jeecg.modules.demo.lg.mapper.RegionRuleMapper">
+
+</mapper>

+ 14 - 0
lg-code/src/main/java/org.jeecg.lg/RegionRule/service/IRegionRuleService.java

@@ -0,0 +1,14 @@
+package org.jeecg.lg.RegionRule.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.jeecg.lg.RegionRule.entity.RegionRule;
+
+/**
+ * @Description: 国别基准
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+public interface IRegionRuleService extends IService<RegionRule> {
+
+}

+ 20 - 0
lg-code/src/main/java/org.jeecg.lg/RegionRule/service/impl/RegionRuleServiceImpl.java

@@ -0,0 +1,20 @@
+package org.jeecg.lg.RegionRule.service.impl;
+
+
+import org.jeecg.lg.RegionRule.entity.RegionRule;
+import org.jeecg.lg.RegionRule.mapper.RegionRuleMapper;
+import org.jeecg.lg.RegionRule.service.IRegionRuleService;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ * @Description: 国别基准
+ * @Author: jeecg-boot
+ * @Date:   2025-05-22
+ * @Version: V1.0
+ */
+@Service
+public class RegionRuleServiceImpl extends ServiceImpl<RegionRuleMapper, RegionRule> implements IRegionRuleService {
+
+}