需求修改
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.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));
|
||||
|
||||
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@ -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 结果
|
||||
*/
|
||||
|
||||
@ -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 结果
|
||||
*/
|
||||
|
||||
@ -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 结果
|
||||
*/
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
<?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">
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zhyc.module.dairyProducts.mapper.XzParityCorrectionMapper">
|
||||
|
||||
|
||||
<resultMap type="XzParityCorrection" id="XzParityCorrectionResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="parity" column="parity" />
|
||||
@ -16,12 +16,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="selectXzParityCorrectionList" parameterType="XzParityCorrection" resultMap="XzParityCorrectionResult">
|
||||
<include refid="selectXzParityCorrectionVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="parity != null "> and parity = #{parity}</if>
|
||||
<if test="coef != null "> and coef = #{coef}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectXzParityCorrectionById" parameterType="Long" resultMap="XzParityCorrectionResult">
|
||||
<include refid="selectXzParityCorrectionVo"/>
|
||||
where id = #{id}
|
||||
@ -32,11 +32,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="parity != null">parity,</if>
|
||||
<if test="coef != null">coef,</if>
|
||||
</trim>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="parity != null">#{parity},</if>
|
||||
<if test="coef != null">#{coef},</if>
|
||||
</trim>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateXzParityCorrection" parameterType="XzParityCorrection">
|
||||
@ -53,7 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<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=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user