farm模块-修复个别生成代码实体类没有租号
This commit is contained in:
@@ -1,91 +1,92 @@
|
||||
package cn.iocoder.yudao.module.farm.dal.dataobject.productmanagement;
|
||||
|
||||
import lombok.*;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
||||
|
||||
/**
|
||||
* 商品管理 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("farm_product_management")
|
||||
@KeySequence("farm_product_management_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ProductManagementDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@TableId(type = IdType.INPUT)
|
||||
private String id;
|
||||
/**
|
||||
* 商品名称
|
||||
*/
|
||||
private String productName;
|
||||
/**
|
||||
* 商品规格
|
||||
*/
|
||||
private String packingSpec;
|
||||
/**
|
||||
* 重量
|
||||
*/
|
||||
private String measuringUnit;
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
private String packingUnit;
|
||||
/**
|
||||
* 商品图片
|
||||
*/
|
||||
private String image;
|
||||
/**
|
||||
* 商品介绍
|
||||
*/
|
||||
private String introduce;
|
||||
/**
|
||||
* 商品条码
|
||||
*/
|
||||
private String barCode;
|
||||
/**
|
||||
* 生产许可证
|
||||
*/
|
||||
private String permit;
|
||||
/**
|
||||
* 商标名称
|
||||
*/
|
||||
private String brandName;
|
||||
/**
|
||||
* 商标图片
|
||||
*/
|
||||
private String brandImage;
|
||||
/**
|
||||
* 商品认证
|
||||
*/
|
||||
private String brandAuthentication;
|
||||
/**
|
||||
* 基地id
|
||||
*/
|
||||
private String baseId;
|
||||
/**
|
||||
* 基地
|
||||
*/
|
||||
private String baseName;
|
||||
/**
|
||||
* 地块ID
|
||||
*/
|
||||
private String plotId;
|
||||
/**
|
||||
* 地块
|
||||
*/
|
||||
private String plotName;
|
||||
|
||||
}
|
||||
package cn.iocoder.yudao.module.farm.dal.dataobject.productmanagement;
|
||||
|
||||
import lombok.*;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
||||
|
||||
/**
|
||||
* 商品管理 DO
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@TableName("farm_product_management")
|
||||
@KeySequence("farm_product_management_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ProductManagementDO extends BaseDO {
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@TableId(type = IdType.INPUT)
|
||||
private String id;
|
||||
/**
|
||||
* 商品名称
|
||||
*/
|
||||
private String productName;
|
||||
/**
|
||||
* 商品规格
|
||||
*/
|
||||
private String packingSpec;
|
||||
/**
|
||||
* 重量
|
||||
*/
|
||||
private String measuringUnit;
|
||||
/**
|
||||
* 单位
|
||||
*/
|
||||
private String packingUnit;
|
||||
/**
|
||||
* 商品图片
|
||||
*/
|
||||
private String image;
|
||||
/**
|
||||
* 商品介绍
|
||||
*/
|
||||
private String introduce;
|
||||
/**
|
||||
* 商品条码
|
||||
*/
|
||||
private String barCode;
|
||||
/**
|
||||
* 生产许可证
|
||||
*/
|
||||
private String permit;
|
||||
/**
|
||||
* 商标名称
|
||||
*/
|
||||
private String brandName;
|
||||
/**
|
||||
* 商标图片
|
||||
*/
|
||||
private String brandImage;
|
||||
/**
|
||||
* 商品认证
|
||||
*/
|
||||
private String brandAuthentication;
|
||||
/**
|
||||
* 基地id
|
||||
*/
|
||||
private String baseId;
|
||||
/**
|
||||
* 基地
|
||||
*/
|
||||
private String baseName;
|
||||
/**
|
||||
* 地块ID
|
||||
*/
|
||||
private String plotId;
|
||||
/**
|
||||
* 地块
|
||||
*/
|
||||
private String plotName;
|
||||
|
||||
private String tenantId;
|
||||
}
|
||||
|
||||
@@ -66,12 +66,12 @@ public class FertilizerIndexServiceImpl implements FertilizerIndexService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteFertilizerIndexListByIds(List<String> ids) {
|
||||
public void deleteFertilizerIndexListByIds(List<String> ids) {
|
||||
// 删除
|
||||
fertilizerIndexMapper.deleteByIds(ids);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateFertilizerIndexExists(String id) {
|
||||
private void validateFertilizerIndexExists(String id) {
|
||||
if (fertilizerIndexMapper.selectById(id) == null) {
|
||||
throw exception(FERTILIZER_INDEX_NOT_EXISTS);
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ package cn.iocoder.yudao.module.farm.service.modelweatherdisaster;
|
||||
|
||||
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
import cn.iocoder.yudao.framework.security.core.LoginUser;
|
||||
import cn.iocoder.yudao.module.farm.controller.admin.modelweatherdisaster.vo.ModelWeatherDisasterPageReqVO;
|
||||
import cn.iocoder.yudao.module.farm.controller.admin.modelweatherdisaster.vo.ModelWeatherDisasterSaveReqVO;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
Reference in New Issue
Block a user