新增了单位接口
All checks were successful
Build and Push to Target Registry / 构建并推送镜像到目标仓库 (push) Successful in 6m55s
All checks were successful
Build and Push to Target Registry / 构建并推送镜像到目标仓库 (push) Successful in 6m55s
This commit is contained in:
parent
8966b52cc5
commit
9eeca6f32e
@ -7,11 +7,13 @@ import lombok.RequiredArgsConstructor;
|
||||
import org.apache.dubbo.config.annotation.DubboReference;
|
||||
import org.dromara.property.domain.AttendanceUserGroup;
|
||||
import org.dromara.property.domain.ServiceWorkOrdersType;
|
||||
import org.dromara.property.domain.TbUnit;
|
||||
import org.dromara.property.domain.enums.BookingPayStatusEnum;
|
||||
import org.dromara.property.domain.enums.BookingStatusEnum;
|
||||
import org.dromara.property.domain.enums.MeetAttachStatusEnum;
|
||||
import org.dromara.property.domain.enums.MeetStatusEnum;
|
||||
import org.dromara.property.mapper.ServiceWorkOrdersTypeMapper;
|
||||
import org.dromara.property.mapper.TbUnitMapper;
|
||||
import org.dromara.property.mapper.attendanceMapper.AttendanceUserGroupMapper;
|
||||
import org.dromara.property.service.*;
|
||||
import org.dromara.system.api.RemoteUserService;
|
||||
@ -47,6 +49,7 @@ public class EnumFetcherServiceImpl implements EnumFetcherService {
|
||||
@Autowired
|
||||
private ServiceWorkOrdersTypeMapper serviceWorkOrdersTypeMapper;
|
||||
@Autowired
|
||||
private TbUnitMapper unitMapper;
|
||||
private AttendanceUserGroupMapper attendanceUserGroupMapper;
|
||||
|
||||
@Override
|
||||
@ -74,11 +77,29 @@ public class EnumFetcherServiceImpl implements EnumFetcherService {
|
||||
return getAccount(new ArrayList<>());
|
||||
case "getServiceWorkOrdersHandler":
|
||||
return serviceWorkOrdersService.getServiceWorkOrdersHandler(type);
|
||||
case "getUnit":
|
||||
return getUnit();
|
||||
default:
|
||||
throw new IllegalArgumentException("Unknown type: " + type);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取单位枚举接口下拉
|
||||
* @return
|
||||
*/
|
||||
|
||||
private List<Map<Object, Object>> getUnit() {
|
||||
List<TbUnit> tbUnitList = unitMapper.selectList();
|
||||
return tbUnitList.stream()
|
||||
.map(e -> {
|
||||
Map<Object, Object> map = new HashMap<>();
|
||||
map.put("value", e.getId());
|
||||
map.put("name", e.getUnitName());
|
||||
return map;
|
||||
})
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取会议室状态枚举接口
|
||||
|
Loading…
Reference in New Issue
Block a user