测试问题提交

This commit is contained in:
liang.chao 2024-06-24 18:18:19 +08:00
parent 51b8a10208
commit 904ac86d14
3 changed files with 6 additions and 3 deletions

View File

@ -173,6 +173,9 @@ public class MaType extends BaseEntity {
@ApiModelProperty(value = "库管员id") @ApiModelProperty(value = "库管员id")
private List<Long> keeperUserId; private List<Long> keeperUserId;
@ApiModelProperty(value = "库管员id")
private String keeperUserIds;
/** 库管员名称 */ /** 库管员名称 */
@ApiModelProperty(value = "库管员名称") @ApiModelProperty(value = "库管员名称")
@Excel(name = "库管员") @Excel(name = "库管员")

View File

@ -39,8 +39,8 @@ public class MaTypeServiceImpl implements ITypeService {
public MaType selectMaTypeByTypeId(Long typeId) { public MaType selectMaTypeByTypeId(Long typeId) {
MaType maType = maTypeMapper.selectMaTypeByTypeId(typeId); MaType maType = maTypeMapper.selectMaTypeByTypeId(typeId);
List<Long> idList = new ArrayList<>(); List<Long> idList = new ArrayList<>();
if (maType.getKeeperUserId() != null) { if (StringUtils.isNotBlank(maType.getKeeperUserIds())) {
String[] idStrings = maType.getTypeName().split(","); String[] idStrings = maType.getKeeperUserIds().split(",");
for (String idString : idStrings) { for (String idString : idStrings) {
try { try {
Long id = Long.parseLong(idString.trim()); Long id = Long.parseLong(idString.trim());

View File

@ -280,7 +280,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select m.type_id, m.type_name, m.parent_id, m.status, m.num, m.unit_id,m.unit_name, m.manage_type, select m.type_id, m.type_name, m.parent_id, m.status, m.num, m.unit_id,m.unit_name, m.manage_type,
m.lease_price, m.eff_time, m.rent_price, m.buy_price, m.pay_price, m.level, m.rated_load, m.test_load, m.lease_price, m.eff_time, m.rent_price, m.buy_price, m.pay_price, m.level, m.rated_load, m.test_load,
m.holding_time, m.warn_num, mtf.file_name photoName, mtf.file_url photoUrl, m.holding_time, m.warn_num, mtf.file_name photoName, mtf.file_url photoUrl,
mtf2.file_name documentName, mtf2.file_url documentUrl, GROUP_CONCAT(mtk.user_id) keeperUserId, mtf2.file_name documentName, mtf2.file_url documentUrl, GROUP_CONCAT(mtk.user_id) keeperUserIds,
GROUP_CONCAT(su.nick_name) as keeperUserName, mtr.user_id repairUserId, su1.nick_name repairUserName,mpi.prop_id as propId, mpi.prop_name as propName, GROUP_CONCAT(su.nick_name) as keeperUserName, mtr.user_id repairUserId, su1.nick_name repairUserName,mpi.prop_id as propId, mpi.prop_name as propName,
m.del_flag, m.create_by, m.create_time, m.del_flag, m.create_by, m.create_time,
m.remark, m.company_id,m.fac_model as facModel m.remark, m.company_id,m.fac_model as facModel