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