库管员bug
This commit is contained in:
parent
bd706462e6
commit
bc3d9007fb
|
|
@ -171,7 +171,7 @@ public class MaType extends BaseEntity {
|
|||
|
||||
/** 库管员id */
|
||||
@ApiModelProperty(value = "库管员id")
|
||||
private List<Long> keeperUserIdList;
|
||||
private List<Long> keeperUserId;
|
||||
|
||||
/** 库管员名称 */
|
||||
@ApiModelProperty(value = "库管员名称")
|
||||
|
|
@ -453,12 +453,12 @@ public class MaType extends BaseEntity {
|
|||
this.isAncuo = isAncuo;
|
||||
}
|
||||
|
||||
public List<Long> getKeeperUserIdList() {
|
||||
return keeperUserIdList;
|
||||
public List<Long> getKeeperUserId() {
|
||||
return keeperUserId;
|
||||
}
|
||||
|
||||
public void setKeeperUserIdList(List<Long> keeperUserId) {
|
||||
this.keeperUserIdList = keeperUserIdList;
|
||||
this.keeperUserId = keeperUserId;
|
||||
}
|
||||
|
||||
public String getKeeperUserName() {
|
||||
|
|
|
|||
|
|
@ -83,8 +83,8 @@ public class MaTypeServiceImpl implements ITypeService {
|
|||
typeFileMapper.insertMaTypeFile(typeFile1);
|
||||
}
|
||||
// 库管员配置
|
||||
if (CollectionUtils.isNotEmpty(maType.getKeeperUserIdList())) {
|
||||
for (Long keeperUserId : maType.getKeeperUserIdList()) {
|
||||
if (CollectionUtils.isNotEmpty(maType.getKeeperUserId())) {
|
||||
for (Long keeperUserId : maType.getKeeperUserId()) {
|
||||
MaTypeKeeper typeKeeper = new MaTypeKeeper();
|
||||
typeKeeper.setUserId(keeperUserId);
|
||||
typeKeeper.setTypeId(typeId);
|
||||
|
|
@ -144,9 +144,9 @@ public class MaTypeServiceImpl implements ITypeService {
|
|||
typeFileMapper.insertMaTypeFile(typeFile1);
|
||||
}
|
||||
// 库管员配置
|
||||
if (CollectionUtils.isNotEmpty(maType.getKeeperUserIdList())) {
|
||||
if (CollectionUtils.isNotEmpty(maType.getKeeperUserId())) {
|
||||
maTypeMapper.deleteKeeperByTypeId(typeId);
|
||||
for (Long keeperUserId : maType.getKeeperUserIdList()) {
|
||||
for (Long keeperUserId : maType.getKeeperUserId()) {
|
||||
MaTypeKeeper typeKeeper = new MaTypeKeeper();
|
||||
typeKeeper.setUserId(keeperUserId);
|
||||
typeKeeper.setTypeId(typeId);
|
||||
|
|
|
|||
Loading…
Reference in New Issue