需求修改
This commit is contained in:
parent
3dd5d37076
commit
84bc894668
@ -19,6 +19,7 @@ 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
|
||||||
@ -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));
|
||||||
|
|||||||
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<?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">
|
||||||
@ -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">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user