From 84bc8946685f7f7242a17381a4ae4453c02c40e2 Mon Sep 17 00:00:00 2001 From: ll <1079863556@qq.com> Date: Mon, 25 Aug 2025 17:01:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9C=80=E6=B1=82=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../XzParityCorrectionController.java | 5 ++- .../domain/XzParityCorrection.java | 40 ++++++++++++++++++- .../mapper/XzParityCorrectionMapper.java | 16 ++++---- .../service/IXzParityCorrectionService.java | 16 ++++---- .../impl/XzParityCorrectionServiceImpl.java | 16 ++++---- .../XzParityCorrectionMapper.xml | 16 ++++---- 6 files changed, 74 insertions(+), 35 deletions(-) diff --git a/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/controller/XzParityCorrectionController.java b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/controller/XzParityCorrectionController.java index 6b6ea52..db13670 100644 --- a/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/controller/XzParityCorrectionController.java +++ b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/controller/XzParityCorrectionController.java @@ -19,10 +19,11 @@ import com.zhyc.common.enums.BusinessType; import com.zhyc.module.dairyProducts.domain.XzParityCorrection; import com.zhyc.module.dairyProducts.service.IXzParityCorrectionService; import com.zhyc.common.utils.poi.ExcelUtil; +import com.zhyc.common.core.page.TableDataInfo; /** * 胎次校正Controller - * + * * @author ruoyi * @date 2025-08-24 */ @@ -95,7 +96,7 @@ public class XzParityCorrectionController extends BaseController */ @PreAuthorize("@ss.hasPermi('parityCorrection:parityCorrection:remove')") @Log(title = "胎次校正", businessType = BusinessType.DELETE) - @DeleteMapping("/{ids}") + @DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(xzParityCorrectionService.deleteXzParityCorrectionByIds(ids)); diff --git a/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/domain/XzParityCorrection.java b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/domain/XzParityCorrection.java index 9b6b3d1..9c14456 100644 --- a/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/domain/XzParityCorrection.java +++ b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/domain/XzParityCorrection.java @@ -7,7 +7,7 @@ import com.zhyc.common.core.domain.BaseEntity; /** * 胎次校正对象 xz_parity_correction - * + * * @author ruoyi * @date 2025-08-24 */ @@ -26,4 +26,42 @@ public class XzParityCorrection extends BaseEntity @Excel(name = "系数") private Double coef; + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + + public void setParity(Integer parity) + { + this.parity = parity; + } + + public Integer getParity() + { + return parity; + } + + public void setCoef(Double coef) + { + this.coef = coef; + } + + public Double getCoef() + { + return coef; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("parity", getParity()) + .append("coef", getCoef()) + .toString(); + } } diff --git a/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/mapper/XzParityCorrectionMapper.java b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/mapper/XzParityCorrectionMapper.java index f6d1f12..3d9cf45 100644 --- a/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/mapper/XzParityCorrectionMapper.java +++ b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/mapper/XzParityCorrectionMapper.java @@ -5,15 +5,15 @@ import com.zhyc.module.dairyProducts.domain.XzParityCorrection; /** * 胎次校正Mapper接口 - * + * * @author ruoyi * @date 2025-08-24 */ -public interface XzParityCorrectionMapper +public interface XzParityCorrectionMapper { /** * 查询胎次校正 - * + * * @param id 胎次校正主键 * @return 胎次校正 */ @@ -21,7 +21,7 @@ public interface XzParityCorrectionMapper /** * 查询胎次校正列表 - * + * * @param xzParityCorrection 胎次校正 * @return 胎次校正集合 */ @@ -29,7 +29,7 @@ public interface XzParityCorrectionMapper /** * 新增胎次校正 - * + * * @param xzParityCorrection 胎次校正 * @return 结果 */ @@ -37,7 +37,7 @@ public interface XzParityCorrectionMapper /** * 修改胎次校正 - * + * * @param xzParityCorrection 胎次校正 * @return 结果 */ @@ -45,7 +45,7 @@ public interface XzParityCorrectionMapper /** * 删除胎次校正 - * + * * @param id 胎次校正主键 * @return 结果 */ @@ -53,7 +53,7 @@ public interface XzParityCorrectionMapper /** * 批量删除胎次校正 - * + * * @param ids 需要删除的数据主键集合 * @return 结果 */ diff --git a/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/service/IXzParityCorrectionService.java b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/service/IXzParityCorrectionService.java index f7acf95..8246bdd 100644 --- a/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/service/IXzParityCorrectionService.java +++ b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/service/IXzParityCorrectionService.java @@ -5,15 +5,15 @@ import com.zhyc.module.dairyProducts.domain.XzParityCorrection; /** * 胎次校正Service接口 - * + * * @author ruoyi * @date 2025-08-24 */ -public interface IXzParityCorrectionService +public interface IXzParityCorrectionService { /** * 查询胎次校正 - * + * * @param id 胎次校正主键 * @return 胎次校正 */ @@ -21,7 +21,7 @@ public interface IXzParityCorrectionService /** * 查询胎次校正列表 - * + * * @param xzParityCorrection 胎次校正 * @return 胎次校正集合 */ @@ -29,7 +29,7 @@ public interface IXzParityCorrectionService /** * 新增胎次校正 - * + * * @param xzParityCorrection 胎次校正 * @return 结果 */ @@ -37,7 +37,7 @@ public interface IXzParityCorrectionService /** * 修改胎次校正 - * + * * @param xzParityCorrection 胎次校正 * @return 结果 */ @@ -45,7 +45,7 @@ public interface IXzParityCorrectionService /** * 批量删除胎次校正 - * + * * @param ids 需要删除的胎次校正主键集合 * @return 结果 */ @@ -53,7 +53,7 @@ public interface IXzParityCorrectionService /** * 删除胎次校正信息 - * + * * @param id 胎次校正主键 * @return 结果 */ diff --git a/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/service/impl/XzParityCorrectionServiceImpl.java b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/service/impl/XzParityCorrectionServiceImpl.java index 40f4d3f..caff850 100644 --- a/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/service/impl/XzParityCorrectionServiceImpl.java +++ b/zhyc-module/src/main/java/com/zhyc/module/dairyProducts/service/impl/XzParityCorrectionServiceImpl.java @@ -9,19 +9,19 @@ import com.zhyc.module.dairyProducts.service.IXzParityCorrectionService; /** * 胎次校正Service业务层处理 - * + * * @author ruoyi * @date 2025-08-24 */ @Service -public class XzParityCorrectionServiceImpl implements IXzParityCorrectionService +public class XzParityCorrectionServiceImpl implements IXzParityCorrectionService { @Autowired private XzParityCorrectionMapper xzParityCorrectionMapper; /** * 查询胎次校正 - * + * * @param id 胎次校正主键 * @return 胎次校正 */ @@ -33,7 +33,7 @@ public class XzParityCorrectionServiceImpl implements IXzParityCorrectionService /** * 查询胎次校正列表 - * + * * @param xzParityCorrection 胎次校正 * @return 胎次校正 */ @@ -45,7 +45,7 @@ public class XzParityCorrectionServiceImpl implements IXzParityCorrectionService /** * 新增胎次校正 - * + * * @param xzParityCorrection 胎次校正 * @return 结果 */ @@ -57,7 +57,7 @@ public class XzParityCorrectionServiceImpl implements IXzParityCorrectionService /** * 修改胎次校正 - * + * * @param xzParityCorrection 胎次校正 * @return 结果 */ @@ -69,7 +69,7 @@ public class XzParityCorrectionServiceImpl implements IXzParityCorrectionService /** * 批量删除胎次校正 - * + * * @param ids 需要删除的胎次校正主键 * @return 结果 */ @@ -81,7 +81,7 @@ public class XzParityCorrectionServiceImpl implements IXzParityCorrectionService /** * 删除胎次校正信息 - * + * * @param id 胎次校正主键 * @return 结果 */ diff --git a/zhyc-module/src/main/resources/mapper/dairyProducts/XzParityCorrectionMapper.xml b/zhyc-module/src/main/resources/mapper/dairyProducts/XzParityCorrectionMapper.xml index 9cf78ff..c9101f6 100644 --- a/zhyc-module/src/main/resources/mapper/dairyProducts/XzParityCorrectionMapper.xml +++ b/zhyc-module/src/main/resources/mapper/dairyProducts/XzParityCorrectionMapper.xml @@ -1,9 +1,9 @@ + PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -16,12 +16,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - +