需求修改
This commit is contained in:
parent
3dd5d37076
commit
84bc894668
@ -19,10 +19,11 @@ import com.zhyc.common.enums.BusinessType;
|
|||||||
import com.zhyc.module.dairyProducts.domain.XzParityCorrection;
|
import com.zhyc.module.dairyProducts.domain.XzParityCorrection;
|
||||||
import com.zhyc.module.dairyProducts.service.IXzParityCorrectionService;
|
import com.zhyc.module.dairyProducts.service.IXzParityCorrectionService;
|
||||||
import com.zhyc.common.utils.poi.ExcelUtil;
|
import com.zhyc.common.utils.poi.ExcelUtil;
|
||||||
|
import com.zhyc.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 胎次校正Controller
|
* 胎次校正Controller
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-08-24
|
* @date 2025-08-24
|
||||||
*/
|
*/
|
||||||
@ -95,7 +96,7 @@ public class XzParityCorrectionController extends BaseController
|
|||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('parityCorrection:parityCorrection:remove')")
|
@PreAuthorize("@ss.hasPermi('parityCorrection:parityCorrection:remove')")
|
||||||
@Log(title = "胎次校正", businessType = BusinessType.DELETE)
|
@Log(title = "胎次校正", businessType = BusinessType.DELETE)
|
||||||
@DeleteMapping("/{ids}")
|
@DeleteMapping("/{ids}")
|
||||||
public AjaxResult remove(@PathVariable Long[] ids)
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
{
|
{
|
||||||
return toAjax(xzParityCorrectionService.deleteXzParityCorrectionByIds(ids));
|
return toAjax(xzParityCorrectionService.deleteXzParityCorrectionByIds(ids));
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import com.zhyc.common.core.domain.BaseEntity;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 胎次校正对象 xz_parity_correction
|
* 胎次校正对象 xz_parity_correction
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-08-24
|
* @date 2025-08-24
|
||||||
*/
|
*/
|
||||||
@ -26,4 +26,42 @@ public class XzParityCorrection extends BaseEntity
|
|||||||
@Excel(name = "系数")
|
@Excel(name = "系数")
|
||||||
private Double coef;
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,15 +5,15 @@ import com.zhyc.module.dairyProducts.domain.XzParityCorrection;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 胎次校正Mapper接口
|
* 胎次校正Mapper接口
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-08-24
|
* @date 2025-08-24
|
||||||
*/
|
*/
|
||||||
public interface XzParityCorrectionMapper
|
public interface XzParityCorrectionMapper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 查询胎次校正
|
* 查询胎次校正
|
||||||
*
|
*
|
||||||
* @param id 胎次校正主键
|
* @param id 胎次校正主键
|
||||||
* @return 胎次校正
|
* @return 胎次校正
|
||||||
*/
|
*/
|
||||||
@ -21,7 +21,7 @@ public interface XzParityCorrectionMapper
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询胎次校正列表
|
* 查询胎次校正列表
|
||||||
*
|
*
|
||||||
* @param xzParityCorrection 胎次校正
|
* @param xzParityCorrection 胎次校正
|
||||||
* @return 胎次校正集合
|
* @return 胎次校正集合
|
||||||
*/
|
*/
|
||||||
@ -29,7 +29,7 @@ public interface XzParityCorrectionMapper
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增胎次校正
|
* 新增胎次校正
|
||||||
*
|
*
|
||||||
* @param xzParityCorrection 胎次校正
|
* @param xzParityCorrection 胎次校正
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@ -37,7 +37,7 @@ public interface XzParityCorrectionMapper
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改胎次校正
|
* 修改胎次校正
|
||||||
*
|
*
|
||||||
* @param xzParityCorrection 胎次校正
|
* @param xzParityCorrection 胎次校正
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@ -45,7 +45,7 @@ public interface XzParityCorrectionMapper
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除胎次校正
|
* 删除胎次校正
|
||||||
*
|
*
|
||||||
* @param id 胎次校正主键
|
* @param id 胎次校正主键
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@ -53,7 +53,7 @@ public interface XzParityCorrectionMapper
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除胎次校正
|
* 批量删除胎次校正
|
||||||
*
|
*
|
||||||
* @param ids 需要删除的数据主键集合
|
* @param ids 需要删除的数据主键集合
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -5,15 +5,15 @@ import com.zhyc.module.dairyProducts.domain.XzParityCorrection;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 胎次校正Service接口
|
* 胎次校正Service接口
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-08-24
|
* @date 2025-08-24
|
||||||
*/
|
*/
|
||||||
public interface IXzParityCorrectionService
|
public interface IXzParityCorrectionService
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* 查询胎次校正
|
* 查询胎次校正
|
||||||
*
|
*
|
||||||
* @param id 胎次校正主键
|
* @param id 胎次校正主键
|
||||||
* @return 胎次校正
|
* @return 胎次校正
|
||||||
*/
|
*/
|
||||||
@ -21,7 +21,7 @@ public interface IXzParityCorrectionService
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询胎次校正列表
|
* 查询胎次校正列表
|
||||||
*
|
*
|
||||||
* @param xzParityCorrection 胎次校正
|
* @param xzParityCorrection 胎次校正
|
||||||
* @return 胎次校正集合
|
* @return 胎次校正集合
|
||||||
*/
|
*/
|
||||||
@ -29,7 +29,7 @@ public interface IXzParityCorrectionService
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增胎次校正
|
* 新增胎次校正
|
||||||
*
|
*
|
||||||
* @param xzParityCorrection 胎次校正
|
* @param xzParityCorrection 胎次校正
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@ -37,7 +37,7 @@ public interface IXzParityCorrectionService
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改胎次校正
|
* 修改胎次校正
|
||||||
*
|
*
|
||||||
* @param xzParityCorrection 胎次校正
|
* @param xzParityCorrection 胎次校正
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@ -45,7 +45,7 @@ public interface IXzParityCorrectionService
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除胎次校正
|
* 批量删除胎次校正
|
||||||
*
|
*
|
||||||
* @param ids 需要删除的胎次校正主键集合
|
* @param ids 需要删除的胎次校正主键集合
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@ -53,7 +53,7 @@ public interface IXzParityCorrectionService
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除胎次校正信息
|
* 删除胎次校正信息
|
||||||
*
|
*
|
||||||
* @param id 胎次校正主键
|
* @param id 胎次校正主键
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -9,19 +9,19 @@ import com.zhyc.module.dairyProducts.service.IXzParityCorrectionService;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 胎次校正Service业务层处理
|
* 胎次校正Service业务层处理
|
||||||
*
|
*
|
||||||
* @author ruoyi
|
* @author ruoyi
|
||||||
* @date 2025-08-24
|
* @date 2025-08-24
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public class XzParityCorrectionServiceImpl implements IXzParityCorrectionService
|
public class XzParityCorrectionServiceImpl implements IXzParityCorrectionService
|
||||||
{
|
{
|
||||||
@Autowired
|
@Autowired
|
||||||
private XzParityCorrectionMapper xzParityCorrectionMapper;
|
private XzParityCorrectionMapper xzParityCorrectionMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询胎次校正
|
* 查询胎次校正
|
||||||
*
|
*
|
||||||
* @param id 胎次校正主键
|
* @param id 胎次校正主键
|
||||||
* @return 胎次校正
|
* @return 胎次校正
|
||||||
*/
|
*/
|
||||||
@ -33,7 +33,7 @@ public class XzParityCorrectionServiceImpl implements IXzParityCorrectionService
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询胎次校正列表
|
* 查询胎次校正列表
|
||||||
*
|
*
|
||||||
* @param xzParityCorrection 胎次校正
|
* @param xzParityCorrection 胎次校正
|
||||||
* @return 胎次校正
|
* @return 胎次校正
|
||||||
*/
|
*/
|
||||||
@ -45,7 +45,7 @@ public class XzParityCorrectionServiceImpl implements IXzParityCorrectionService
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增胎次校正
|
* 新增胎次校正
|
||||||
*
|
*
|
||||||
* @param xzParityCorrection 胎次校正
|
* @param xzParityCorrection 胎次校正
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@ -57,7 +57,7 @@ public class XzParityCorrectionServiceImpl implements IXzParityCorrectionService
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改胎次校正
|
* 修改胎次校正
|
||||||
*
|
*
|
||||||
* @param xzParityCorrection 胎次校正
|
* @param xzParityCorrection 胎次校正
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@ -69,7 +69,7 @@ public class XzParityCorrectionServiceImpl implements IXzParityCorrectionService
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除胎次校正
|
* 批量删除胎次校正
|
||||||
*
|
*
|
||||||
* @param ids 需要删除的胎次校正主键
|
* @param ids 需要删除的胎次校正主键
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
@ -81,7 +81,7 @@ public class XzParityCorrectionServiceImpl implements IXzParityCorrectionService
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除胎次校正信息
|
* 删除胎次校正信息
|
||||||
*
|
*
|
||||||
* @param id 胎次校正主键
|
* @param id 胎次校正主键
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<!DOCTYPE mapper
|
<!DOCTYPE mapper
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.zhyc.module.dairyProducts.mapper.XzParityCorrectionMapper">
|
<mapper namespace="com.zhyc.module.dairyProducts.mapper.XzParityCorrectionMapper">
|
||||||
|
|
||||||
<resultMap type="XzParityCorrection" id="XzParityCorrectionResult">
|
<resultMap type="XzParityCorrection" id="XzParityCorrectionResult">
|
||||||
<result property="id" column="id" />
|
<result property="id" column="id" />
|
||||||
<result property="parity" column="parity" />
|
<result property="parity" column="parity" />
|
||||||
@ -16,12 +16,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="selectXzParityCorrectionList" parameterType="XzParityCorrection" resultMap="XzParityCorrectionResult">
|
<select id="selectXzParityCorrectionList" parameterType="XzParityCorrection" resultMap="XzParityCorrectionResult">
|
||||||
<include refid="selectXzParityCorrectionVo"/>
|
<include refid="selectXzParityCorrectionVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="parity != null "> and parity = #{parity}</if>
|
<if test="parity != null "> and parity = #{parity}</if>
|
||||||
<if test="coef != null "> and coef = #{coef}</if>
|
<if test="coef != null "> and coef = #{coef}</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectXzParityCorrectionById" parameterType="Long" resultMap="XzParityCorrectionResult">
|
<select id="selectXzParityCorrectionById" parameterType="Long" resultMap="XzParityCorrectionResult">
|
||||||
<include refid="selectXzParityCorrectionVo"/>
|
<include refid="selectXzParityCorrectionVo"/>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
@ -32,11 +32,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="parity != null">parity,</if>
|
<if test="parity != null">parity,</if>
|
||||||
<if test="coef != null">coef,</if>
|
<if test="coef != null">coef,</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="parity != null">#{parity},</if>
|
<if test="parity != null">#{parity},</if>
|
||||||
<if test="coef != null">#{coef},</if>
|
<if test="coef != null">#{coef},</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateXzParityCorrection" parameterType="XzParityCorrection">
|
<update id="updateXzParityCorrection" parameterType="XzParityCorrection">
|
||||||
@ -53,7 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<delete id="deleteXzParityCorrectionByIds" parameterType="String">
|
<delete id="deleteXzParityCorrectionByIds" parameterType="String">
|
||||||
delete from xz_parity_correction where id in
|
delete from xz_parity_correction where id in
|
||||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
#{id}
|
#{id}
|
||||||
</foreach>
|
</foreach>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user