first commit

This commit is contained in:
2025-09-03 12:14:11 +08:00
parent 4a5b0e6079
commit 2bad660d1e
328 changed files with 3352 additions and 26132 deletions

View File

@@ -0,0 +1,313 @@
package com.ruoyi.system.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 承包用户信息——存储承包用户详细信息对象 contract_user
*
* @author ruoyi
* @date 2025-08-31
*/
public class ContractUser extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 用户唯一标识 ID关联土地基础信息表的 current_user_id */
private Long id;
/** 承包用户姓名(个人 / 企业名称,企业标注 “(企业)”) */
@Excel(name = "承包用户姓名", readConverterExp = "个=人,/=,企=业名称,企业标注,“=(企业")
private String userName;
/** 身份证号(个人)/ 统一社会信用代码(企业) */
@Excel(name = "身份证号", readConverterExp = "个=人")
private String idCard;
/** 联系电话(多个用逗号分隔) */
@Excel(name = "联系电话", readConverterExp = "多=个用逗号分隔")
private String phone;
/** 用户常住地址(非土地地址) */
@Excel(name = "用户常住地址", readConverterExp = "非=土地地址")
private String address;
/** 用户类型(个人、合作社、企业) */
@Excel(name = "用户类型", readConverterExp = "个=人、合作社、企业")
private String userType;
/** 合同编号(自定义规则:如 “地区码 + 年份 + 用户 ID + 序号”) */
@Excel(name = "合同编号", readConverterExp = "自=定义规则:如,“=地区码,+=,年=份,+=,用=户,I=D,+=,序=号”")
private String contractCode;
/** 合同签订时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "合同签订时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date contractSignDate;
/** 合同期限(单位:年) */
@Excel(name = "合同期限", readConverterExp = "单=位:年")
private Long contractTerm;
/** 新合同约定面积(亩,当前承包面积) */
@Excel(name = "新合同约定面积", readConverterExp = "亩=,当前承包面积")
private BigDecimal newContractArea;
/** 原合同面积(亩,上一周期承包面积,无则填 0 */
@Excel(name = "原合同面积", readConverterExp = "亩=,上一周期承包面积,无则填,0=")
private BigDecimal oldContractArea;
/** 专业测绘实际面积(亩,用于核对合同面积) */
@Excel(name = "专业测绘实际面积", readConverterExp = "亩=,用于核对合同面积")
private BigDecimal surveyArea;
/** 亩上交标准(元 / 亩,按当地政策或协商确定) */
@Excel(name = "亩上交标准", readConverterExp = "元=,/=,亩=,按当地政策或协商确定")
private BigDecimal muFeeStandard;
/** 每年度上交承包费(元,= 新合同面积 × 亩上交标准,系统可自动计算) */
@Excel(name = "每年度上交承包费", readConverterExp = "元==,新=合同面积,×=,亩=上交标准,系统可自动计算")
private BigDecimal annualContractFee;
/** 当前承包土地数量(块) */
@Excel(name = "当前承包土地数量", readConverterExp = "块=")
private Long contractCount;
/** 合同备注(如面积差异说明、缴费特殊约定等) */
@Excel(name = "合同备注", readConverterExp = "如=面积差异说明、缴费特殊约定等")
private String contractRemark;
/** 用户备注(如信用情况、是否长期承包) */
@Excel(name = "用户备注", readConverterExp = "如=信用情况、是否长期承包")
private String userRemark;
/** 预留字段 1如 “银行账号”,用于承包费结算) */
@Excel(name = "预留字段 1", readConverterExp = "如=,“=银行账号”,用于承包费结算")
private String reserve1;
/** 预留字段 2如 “合同备案编号”,对接政府备案系统) */
@Excel(name = "预留字段 2", readConverterExp = "如=,“=合同备案编号”,对接政府备案系统")
private String reserve2;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setUserName(String userName)
{
this.userName = userName;
}
public String getUserName()
{
return userName;
}
public void setIdCard(String idCard)
{
this.idCard = idCard;
}
public String getIdCard()
{
return idCard;
}
public void setPhone(String phone)
{
this.phone = phone;
}
public String getPhone()
{
return phone;
}
public void setAddress(String address)
{
this.address = address;
}
public String getAddress()
{
return address;
}
public void setUserType(String userType)
{
this.userType = userType;
}
public String getUserType()
{
return userType;
}
public void setContractCode(String contractCode)
{
this.contractCode = contractCode;
}
public String getContractCode()
{
return contractCode;
}
public void setContractSignDate(Date contractSignDate)
{
this.contractSignDate = contractSignDate;
}
public Date getContractSignDate()
{
return contractSignDate;
}
public void setContractTerm(Long contractTerm)
{
this.contractTerm = contractTerm;
}
public Long getContractTerm()
{
return contractTerm;
}
public void setNewContractArea(BigDecimal newContractArea)
{
this.newContractArea = newContractArea;
}
public BigDecimal getNewContractArea()
{
return newContractArea;
}
public void setOldContractArea(BigDecimal oldContractArea)
{
this.oldContractArea = oldContractArea;
}
public BigDecimal getOldContractArea()
{
return oldContractArea;
}
public void setSurveyArea(BigDecimal surveyArea)
{
this.surveyArea = surveyArea;
}
public BigDecimal getSurveyArea()
{
return surveyArea;
}
public void setMuFeeStandard(BigDecimal muFeeStandard)
{
this.muFeeStandard = muFeeStandard;
}
public BigDecimal getMuFeeStandard()
{
return muFeeStandard;
}
public void setAnnualContractFee(BigDecimal annualContractFee)
{
this.annualContractFee = annualContractFee;
}
public BigDecimal getAnnualContractFee()
{
return annualContractFee;
}
public void setContractCount(Long contractCount)
{
this.contractCount = contractCount;
}
public Long getContractCount()
{
return contractCount;
}
public void setContractRemark(String contractRemark)
{
this.contractRemark = contractRemark;
}
public String getContractRemark()
{
return contractRemark;
}
public void setUserRemark(String userRemark)
{
this.userRemark = userRemark;
}
public String getUserRemark()
{
return userRemark;
}
public void setReserve1(String reserve1)
{
this.reserve1 = reserve1;
}
public String getReserve1()
{
return reserve1;
}
public void setReserve2(String reserve2)
{
this.reserve2 = reserve2;
}
public String getReserve2()
{
return reserve2;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("userName", getUserName())
.append("idCard", getIdCard())
.append("phone", getPhone())
.append("address", getAddress())
.append("userType", getUserType())
.append("contractCode", getContractCode())
.append("contractSignDate", getContractSignDate())
.append("contractTerm", getContractTerm())
.append("newContractArea", getNewContractArea())
.append("oldContractArea", getOldContractArea())
.append("surveyArea", getSurveyArea())
.append("muFeeStandard", getMuFeeStandard())
.append("annualContractFee", getAnnualContractFee())
.append("contractCount", getContractCount())
.append("contractRemark", getContractRemark())
.append("userRemark", getUserRemark())
.append("reserve1", getReserve1())
.append("reserve2", getReserve2())
.append("createTime", getCreateTime())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@@ -0,0 +1,129 @@
package com.ruoyi.system.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 农户信息对象 farmer_info
*
* @author ruoyi
* @date 2025-09-01
*/
public class FarmerInfo extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 农户ID */
private Long id;
/** 名称 */
@Excel(name = "名称")
private String name;
/** 身份ID */
@Excel(name = "身份ID")
private String idCard;
/** 关联信息 */
@Excel(name = "关联信息")
private String contactInfo;
/** 村庄ID */
@Excel(name = "村庄ID")
private String villageId;
/** 地址 */
@Excel(name = "地址")
private String address;
/** 状态 */
@Excel(name = "状态")
private String status;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setIdCard(String idCard)
{
this.idCard = idCard;
}
public String getIdCard()
{
return idCard;
}
public void setContactInfo(String contactInfo)
{
this.contactInfo = contactInfo;
}
public String getContactInfo()
{
return contactInfo;
}
public void setVillageId(String villageId)
{
this.villageId = villageId;
}
public String getVillageId()
{
return villageId;
}
public void setAddress(String address)
{
this.address = address;
}
public String getAddress()
{
return address;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("idCard", getIdCard())
.append("contactInfo", getContactInfo())
.append("villageId", getVillageId())
.append("address", getAddress())
.append("status", getStatus())
.append("createTime", getCreateTime())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@@ -0,0 +1,129 @@
package com.ruoyi.system.domain;
import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 土地承包作物关联——存储每年土地种植的作物信息对象 land_crop
*
* @author ruoyi
* @date 2025-08-31
*/
public class LandCrop extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 作物记录唯一 ID */
private Long id;
/** 关联 “土地基础信息表” 的 id确定对应地块 */
@Excel(name = "关联 “土地基础信息表” 的 id确定对应地块")
private Long landId;
/** 作物种植年份(如 2025、2026 */
@Excel(name = "作物种植年份", readConverterExp = "如=,2=025、2026")
private Long cropYear;
/** 作物名称(可具体到品种,如 “棉花 - 新陆早 55 号”) */
@Excel(name = "作物名称", readConverterExp = "可=具体到品种,如,“=棉花,-=,新=陆早,5=5,号=”")
private String cropName;
/** 该作物种植面积(单位:亩 ,需与土地总面积匹配,可小于总面积,如套种) */
@Excel(name = "该作物种植面积", readConverterExp = "单=位:亩,=需与土地总面积匹配,可小于总面积,如套种")
private BigDecimal cropArea;
/** 该作物预估 / 实际产量(单位:公斤,可选填) */
@Excel(name = "该作物预估 / 实际产量", readConverterExp = "单=位:公斤,可选填")
private BigDecimal cropYield;
/** 作物备注(如种植方式、施肥情况) */
@Excel(name = "作物备注", readConverterExp = "如=种植方式、施肥情况")
private String cropRemark;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setLandId(Long landId)
{
this.landId = landId;
}
public Long getLandId()
{
return landId;
}
public void setCropYear(Long cropYear)
{
this.cropYear = cropYear;
}
public Long getCropYear()
{
return cropYear;
}
public void setCropName(String cropName)
{
this.cropName = cropName;
}
public String getCropName()
{
return cropName;
}
public void setCropArea(BigDecimal cropArea)
{
this.cropArea = cropArea;
}
public BigDecimal getCropArea()
{
return cropArea;
}
public void setCropYield(BigDecimal cropYield)
{
this.cropYield = cropYield;
}
public BigDecimal getCropYield()
{
return cropYield;
}
public void setCropRemark(String cropRemark)
{
this.cropRemark = cropRemark;
}
public String getCropRemark()
{
return cropRemark;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("landId", getLandId())
.append("cropYear", getCropYear())
.append("cropName", getCropName())
.append("cropArea", getCropArea())
.append("cropYield", getCropYield())
.append("cropRemark", getCropRemark())
.append("createTime", getCreateTime())
.toString();
}
}

View File

@@ -0,0 +1,298 @@
package com.ruoyi.system.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 土地基础信息——核心存储土地固有属性对象 land_info
*
* @author ruoyi
* @date 2025-08-31
*/
public class LandInfo extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 土地唯一标识 ID用于关联其他表 */
private Long id;
/** 土地编号(自定义规则,如 “省简码 + 县码 + 乡镇码 + 序号”) */
@Excel(name = "土地编号", readConverterExp = "自=定义规则,如,“=省简码,+=,县=码,+=,乡=镇码,+=,序=号”")
private String landCode;
/** 省级地址(如 “新疆维吾尔自治区”) */
@Excel(name = "省级地址", readConverterExp = "如=,“=新疆维吾尔自治区”")
private String province;
/** 地级 / 市级地址(如 “阿克苏地区”) */
@Excel(name = "地级 / 市级地址", readConverterExp = "如=,“=阿克苏地区”")
private String city;
/** 县级地址(如 “温宿县”) */
@Excel(name = "县级地址", readConverterExp = "如=,“=温宿县”")
private String county;
/** 乡镇级地址(如 “托甫汗镇”) */
@Excel(name = "乡镇级地址", readConverterExp = "如=,“=托甫汗镇”")
private String town;
/** 详细地址(村组、地块具体位置) */
@Excel(name = "详细地址", readConverterExp = "村=组、地块具体位置")
private String detailAddress;
/** 经度(保留 6 位小数,确保定位精度) */
@Excel(name = "经度", readConverterExp = "保=留,6=,位=小数,确保定位精度")
private BigDecimal longitude;
/** 纬度(保留 6 位小数) */
@Excel(name = "纬度", readConverterExp = "保=留,6=,位=小数")
private BigDecimal latitude;
/** 土地类型(如耕地、林地、园地、草地) */
@Excel(name = "土地类型", readConverterExp = "如=耕地、林地、园地、草地")
private String landType;
/** 土地质量等级(如 1 级、2 级、3 级,按当地标准划分) */
@Excel(name = "土地质量等级", readConverterExp = "如=,1=,级=、2,级=、3,级=,按当地标准划分")
private String landQuality;
/** 土地总面积(单位:亩) */
@Excel(name = "土地总面积", readConverterExp = "单=位:亩")
private BigDecimal totalArea;
/** 当前承包用户 ID关联 “承包用户表” 的 id无承包时为 0 */
@Excel(name = "当前承包用户 ID", readConverterExp = "关=联,“=承包用户表”,的=,i=d无承包时为,0=")
private Long currentUserId;
/** 当前承包起始日期(无承包时为 NULL */
@Excel(name = "当前承包起始日期", readConverterExp = "无=承包时为,N=ULL")
private Date contractStartDate;
/** 当前承包结束日期(无承包时为 NULL */
@Excel(name = "当前承包结束日期", readConverterExp = "无=承包时为,N=ULL")
private Date contractEndDate;
/** 土地状态(已承包、待承包、闲置、废弃) */
@Excel(name = "土地状态", readConverterExp = "已=承包、待承包、闲置、废弃")
private String landStatus;
/** 预留字段 1未来扩展如 “土地权属证明编号”) */
@Excel(name = "预留字段 1", readConverterExp = "未=来扩展,如,“=土地权属证明编号”")
private String reserve1;
/** 预留字段 2未来扩展如 “土地流转历史说明”) */
@Excel(name = "预留字段 2", readConverterExp = "未=来扩展,如,“=土地流转历史说明”")
private String reserve2;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setLandCode(String landCode)
{
this.landCode = landCode;
}
public String getLandCode()
{
return landCode;
}
public void setProvince(String province)
{
this.province = province;
}
public String getProvince()
{
return province;
}
public void setCity(String city)
{
this.city = city;
}
public String getCity()
{
return city;
}
public void setCounty(String county)
{
this.county = county;
}
public String getCounty()
{
return county;
}
public void setTown(String town)
{
this.town = town;
}
public String getTown()
{
return town;
}
public void setDetailAddress(String detailAddress)
{
this.detailAddress = detailAddress;
}
public String getDetailAddress()
{
return detailAddress;
}
public void setLongitude(BigDecimal longitude)
{
this.longitude = longitude;
}
public BigDecimal getLongitude()
{
return longitude;
}
public void setLatitude(BigDecimal latitude)
{
this.latitude = latitude;
}
public BigDecimal getLatitude()
{
return latitude;
}
public void setLandType(String landType)
{
this.landType = landType;
}
public String getLandType()
{
return landType;
}
public void setLandQuality(String landQuality)
{
this.landQuality = landQuality;
}
public String getLandQuality()
{
return landQuality;
}
public void setTotalArea(BigDecimal totalArea)
{
this.totalArea = totalArea;
}
public BigDecimal getTotalArea()
{
return totalArea;
}
public void setCurrentUserId(Long currentUserId)
{
this.currentUserId = currentUserId;
}
public Long getCurrentUserId()
{
return currentUserId;
}
public void setContractStartDate(Date contractStartDate)
{
this.contractStartDate = contractStartDate;
}
public Date getContractStartDate()
{
return contractStartDate;
}
public void setContractEndDate(Date contractEndDate)
{
this.contractEndDate = contractEndDate;
}
public Date getContractEndDate()
{
return contractEndDate;
}
public void setLandStatus(String landStatus)
{
this.landStatus = landStatus;
}
public String getLandStatus()
{
return landStatus;
}
public void setReserve1(String reserve1)
{
this.reserve1 = reserve1;
}
public String getReserve1()
{
return reserve1;
}
public void setReserve2(String reserve2)
{
this.reserve2 = reserve2;
}
public String getReserve2()
{
return reserve2;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("landCode", getLandCode())
.append("province", getProvince())
.append("city", getCity())
.append("county", getCounty())
.append("town", getTown())
.append("detailAddress", getDetailAddress())
.append("longitude", getLongitude())
.append("latitude", getLatitude())
.append("landType", getLandType())
.append("landQuality", getLandQuality())
.append("totalArea", getTotalArea())
.append("currentUserId", getCurrentUserId())
.append("contractStartDate", getContractStartDate())
.append("contractEndDate", getContractEndDate())
.append("landStatus", getLandStatus())
.append("remark", getRemark())
.append("reserve1", getReserve1())
.append("reserve2", getReserve2())
.append("createTime", getCreateTime())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@@ -0,0 +1,100 @@
package com.ruoyi.system.domain;
import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 【请填写功能名称】对象 land_level
*
* @author ruoyi
* @date 2025-09-01
*/
public class LandLevel extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 租金等级ID */
private Long id;
/** 租金等级名称 */
@Excel(name = "租金等级名称")
private String levelName;
/** 租金基础单价(元/亩或元/平方米) */
@Excel(name = "租金基础单价", readConverterExp = "元=/亩或元/平方米")
private BigDecimal unitPrice;
/** 计算单位(平方米 / 亩 ) */
@Excel(name = "计算单位(平方米 / 亩 )")
private Long unitType;
/** 描述说明 */
@Excel(name = "描述说明")
private String description;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setLevelName(String levelName)
{
this.levelName = levelName;
}
public String getLevelName()
{
return levelName;
}
public void setUnitPrice(BigDecimal unitPrice)
{
this.unitPrice = unitPrice;
}
public BigDecimal getUnitPrice()
{
return unitPrice;
}
public void setUnitType(Long unitType)
{
this.unitType = unitType;
}
public Long getUnitType()
{
return unitType;
}
public void setDescription(String description)
{
this.description = description;
}
public String getDescription()
{
return description;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("levelName", getLevelName())
.append("unitPrice", getUnitPrice())
.append("unitType", getUnitType())
.append("description", getDescription())
.append("createTime", getCreateTime())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@@ -0,0 +1,61 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.ContractUser;
/**
* 承包用户信息——存储承包用户详细信息Mapper接口
*
* @author ruoyi
* @date 2025-08-31
*/
public interface ContractUserMapper
{
/**
* 查询承包用户信息——存储承包用户详细信息
*
* @param id 承包用户信息——存储承包用户详细信息主键
* @return 承包用户信息——存储承包用户详细信息
*/
public ContractUser selectContractUserById(Long id);
/**
* 查询承包用户信息——存储承包用户详细信息列表
*
* @param contractUser 承包用户信息——存储承包用户详细信息
* @return 承包用户信息——存储承包用户详细信息集合
*/
public List<ContractUser> selectContractUserList(ContractUser contractUser);
/**
* 新增承包用户信息——存储承包用户详细信息
*
* @param contractUser 承包用户信息——存储承包用户详细信息
* @return 结果
*/
public int insertContractUser(ContractUser contractUser);
/**
* 修改承包用户信息——存储承包用户详细信息
*
* @param contractUser 承包用户信息——存储承包用户详细信息
* @return 结果
*/
public int updateContractUser(ContractUser contractUser);
/**
* 删除承包用户信息——存储承包用户详细信息
*
* @param id 承包用户信息——存储承包用户详细信息主键
* @return 结果
*/
public int deleteContractUserById(Long id);
/**
* 批量删除承包用户信息——存储承包用户详细信息
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteContractUserByIds(Long[] ids);
}

View File

@@ -0,0 +1,61 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.FarmerInfo;
/**
* 农户信息Mapper接口
*
* @author ruoyi
* @date 2025-09-01
*/
public interface FarmerInfoMapper
{
/**
* 查询农户信息
*
* @param id 农户信息主键
* @return 农户信息
*/
public FarmerInfo selectFarmerInfoById(Long id);
/**
* 查询农户信息列表
*
* @param farmerInfo 农户信息
* @return 农户信息集合
*/
public List<FarmerInfo> selectFarmerInfoList(FarmerInfo farmerInfo);
/**
* 新增农户信息
*
* @param farmerInfo 农户信息
* @return 结果
*/
public int insertFarmerInfo(FarmerInfo farmerInfo);
/**
* 修改农户信息
*
* @param farmerInfo 农户信息
* @return 结果
*/
public int updateFarmerInfo(FarmerInfo farmerInfo);
/**
* 删除农户信息
*
* @param id 农户信息主键
* @return 结果
*/
public int deleteFarmerInfoById(Long id);
/**
* 批量删除农户信息
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteFarmerInfoByIds(Long[] ids);
}

View File

@@ -0,0 +1,61 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.LandCrop;
/**
* 土地承包作物关联——存储每年土地种植的作物信息Mapper接口
*
* @author ruoyi
* @date 2025-08-31
*/
public interface LandCropMapper
{
/**
* 查询土地承包作物关联——存储每年土地种植的作物信息
*
* @param id 土地承包作物关联——存储每年土地种植的作物信息主键
* @return 土地承包作物关联——存储每年土地种植的作物信息
*/
public LandCrop selectLandCropById(Long id);
/**
* 查询土地承包作物关联——存储每年土地种植的作物信息列表
*
* @param landCrop 土地承包作物关联——存储每年土地种植的作物信息
* @return 土地承包作物关联——存储每年土地种植的作物信息集合
*/
public List<LandCrop> selectLandCropList(LandCrop landCrop);
/**
* 新增土地承包作物关联——存储每年土地种植的作物信息
*
* @param landCrop 土地承包作物关联——存储每年土地种植的作物信息
* @return 结果
*/
public int insertLandCrop(LandCrop landCrop);
/**
* 修改土地承包作物关联——存储每年土地种植的作物信息
*
* @param landCrop 土地承包作物关联——存储每年土地种植的作物信息
* @return 结果
*/
public int updateLandCrop(LandCrop landCrop);
/**
* 删除土地承包作物关联——存储每年土地种植的作物信息
*
* @param id 土地承包作物关联——存储每年土地种植的作物信息主键
* @return 结果
*/
public int deleteLandCropById(Long id);
/**
* 批量删除土地承包作物关联——存储每年土地种植的作物信息
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteLandCropByIds(Long[] ids);
}

View File

@@ -0,0 +1,61 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.LandInfo;
/**
* 土地基础信息——核心存储土地固有属性Mapper接口
*
* @author ruoyi
* @date 2025-08-31
*/
public interface LandInfoMapper
{
/**
* 查询土地基础信息——核心存储土地固有属性
*
* @param id 土地基础信息——核心存储土地固有属性主键
* @return 土地基础信息——核心存储土地固有属性
*/
public LandInfo selectLandInfoById(Long id);
/**
* 查询土地基础信息——核心存储土地固有属性列表
*
* @param landInfo 土地基础信息——核心存储土地固有属性
* @return 土地基础信息——核心存储土地固有属性集合
*/
public List<LandInfo> selectLandInfoList(LandInfo landInfo);
/**
* 新增土地基础信息——核心存储土地固有属性
*
* @param landInfo 土地基础信息——核心存储土地固有属性
* @return 结果
*/
public int insertLandInfo(LandInfo landInfo);
/**
* 修改土地基础信息——核心存储土地固有属性
*
* @param landInfo 土地基础信息——核心存储土地固有属性
* @return 结果
*/
public int updateLandInfo(LandInfo landInfo);
/**
* 删除土地基础信息——核心存储土地固有属性
*
* @param id 土地基础信息——核心存储土地固有属性主键
* @return 结果
*/
public int deleteLandInfoById(Long id);
/**
* 批量删除土地基础信息——核心存储土地固有属性
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteLandInfoByIds(Long[] ids);
}

View File

@@ -0,0 +1,61 @@
package com.ruoyi.system.mapper;
import java.util.List;
import com.ruoyi.system.domain.LandLevel;
/**
* 【请填写功能名称】Mapper接口
*
* @author ruoyi
* @date 2025-09-01
*/
public interface LandLevelMapper
{
/**
* 查询【请填写功能名称】
*
* @param id 【请填写功能名称】主键
* @return 【请填写功能名称】
*/
public LandLevel selectLandLevelById(Long id);
/**
* 查询【请填写功能名称】列表
*
* @param landLevel 【请填写功能名称】
* @return 【请填写功能名称】集合
*/
public List<LandLevel> selectLandLevelList(LandLevel landLevel);
/**
* 新增【请填写功能名称】
*
* @param landLevel 【请填写功能名称】
* @return 结果
*/
public int insertLandLevel(LandLevel landLevel);
/**
* 修改【请填写功能名称】
*
* @param landLevel 【请填写功能名称】
* @return 结果
*/
public int updateLandLevel(LandLevel landLevel);
/**
* 删除【请填写功能名称】
*
* @param id 【请填写功能名称】主键
* @return 结果
*/
public int deleteLandLevelById(Long id);
/**
* 批量删除【请填写功能名称】
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteLandLevelByIds(Long[] ids);
}

View File

@@ -0,0 +1,61 @@
package com.ruoyi.system.service;
import java.util.List;
import com.ruoyi.system.domain.ContractUser;
/**
* 承包用户信息——存储承包用户详细信息Service接口
*
* @author ruoyi
* @date 2025-08-31
*/
public interface IContractUserService
{
/**
* 查询承包用户信息——存储承包用户详细信息
*
* @param id 承包用户信息——存储承包用户详细信息主键
* @return 承包用户信息——存储承包用户详细信息
*/
public ContractUser selectContractUserById(Long id);
/**
* 查询承包用户信息——存储承包用户详细信息列表
*
* @param contractUser 承包用户信息——存储承包用户详细信息
* @return 承包用户信息——存储承包用户详细信息集合
*/
public List<ContractUser> selectContractUserList(ContractUser contractUser);
/**
* 新增承包用户信息——存储承包用户详细信息
*
* @param contractUser 承包用户信息——存储承包用户详细信息
* @return 结果
*/
public int insertContractUser(ContractUser contractUser);
/**
* 修改承包用户信息——存储承包用户详细信息
*
* @param contractUser 承包用户信息——存储承包用户详细信息
* @return 结果
*/
public int updateContractUser(ContractUser contractUser);
/**
* 批量删除承包用户信息——存储承包用户详细信息
*
* @param ids 需要删除的承包用户信息——存储承包用户详细信息主键集合
* @return 结果
*/
public int deleteContractUserByIds(Long[] ids);
/**
* 删除承包用户信息——存储承包用户详细信息信息
*
* @param id 承包用户信息——存储承包用户详细信息主键
* @return 结果
*/
public int deleteContractUserById(Long id);
}

View File

@@ -0,0 +1,61 @@
package com.ruoyi.system.service;
import java.util.List;
import com.ruoyi.system.domain.FarmerInfo;
/**
* 农户信息Service接口
*
* @author ruoyi
* @date 2025-09-01
*/
public interface IFarmerInfoService
{
/**
* 查询农户信息
*
* @param id 农户信息主键
* @return 农户信息
*/
public FarmerInfo selectFarmerInfoById(Long id);
/**
* 查询农户信息列表
*
* @param farmerInfo 农户信息
* @return 农户信息集合
*/
public List<FarmerInfo> selectFarmerInfoList(FarmerInfo farmerInfo);
/**
* 新增农户信息
*
* @param farmerInfo 农户信息
* @return 结果
*/
public int insertFarmerInfo(FarmerInfo farmerInfo);
/**
* 修改农户信息
*
* @param farmerInfo 农户信息
* @return 结果
*/
public int updateFarmerInfo(FarmerInfo farmerInfo);
/**
* 批量删除农户信息
*
* @param ids 需要删除的农户信息主键集合
* @return 结果
*/
public int deleteFarmerInfoByIds(Long[] ids);
/**
* 删除农户信息信息
*
* @param id 农户信息主键
* @return 结果
*/
public int deleteFarmerInfoById(Long id);
}

View File

@@ -0,0 +1,61 @@
package com.ruoyi.system.service;
import java.util.List;
import com.ruoyi.system.domain.LandCrop;
/**
* 土地承包作物关联——存储每年土地种植的作物信息Service接口
*
* @author ruoyi
* @date 2025-08-31
*/
public interface ILandCropService
{
/**
* 查询土地承包作物关联——存储每年土地种植的作物信息
*
* @param id 土地承包作物关联——存储每年土地种植的作物信息主键
* @return 土地承包作物关联——存储每年土地种植的作物信息
*/
public LandCrop selectLandCropById(Long id);
/**
* 查询土地承包作物关联——存储每年土地种植的作物信息列表
*
* @param landCrop 土地承包作物关联——存储每年土地种植的作物信息
* @return 土地承包作物关联——存储每年土地种植的作物信息集合
*/
public List<LandCrop> selectLandCropList(LandCrop landCrop);
/**
* 新增土地承包作物关联——存储每年土地种植的作物信息
*
* @param landCrop 土地承包作物关联——存储每年土地种植的作物信息
* @return 结果
*/
public int insertLandCrop(LandCrop landCrop);
/**
* 修改土地承包作物关联——存储每年土地种植的作物信息
*
* @param landCrop 土地承包作物关联——存储每年土地种植的作物信息
* @return 结果
*/
public int updateLandCrop(LandCrop landCrop);
/**
* 批量删除土地承包作物关联——存储每年土地种植的作物信息
*
* @param ids 需要删除的土地承包作物关联——存储每年土地种植的作物信息主键集合
* @return 结果
*/
public int deleteLandCropByIds(Long[] ids);
/**
* 删除土地承包作物关联——存储每年土地种植的作物信息信息
*
* @param id 土地承包作物关联——存储每年土地种植的作物信息主键
* @return 结果
*/
public int deleteLandCropById(Long id);
}

View File

@@ -0,0 +1,61 @@
package com.ruoyi.system.service;
import java.util.List;
import com.ruoyi.system.domain.LandInfo;
/**
* 土地基础信息——核心存储土地固有属性Service接口
*
* @author ruoyi
* @date 2025-08-31
*/
public interface ILandInfoService
{
/**
* 查询土地基础信息——核心存储土地固有属性
*
* @param id 土地基础信息——核心存储土地固有属性主键
* @return 土地基础信息——核心存储土地固有属性
*/
public LandInfo selectLandInfoById(Long id);
/**
* 查询土地基础信息——核心存储土地固有属性列表
*
* @param landInfo 土地基础信息——核心存储土地固有属性
* @return 土地基础信息——核心存储土地固有属性集合
*/
public List<LandInfo> selectLandInfoList(LandInfo landInfo);
/**
* 新增土地基础信息——核心存储土地固有属性
*
* @param landInfo 土地基础信息——核心存储土地固有属性
* @return 结果
*/
public int insertLandInfo(LandInfo landInfo);
/**
* 修改土地基础信息——核心存储土地固有属性
*
* @param landInfo 土地基础信息——核心存储土地固有属性
* @return 结果
*/
public int updateLandInfo(LandInfo landInfo);
/**
* 批量删除土地基础信息——核心存储土地固有属性
*
* @param ids 需要删除的土地基础信息——核心存储土地固有属性主键集合
* @return 结果
*/
public int deleteLandInfoByIds(Long[] ids);
/**
* 删除土地基础信息——核心存储土地固有属性信息
*
* @param id 土地基础信息——核心存储土地固有属性主键
* @return 结果
*/
public int deleteLandInfoById(Long id);
}

View File

@@ -0,0 +1,61 @@
package com.ruoyi.system.service;
import java.util.List;
import com.ruoyi.system.domain.LandLevel;
/**
* 【请填写功能名称】Service接口
*
* @author ruoyi
* @date 2025-09-01
*/
public interface ILandLevelService
{
/**
* 查询【请填写功能名称】
*
* @param id 【请填写功能名称】主键
* @return 【请填写功能名称】
*/
public LandLevel selectLandLevelById(Long id);
/**
* 查询【请填写功能名称】列表
*
* @param landLevel 【请填写功能名称】
* @return 【请填写功能名称】集合
*/
public List<LandLevel> selectLandLevelList(LandLevel landLevel);
/**
* 新增【请填写功能名称】
*
* @param landLevel 【请填写功能名称】
* @return 结果
*/
public int insertLandLevel(LandLevel landLevel);
/**
* 修改【请填写功能名称】
*
* @param landLevel 【请填写功能名称】
* @return 结果
*/
public int updateLandLevel(LandLevel landLevel);
/**
* 批量删除【请填写功能名称】
*
* @param ids 需要删除的【请填写功能名称】主键集合
* @return 结果
*/
public int deleteLandLevelByIds(Long[] ids);
/**
* 删除【请填写功能名称】信息
*
* @param id 【请填写功能名称】主键
* @return 结果
*/
public int deleteLandLevelById(Long id);
}

View File

@@ -0,0 +1,96 @@
package com.ruoyi.system.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ContractUserMapper;
import com.ruoyi.system.domain.ContractUser;
import com.ruoyi.system.service.IContractUserService;
/**
* 承包用户信息——存储承包用户详细信息Service业务层处理
*
* @author ruoyi
* @date 2025-08-31
*/
@Service
public class ContractUserServiceImpl implements IContractUserService
{
@Autowired
private ContractUserMapper contractUserMapper;
/**
* 查询承包用户信息——存储承包用户详细信息
*
* @param id 承包用户信息——存储承包用户详细信息主键
* @return 承包用户信息——存储承包用户详细信息
*/
@Override
public ContractUser selectContractUserById(Long id)
{
return contractUserMapper.selectContractUserById(id);
}
/**
* 查询承包用户信息——存储承包用户详细信息列表
*
* @param contractUser 承包用户信息——存储承包用户详细信息
* @return 承包用户信息——存储承包用户详细信息
*/
@Override
public List<ContractUser> selectContractUserList(ContractUser contractUser)
{
return contractUserMapper.selectContractUserList(contractUser);
}
/**
* 新增承包用户信息——存储承包用户详细信息
*
* @param contractUser 承包用户信息——存储承包用户详细信息
* @return 结果
*/
@Override
public int insertContractUser(ContractUser contractUser)
{
contractUser.setCreateTime(DateUtils.getNowDate());
return contractUserMapper.insertContractUser(contractUser);
}
/**
* 修改承包用户信息——存储承包用户详细信息
*
* @param contractUser 承包用户信息——存储承包用户详细信息
* @return 结果
*/
@Override
public int updateContractUser(ContractUser contractUser)
{
contractUser.setUpdateTime(DateUtils.getNowDate());
return contractUserMapper.updateContractUser(contractUser);
}
/**
* 批量删除承包用户信息——存储承包用户详细信息
*
* @param ids 需要删除的承包用户信息——存储承包用户详细信息主键
* @return 结果
*/
@Override
public int deleteContractUserByIds(Long[] ids)
{
return contractUserMapper.deleteContractUserByIds(ids);
}
/**
* 删除承包用户信息——存储承包用户详细信息信息
*
* @param id 承包用户信息——存储承包用户详细信息主键
* @return 结果
*/
@Override
public int deleteContractUserById(Long id)
{
return contractUserMapper.deleteContractUserById(id);
}
}

View File

@@ -0,0 +1,96 @@
package com.ruoyi.system.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FarmerInfoMapper;
import com.ruoyi.system.domain.FarmerInfo;
import com.ruoyi.system.service.IFarmerInfoService;
/**
* 农户信息Service业务层处理
*
* @author ruoyi
* @date 2025-09-01
*/
@Service
public class FarmerInfoServiceImpl implements IFarmerInfoService
{
@Autowired
private FarmerInfoMapper farmerInfoMapper;
/**
* 查询农户信息
*
* @param id 农户信息主键
* @return 农户信息
*/
@Override
public FarmerInfo selectFarmerInfoById(Long id)
{
return farmerInfoMapper.selectFarmerInfoById(id);
}
/**
* 查询农户信息列表
*
* @param farmerInfo 农户信息
* @return 农户信息
*/
@Override
public List<FarmerInfo> selectFarmerInfoList(FarmerInfo farmerInfo)
{
return farmerInfoMapper.selectFarmerInfoList(farmerInfo);
}
/**
* 新增农户信息
*
* @param farmerInfo 农户信息
* @return 结果
*/
@Override
public int insertFarmerInfo(FarmerInfo farmerInfo)
{
farmerInfo.setCreateTime(DateUtils.getNowDate());
return farmerInfoMapper.insertFarmerInfo(farmerInfo);
}
/**
* 修改农户信息
*
* @param farmerInfo 农户信息
* @return 结果
*/
@Override
public int updateFarmerInfo(FarmerInfo farmerInfo)
{
farmerInfo.setUpdateTime(DateUtils.getNowDate());
return farmerInfoMapper.updateFarmerInfo(farmerInfo);
}
/**
* 批量删除农户信息
*
* @param ids 需要删除的农户信息主键
* @return 结果
*/
@Override
public int deleteFarmerInfoByIds(Long[] ids)
{
return farmerInfoMapper.deleteFarmerInfoByIds(ids);
}
/**
* 删除农户信息信息
*
* @param id 农户信息主键
* @return 结果
*/
@Override
public int deleteFarmerInfoById(Long id)
{
return farmerInfoMapper.deleteFarmerInfoById(id);
}
}

View File

@@ -0,0 +1,95 @@
package com.ruoyi.system.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.LandCropMapper;
import com.ruoyi.system.domain.LandCrop;
import com.ruoyi.system.service.ILandCropService;
/**
* 土地承包作物关联——存储每年土地种植的作物信息Service业务层处理
*
* @author ruoyi
* @date 2025-08-31
*/
@Service
public class LandCropServiceImpl implements ILandCropService
{
@Autowired
private LandCropMapper landCropMapper;
/**
* 查询土地承包作物关联——存储每年土地种植的作物信息
*
* @param id 土地承包作物关联——存储每年土地种植的作物信息主键
* @return 土地承包作物关联——存储每年土地种植的作物信息
*/
@Override
public LandCrop selectLandCropById(Long id)
{
return landCropMapper.selectLandCropById(id);
}
/**
* 查询土地承包作物关联——存储每年土地种植的作物信息列表
*
* @param landCrop 土地承包作物关联——存储每年土地种植的作物信息
* @return 土地承包作物关联——存储每年土地种植的作物信息
*/
@Override
public List<LandCrop> selectLandCropList(LandCrop landCrop)
{
return landCropMapper.selectLandCropList(landCrop);
}
/**
* 新增土地承包作物关联——存储每年土地种植的作物信息
*
* @param landCrop 土地承包作物关联——存储每年土地种植的作物信息
* @return 结果
*/
@Override
public int insertLandCrop(LandCrop landCrop)
{
landCrop.setCreateTime(DateUtils.getNowDate());
return landCropMapper.insertLandCrop(landCrop);
}
/**
* 修改土地承包作物关联——存储每年土地种植的作物信息
*
* @param landCrop 土地承包作物关联——存储每年土地种植的作物信息
* @return 结果
*/
@Override
public int updateLandCrop(LandCrop landCrop)
{
return landCropMapper.updateLandCrop(landCrop);
}
/**
* 批量删除土地承包作物关联——存储每年土地种植的作物信息
*
* @param ids 需要删除的土地承包作物关联——存储每年土地种植的作物信息主键
* @return 结果
*/
@Override
public int deleteLandCropByIds(Long[] ids)
{
return landCropMapper.deleteLandCropByIds(ids);
}
/**
* 删除土地承包作物关联——存储每年土地种植的作物信息信息
*
* @param id 土地承包作物关联——存储每年土地种植的作物信息主键
* @return 结果
*/
@Override
public int deleteLandCropById(Long id)
{
return landCropMapper.deleteLandCropById(id);
}
}

View File

@@ -0,0 +1,96 @@
package com.ruoyi.system.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.LandInfoMapper;
import com.ruoyi.system.domain.LandInfo;
import com.ruoyi.system.service.ILandInfoService;
/**
* 土地基础信息——核心存储土地固有属性Service业务层处理
*
* @author ruoyi
* @date 2025-08-31
*/
@Service
public class LandInfoServiceImpl implements ILandInfoService
{
@Autowired
private LandInfoMapper landInfoMapper;
/**
* 查询土地基础信息——核心存储土地固有属性
*
* @param id 土地基础信息——核心存储土地固有属性主键
* @return 土地基础信息——核心存储土地固有属性
*/
@Override
public LandInfo selectLandInfoById(Long id)
{
return landInfoMapper.selectLandInfoById(id);
}
/**
* 查询土地基础信息——核心存储土地固有属性列表
*
* @param landInfo 土地基础信息——核心存储土地固有属性
* @return 土地基础信息——核心存储土地固有属性
*/
@Override
public List<LandInfo> selectLandInfoList(LandInfo landInfo)
{
return landInfoMapper.selectLandInfoList(landInfo);
}
/**
* 新增土地基础信息——核心存储土地固有属性
*
* @param landInfo 土地基础信息——核心存储土地固有属性
* @return 结果
*/
@Override
public int insertLandInfo(LandInfo landInfo)
{
landInfo.setCreateTime(DateUtils.getNowDate());
return landInfoMapper.insertLandInfo(landInfo);
}
/**
* 修改土地基础信息——核心存储土地固有属性
*
* @param landInfo 土地基础信息——核心存储土地固有属性
* @return 结果
*/
@Override
public int updateLandInfo(LandInfo landInfo)
{
landInfo.setUpdateTime(DateUtils.getNowDate());
return landInfoMapper.updateLandInfo(landInfo);
}
/**
* 批量删除土地基础信息——核心存储土地固有属性
*
* @param ids 需要删除的土地基础信息——核心存储土地固有属性主键
* @return 结果
*/
@Override
public int deleteLandInfoByIds(Long[] ids)
{
return landInfoMapper.deleteLandInfoByIds(ids);
}
/**
* 删除土地基础信息——核心存储土地固有属性信息
*
* @param id 土地基础信息——核心存储土地固有属性主键
* @return 结果
*/
@Override
public int deleteLandInfoById(Long id)
{
return landInfoMapper.deleteLandInfoById(id);
}
}

View File

@@ -0,0 +1,96 @@
package com.ruoyi.system.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.LandLevelMapper;
import com.ruoyi.system.domain.LandLevel;
import com.ruoyi.system.service.ILandLevelService;
/**
* 【请填写功能名称】Service业务层处理
*
* @author ruoyi
* @date 2025-09-01
*/
@Service
public class LandLevelServiceImpl implements ILandLevelService
{
@Autowired
private LandLevelMapper landLevelMapper;
/**
* 查询【请填写功能名称】
*
* @param id 【请填写功能名称】主键
* @return 【请填写功能名称】
*/
@Override
public LandLevel selectLandLevelById(Long id)
{
return landLevelMapper.selectLandLevelById(id);
}
/**
* 查询【请填写功能名称】列表
*
* @param landLevel 【请填写功能名称】
* @return 【请填写功能名称】
*/
@Override
public List<LandLevel> selectLandLevelList(LandLevel landLevel)
{
return landLevelMapper.selectLandLevelList(landLevel);
}
/**
* 新增【请填写功能名称】
*
* @param landLevel 【请填写功能名称】
* @return 结果
*/
@Override
public int insertLandLevel(LandLevel landLevel)
{
landLevel.setCreateTime(DateUtils.getNowDate());
return landLevelMapper.insertLandLevel(landLevel);
}
/**
* 修改【请填写功能名称】
*
* @param landLevel 【请填写功能名称】
* @return 结果
*/
@Override
public int updateLandLevel(LandLevel landLevel)
{
landLevel.setUpdateTime(DateUtils.getNowDate());
return landLevelMapper.updateLandLevel(landLevel);
}
/**
* 批量删除【请填写功能名称】
*
* @param ids 需要删除的【请填写功能名称】主键
* @return 结果
*/
@Override
public int deleteLandLevelByIds(Long[] ids)
{
return landLevelMapper.deleteLandLevelByIds(ids);
}
/**
* 删除【请填写功能名称】信息
*
* @param id 【请填写功能名称】主键
* @return 结果
*/
@Override
public int deleteLandLevelById(Long id)
{
return landLevelMapper.deleteLandLevelById(id);
}
}

View File

@@ -0,0 +1,149 @@
<?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="com.ruoyi.system.mapper.ContractUserMapper">
<resultMap type="ContractUser" id="ContractUserResult">
<result property="id" column="id" />
<result property="userName" column="user_name" />
<result property="idCard" column="id_card" />
<result property="phone" column="phone" />
<result property="address" column="address" />
<result property="userType" column="user_type" />
<result property="contractCode" column="contract_code" />
<result property="contractSignDate" column="contract_sign_date" />
<result property="contractTerm" column="contract_term" />
<result property="newContractArea" column="new_contract_area" />
<result property="oldContractArea" column="old_contract_area" />
<result property="surveyArea" column="survey_area" />
<result property="muFeeStandard" column="mu_fee_standard" />
<result property="annualContractFee" column="annual_contract_fee" />
<result property="contractCount" column="contract_count" />
<result property="contractRemark" column="contract_remark" />
<result property="userRemark" column="user_remark" />
<result property="reserve1" column="reserve1" />
<result property="reserve2" column="reserve2" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectContractUserVo">
select id, user_name, id_card, phone, address, user_type, contract_code, contract_sign_date, contract_term, new_contract_area, old_contract_area, survey_area, mu_fee_standard, annual_contract_fee, contract_count, contract_remark, user_remark, reserve1, reserve2, create_time, update_time from contract_user
</sql>
<select id="selectContractUserList" parameterType="ContractUser" resultMap="ContractUserResult">
<include refid="selectContractUserVo"/>
<where>
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
<if test="idCard != null and idCard != ''"> and id_card = #{idCard}</if>
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
<if test="address != null and address != ''"> and address = #{address}</if>
<if test="userType != null and userType != ''"> and user_type = #{userType}</if>
<if test="contractCode != null and contractCode != ''"> and contract_code = #{contractCode}</if>
<if test="contractSignDate != null "> and contract_sign_date = #{contractSignDate}</if>
<if test="contractTerm != null "> and contract_term = #{contractTerm}</if>
<if test="newContractArea != null "> and new_contract_area = #{newContractArea}</if>
<if test="oldContractArea != null "> and old_contract_area = #{oldContractArea}</if>
<if test="surveyArea != null "> and survey_area = #{surveyArea}</if>
<if test="muFeeStandard != null "> and mu_fee_standard = #{muFeeStandard}</if>
<if test="annualContractFee != null "> and annual_contract_fee = #{annualContractFee}</if>
<if test="contractCount != null "> and contract_count = #{contractCount}</if>
<if test="contractRemark != null and contractRemark != ''"> and contract_remark = #{contractRemark}</if>
<if test="userRemark != null and userRemark != ''"> and user_remark = #{userRemark}</if>
<if test="reserve1 != null and reserve1 != ''"> and reserve1 = #{reserve1}</if>
<if test="reserve2 != null and reserve2 != ''"> and reserve2 = #{reserve2}</if>
</where>
</select>
<select id="selectContractUserById" parameterType="Long" resultMap="ContractUserResult">
<include refid="selectContractUserVo"/>
where id = #{id}
</select>
<insert id="insertContractUser" parameterType="ContractUser" useGeneratedKeys="true" keyProperty="id">
insert into contract_user
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="userName != null and userName != ''">user_name,</if>
<if test="idCard != null and idCard != ''">id_card,</if>
<if test="phone != null">phone,</if>
<if test="address != null">address,</if>
<if test="userType != null and userType != ''">user_type,</if>
<if test="contractCode != null and contractCode != ''">contract_code,</if>
<if test="contractSignDate != null">contract_sign_date,</if>
<if test="contractTerm != null">contract_term,</if>
<if test="newContractArea != null">new_contract_area,</if>
<if test="oldContractArea != null">old_contract_area,</if>
<if test="surveyArea != null">survey_area,</if>
<if test="muFeeStandard != null">mu_fee_standard,</if>
<if test="annualContractFee != null">annual_contract_fee,</if>
<if test="contractCount != null">contract_count,</if>
<if test="contractRemark != null">contract_remark,</if>
<if test="userRemark != null">user_remark,</if>
<if test="reserve1 != null">reserve1,</if>
<if test="reserve2 != null">reserve2,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userName != null and userName != ''">#{userName},</if>
<if test="idCard != null and idCard != ''">#{idCard},</if>
<if test="phone != null">#{phone},</if>
<if test="address != null">#{address},</if>
<if test="userType != null and userType != ''">#{userType},</if>
<if test="contractCode != null and contractCode != ''">#{contractCode},</if>
<if test="contractSignDate != null">#{contractSignDate},</if>
<if test="contractTerm != null">#{contractTerm},</if>
<if test="newContractArea != null">#{newContractArea},</if>
<if test="oldContractArea != null">#{oldContractArea},</if>
<if test="surveyArea != null">#{surveyArea},</if>
<if test="muFeeStandard != null">#{muFeeStandard},</if>
<if test="annualContractFee != null">#{annualContractFee},</if>
<if test="contractCount != null">#{contractCount},</if>
<if test="contractRemark != null">#{contractRemark},</if>
<if test="userRemark != null">#{userRemark},</if>
<if test="reserve1 != null">#{reserve1},</if>
<if test="reserve2 != null">#{reserve2},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateContractUser" parameterType="ContractUser">
update contract_user
<trim prefix="SET" suffixOverrides=",">
<if test="userName != null and userName != ''">user_name = #{userName},</if>
<if test="idCard != null and idCard != ''">id_card = #{idCard},</if>
<if test="phone != null">phone = #{phone},</if>
<if test="address != null">address = #{address},</if>
<if test="userType != null and userType != ''">user_type = #{userType},</if>
<if test="contractCode != null and contractCode != ''">contract_code = #{contractCode},</if>
<if test="contractSignDate != null">contract_sign_date = #{contractSignDate},</if>
<if test="contractTerm != null">contract_term = #{contractTerm},</if>
<if test="newContractArea != null">new_contract_area = #{newContractArea},</if>
<if test="oldContractArea != null">old_contract_area = #{oldContractArea},</if>
<if test="surveyArea != null">survey_area = #{surveyArea},</if>
<if test="muFeeStandard != null">mu_fee_standard = #{muFeeStandard},</if>
<if test="annualContractFee != null">annual_contract_fee = #{annualContractFee},</if>
<if test="contractCount != null">contract_count = #{contractCount},</if>
<if test="contractRemark != null">contract_remark = #{contractRemark},</if>
<if test="userRemark != null">user_remark = #{userRemark},</if>
<if test="reserve1 != null">reserve1 = #{reserve1},</if>
<if test="reserve2 != null">reserve2 = #{reserve2},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteContractUserById" parameterType="Long">
delete from contract_user where id = #{id}
</delete>
<delete id="deleteContractUserByIds" parameterType="String">
delete from contract_user where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,91 @@
<?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="com.ruoyi.system.mapper.FarmerInfoMapper">
<resultMap type="FarmerInfo" id="FarmerInfoResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="idCard" column="id_card" />
<result property="contactInfo" column="contact_info" />
<result property="villageId" column="village_id" />
<result property="address" column="address" />
<result property="status" column="status" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectFarmerInfoVo">
select id, name, id_card, contact_info, village_id, address, status, create_time, update_time from farmer_info
</sql>
<select id="selectFarmerInfoList" parameterType="FarmerInfo" resultMap="FarmerInfoResult">
<include refid="selectFarmerInfoVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="idCard != null and idCard != ''"> and id_card = #{idCard}</if>
<if test="contactInfo != null and contactInfo != ''"> and contact_info = #{contactInfo}</if>
<if test="villageId != null and villageId != ''"> and village_id = #{villageId}</if>
<if test="address != null and address != ''"> and address = #{address}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
</where>
</select>
<select id="selectFarmerInfoById" parameterType="Long" resultMap="FarmerInfoResult">
<include refid="selectFarmerInfoVo"/>
where id = #{id}
</select>
<insert id="insertFarmerInfo" parameterType="FarmerInfo">
insert into farmer_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="name != null and name != ''">name,</if>
<if test="idCard != null and idCard != ''">id_card,</if>
<if test="contactInfo != null">contact_info,</if>
<if test="villageId != null">village_id,</if>
<if test="address != null">address,</if>
<if test="status != null and status != ''">status,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="name != null and name != ''">#{name},</if>
<if test="idCard != null and idCard != ''">#{idCard},</if>
<if test="contactInfo != null">#{contactInfo},</if>
<if test="villageId != null">#{villageId},</if>
<if test="address != null">#{address},</if>
<if test="status != null and status != ''">#{status},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateFarmerInfo" parameterType="FarmerInfo">
update farmer_info
<trim prefix="SET" suffixOverrides=",">
<if test="name != null and name != ''">name = #{name},</if>
<if test="idCard != null and idCard != ''">id_card = #{idCard},</if>
<if test="contactInfo != null">contact_info = #{contactInfo},</if>
<if test="villageId != null">village_id = #{villageId},</if>
<if test="address != null">address = #{address},</if>
<if test="status != null and status != ''">status = #{status},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteFarmerInfoById" parameterType="Long">
delete from farmer_info where id = #{id}
</delete>
<delete id="deleteFarmerInfoByIds" parameterType="String">
delete from farmer_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,85 @@
<?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="com.ruoyi.system.mapper.LandCropMapper">
<resultMap type="LandCrop" id="LandCropResult">
<result property="id" column="id" />
<result property="landId" column="land_id" />
<result property="cropYear" column="crop_year" />
<result property="cropName" column="crop_name" />
<result property="cropArea" column="crop_area" />
<result property="cropYield" column="crop_yield" />
<result property="cropRemark" column="crop_remark" />
<result property="createTime" column="create_time" />
</resultMap>
<sql id="selectLandCropVo">
select id, land_id, crop_year, crop_name, crop_area, crop_yield, crop_remark, create_time from land_crop
</sql>
<select id="selectLandCropList" parameterType="LandCrop" resultMap="LandCropResult">
<include refid="selectLandCropVo"/>
<where>
<if test="landId != null "> and land_id = #{landId}</if>
<if test="cropYear != null "> and crop_year = #{cropYear}</if>
<if test="cropName != null and cropName != ''"> and crop_name like concat('%', #{cropName}, '%')</if>
<if test="cropArea != null "> and crop_area = #{cropArea}</if>
<if test="cropYield != null "> and crop_yield = #{cropYield}</if>
<if test="cropRemark != null and cropRemark != ''"> and crop_remark = #{cropRemark}</if>
</where>
</select>
<select id="selectLandCropById" parameterType="Long" resultMap="LandCropResult">
<include refid="selectLandCropVo"/>
where id = #{id}
</select>
<insert id="insertLandCrop" parameterType="LandCrop" useGeneratedKeys="true" keyProperty="id">
insert into land_crop
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="landId != null">land_id,</if>
<if test="cropYear != null">crop_year,</if>
<if test="cropName != null and cropName != ''">crop_name,</if>
<if test="cropArea != null">crop_area,</if>
<if test="cropYield != null">crop_yield,</if>
<if test="cropRemark != null">crop_remark,</if>
<if test="createTime != null">create_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="landId != null">#{landId},</if>
<if test="cropYear != null">#{cropYear},</if>
<if test="cropName != null and cropName != ''">#{cropName},</if>
<if test="cropArea != null">#{cropArea},</if>
<if test="cropYield != null">#{cropYield},</if>
<if test="cropRemark != null">#{cropRemark},</if>
<if test="createTime != null">#{createTime},</if>
</trim>
</insert>
<update id="updateLandCrop" parameterType="LandCrop">
update land_crop
<trim prefix="SET" suffixOverrides=",">
<if test="landId != null">land_id = #{landId},</if>
<if test="cropYear != null">crop_year = #{cropYear},</if>
<if test="cropName != null and cropName != ''">crop_name = #{cropName},</if>
<if test="cropArea != null">crop_area = #{cropArea},</if>
<if test="cropYield != null">crop_yield = #{cropYield},</if>
<if test="cropRemark != null">crop_remark = #{cropRemark},</if>
<if test="createTime != null">create_time = #{createTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteLandCropById" parameterType="Long">
delete from land_crop where id = #{id}
</delete>
<delete id="deleteLandCropByIds" parameterType="String">
delete from land_crop where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,148 @@
<?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="com.ruoyi.system.mapper.LandInfoMapper">
<resultMap type="LandInfo" id="LandInfoResult">
<result property="id" column="id" />
<result property="landCode" column="land_code" />
<result property="province" column="province" />
<result property="city" column="city" />
<result property="county" column="county" />
<result property="town" column="town" />
<result property="detailAddress" column="detail_address" />
<result property="longitude" column="longitude" />
<result property="latitude" column="latitude" />
<result property="landType" column="land_type" />
<result property="landQuality" column="land_quality" />
<result property="totalArea" column="total_area" />
<result property="currentUserId" column="current_user_id" />
<result property="contractStartDate" column="contract_start_date" />
<result property="contractEndDate" column="contract_end_date" />
<result property="landStatus" column="land_status" />
<result property="remark" column="remark" />
<result property="reserve1" column="reserve1" />
<result property="reserve2" column="reserve2" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectLandInfoVo">
select id, land_code, province, city, county, town, detail_address, longitude, latitude, land_type, land_quality, total_area, current_user_id, contract_start_date, contract_end_date, land_status, remark, reserve1, reserve2, create_time, update_time from land_info
</sql>
<select id="selectLandInfoList" parameterType="LandInfo" resultMap="LandInfoResult">
<include refid="selectLandInfoVo"/>
<where>
<if test="landCode != null and landCode != ''"> and land_code = #{landCode}</if>
<if test="province != null and province != ''"> and province = #{province}</if>
<if test="city != null and city != ''"> and city = #{city}</if>
<if test="county != null and county != ''"> and county = #{county}</if>
<if test="town != null and town != ''"> and town = #{town}</if>
<if test="detailAddress != null and detailAddress != ''"> and detail_address = #{detailAddress}</if>
<if test="longitude != null "> and longitude = #{longitude}</if>
<if test="latitude != null "> and latitude = #{latitude}</if>
<if test="landType != null and landType != ''"> and land_type = #{landType}</if>
<if test="landQuality != null and landQuality != ''"> and land_quality = #{landQuality}</if>
<if test="totalArea != null "> and total_area = #{totalArea}</if>
<if test="currentUserId != null "> and current_user_id = #{currentUserId}</if>
<if test="contractStartDate != null "> and contract_start_date = #{contractStartDate}</if>
<if test="contractEndDate != null "> and contract_end_date = #{contractEndDate}</if>
<if test="landStatus != null and landStatus != ''"> and land_status = #{landStatus}</if>
<if test="reserve1 != null and reserve1 != ''"> and reserve1 = #{reserve1}</if>
<if test="reserve2 != null and reserve2 != ''"> and reserve2 = #{reserve2}</if>
</where>
</select>
<select id="selectLandInfoById" parameterType="Long" resultMap="LandInfoResult">
<include refid="selectLandInfoVo"/>
where id = #{id}
</select>
<insert id="insertLandInfo" parameterType="LandInfo" useGeneratedKeys="true" keyProperty="id">
insert into land_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="landCode != null and landCode != ''">land_code,</if>
<if test="province != null">province,</if>
<if test="city != null">city,</if>
<if test="county != null">county,</if>
<if test="town != null">town,</if>
<if test="detailAddress != null">detail_address,</if>
<if test="longitude != null">longitude,</if>
<if test="latitude != null">latitude,</if>
<if test="landType != null">land_type,</if>
<if test="landQuality != null">land_quality,</if>
<if test="totalArea != null">total_area,</if>
<if test="currentUserId != null">current_user_id,</if>
<if test="contractStartDate != null">contract_start_date,</if>
<if test="contractEndDate != null">contract_end_date,</if>
<if test="landStatus != null">land_status,</if>
<if test="remark != null">remark,</if>
<if test="reserve1 != null">reserve1,</if>
<if test="reserve2 != null">reserve2,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="landCode != null and landCode != ''">#{landCode},</if>
<if test="province != null">#{province},</if>
<if test="city != null">#{city},</if>
<if test="county != null">#{county},</if>
<if test="town != null">#{town},</if>
<if test="detailAddress != null">#{detailAddress},</if>
<if test="longitude != null">#{longitude},</if>
<if test="latitude != null">#{latitude},</if>
<if test="landType != null">#{landType},</if>
<if test="landQuality != null">#{landQuality},</if>
<if test="totalArea != null">#{totalArea},</if>
<if test="currentUserId != null">#{currentUserId},</if>
<if test="contractStartDate != null">#{contractStartDate},</if>
<if test="contractEndDate != null">#{contractEndDate},</if>
<if test="landStatus != null">#{landStatus},</if>
<if test="remark != null">#{remark},</if>
<if test="reserve1 != null">#{reserve1},</if>
<if test="reserve2 != null">#{reserve2},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateLandInfo" parameterType="LandInfo">
update land_info
<trim prefix="SET" suffixOverrides=",">
<if test="landCode != null and landCode != ''">land_code = #{landCode},</if>
<if test="province != null">province = #{province},</if>
<if test="city != null">city = #{city},</if>
<if test="county != null">county = #{county},</if>
<if test="town != null">town = #{town},</if>
<if test="detailAddress != null">detail_address = #{detailAddress},</if>
<if test="longitude != null">longitude = #{longitude},</if>
<if test="latitude != null">latitude = #{latitude},</if>
<if test="landType != null">land_type = #{landType},</if>
<if test="landQuality != null">land_quality = #{landQuality},</if>
<if test="totalArea != null">total_area = #{totalArea},</if>
<if test="currentUserId != null">current_user_id = #{currentUserId},</if>
<if test="contractStartDate != null">contract_start_date = #{contractStartDate},</if>
<if test="contractEndDate != null">contract_end_date = #{contractEndDate},</if>
<if test="landStatus != null">land_status = #{landStatus},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="reserve1 != null">reserve1 = #{reserve1},</if>
<if test="reserve2 != null">reserve2 = #{reserve2},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteLandInfoById" parameterType="Long">
delete from land_info where id = #{id}
</delete>
<delete id="deleteLandInfoByIds" parameterType="String">
delete from land_info where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,81 @@
<?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="com.ruoyi.system.mapper.LandLevelMapper">
<resultMap type="LandLevel" id="LandLevelResult">
<result property="id" column="id" />
<result property="levelName" column="level_name" />
<result property="unitPrice" column="unit_price" />
<result property="unitType" column="unit_type" />
<result property="description" column="description" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectLandLevelVo">
select id, level_name, unit_price, unit_type, description, create_time, update_time from land_level
</sql>
<select id="selectLandLevelList" parameterType="LandLevel" resultMap="LandLevelResult">
<include refid="selectLandLevelVo"/>
<where>
<if test="levelName != null and levelName != ''"> and level_name like concat('%', #{levelName}, '%')</if>
<if test="unitPrice != null "> and unit_price = #{unitPrice}</if>
<if test="unitType != null "> and unit_type = #{unitType}</if>
<if test="description != null and description != ''"> and description = #{description}</if>
</where>
</select>
<select id="selectLandLevelById" parameterType="Long" resultMap="LandLevelResult">
<include refid="selectLandLevelVo"/>
where id = #{id}
</select>
<insert id="insertLandLevel" parameterType="LandLevel">
insert into land_level
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="levelName != null and levelName != ''">level_name,</if>
<if test="unitPrice != null">unit_price,</if>
<if test="unitType != null">unit_type,</if>
<if test="description != null">description,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="levelName != null and levelName != ''">#{levelName},</if>
<if test="unitPrice != null">#{unitPrice},</if>
<if test="unitType != null">#{unitType},</if>
<if test="description != null">#{description},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateLandLevel" parameterType="LandLevel">
update land_level
<trim prefix="SET" suffixOverrides=",">
<if test="levelName != null and levelName != ''">level_name = #{levelName},</if>
<if test="unitPrice != null">unit_price = #{unitPrice},</if>
<if test="unitType != null">unit_type = #{unitType},</if>
<if test="description != null">description = #{description},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteLandLevelById" parameterType="Long">
delete from land_level where id = #{id}
</delete>
<delete id="deleteLandLevelByIds" parameterType="String">
delete from land_level where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>