refactor(is): 将委托单位 ID 字段类型从 Long 改为 String
- 修改了 IsInspectionCommission 及其相关类中的 clientId 字段类型 - 更新了对应的 Mapper 和 XML 文件 -调整了查询条件和结果映射
This commit is contained in:
@@ -33,7 +33,7 @@ public class IsInspectionCommission extends BaseEntity {
|
||||
/**
|
||||
* 委托单位ID(外键关联客户表)
|
||||
*/
|
||||
private Long clientId;
|
||||
private String client;
|
||||
/**
|
||||
* 样品名称
|
||||
*/
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.klp.mes.is.domain.bo;
|
||||
|
||||
import com.alibaba.excel.annotation.format.DateTimeFormat;
|
||||
import com.klp.common.core.domain.BaseEntity;
|
||||
import liquibase.pro.packaged.S;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import javax.validation.constraints.*;
|
||||
@@ -33,7 +34,7 @@ public class IsInspectionCommissionBo extends BaseEntity {
|
||||
/**
|
||||
* 委托单位ID(外键关联客户表)
|
||||
*/
|
||||
private Long clientId;
|
||||
private String client;
|
||||
|
||||
/**
|
||||
* 样品名称
|
||||
|
||||
@@ -40,7 +40,7 @@ public class IsInspectionCommissionVo {
|
||||
*/
|
||||
@ExcelProperty(value = "委托单位ID", converter = ExcelDictConvert.class)
|
||||
@ExcelDictFormat(readConverterExp = "外=键关联客户表")
|
||||
private Long clientId;
|
||||
private String client;
|
||||
|
||||
/**
|
||||
* 样品名称
|
||||
|
||||
@@ -93,5 +93,12 @@ public class IsInspectionTaskVo {
|
||||
@ExcelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
//commission_no
|
||||
/**
|
||||
* 关联委托单号
|
||||
*/
|
||||
@ExcelProperty(value = "关联委托单号")
|
||||
private String commissionNo;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -89,4 +89,8 @@ public class IsSampleInventoryVo {
|
||||
private String remark;
|
||||
|
||||
|
||||
@ExcelProperty(value = "关联委托单号")
|
||||
private String commissionNo;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ import com.klp.mes.is.domain.IsInspectionTask;
|
||||
import com.klp.mes.is.domain.bo.IsInspectionTaskBo;
|
||||
import com.klp.mes.is.domain.vo.IsInspectionTaskVo;
|
||||
import com.klp.common.core.mapper.BaseMapperPlus;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* 检验任务表Mapper接口
|
||||
@@ -14,5 +15,5 @@ import com.klp.common.core.mapper.BaseMapperPlus;
|
||||
*/
|
||||
public interface IsInspectionTaskMapper extends BaseMapperPlus<IsInspectionTaskMapper, IsInspectionTask, IsInspectionTaskVo> {
|
||||
|
||||
Page<IsInspectionTaskVo> selectVoPagePlus(Page<Object> build, IsInspectionTaskBo bo);
|
||||
Page<IsInspectionTaskVo> selectVoPagePlus(@Param("page") Page<Object> build, @Param("bo") IsInspectionTaskBo bo);
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ import com.klp.mes.is.domain.IsSampleInventory;
|
||||
import com.klp.mes.is.domain.bo.IsSampleInventoryBo;
|
||||
import com.klp.mes.is.domain.vo.IsSampleInventoryVo;
|
||||
import com.klp.common.core.mapper.BaseMapperPlus;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* 样品库存表Mapper接口
|
||||
@@ -14,5 +15,5 @@ import com.klp.common.core.mapper.BaseMapperPlus;
|
||||
*/
|
||||
public interface IsSampleInventoryMapper extends BaseMapperPlus<IsSampleInventoryMapper, IsSampleInventory, IsSampleInventoryVo> {
|
||||
|
||||
Page<IsSampleInventoryVo> selectVoPagePlus(Page<Object> build, IsSampleInventoryBo bo);
|
||||
Page<IsSampleInventoryVo> selectVoPagePlus(Page<Object> build,@Param("bo") IsSampleInventoryBo bo);
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ public class IsInspectionCommissionServiceImpl implements IIsInspectionCommissio
|
||||
Map<String, Object> params = bo.getParams();
|
||||
LambdaQueryWrapper<IsInspectionCommission> lqw = Wrappers.lambdaQuery();
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getCommissionNo()), IsInspectionCommission::getCommissionNo, bo.getCommissionNo());
|
||||
lqw.eq(bo.getClientId() != null, IsInspectionCommission::getClientId, bo.getClientId());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getClient()) , IsInspectionCommission::getClient, bo.getClient());
|
||||
lqw.like(StringUtils.isNotBlank(bo.getSampleName()), IsInspectionCommission::getSampleName, bo.getSampleName());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getSampleType()), IsInspectionCommission::getSampleType, bo.getSampleType());
|
||||
lqw.eq(bo.getQuantity() != null, IsInspectionCommission::getQuantity, bo.getQuantity());
|
||||
|
||||
Reference in New Issue
Block a user