|
|
@ -28,6 +28,7 @@ import com.epmet.dao.IcServiceItemDictDao; |
|
|
|
import com.epmet.dto.form.demand.ServiceItemAddFormDTO; |
|
|
|
import com.epmet.dto.form.demand.ServiceItemPageFormDTO; |
|
|
|
import com.epmet.dto.form.demand.StatusFormDTO; |
|
|
|
import com.epmet.dto.result.demand.OptionDTO; |
|
|
|
import com.epmet.dto.result.demand.ServiceItemResultDTO; |
|
|
|
import com.epmet.entity.IcServiceItemDictEntity; |
|
|
|
import com.epmet.service.IcServiceItemDictService; |
|
|
@ -37,6 +38,7 @@ import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
@ -122,5 +124,28 @@ public class IcServiceItemDictServiceImpl extends BaseServiceImpl<IcServiceItemD |
|
|
|
baseDao.update(null, update); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 新增联建单位,查询服务事项列表 |
|
|
|
* |
|
|
|
* @param customerId |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public List<OptionDTO> queryDictList(String customerId) { |
|
|
|
List<OptionDTO> resultList=new ArrayList<>(); |
|
|
|
LambdaQueryWrapper<IcServiceItemDictEntity> query = new LambdaQueryWrapper<>(); |
|
|
|
query.eq(IcServiceItemDictEntity::getCustomerId, customerId) |
|
|
|
.orderByAsc(IcServiceItemDictEntity::getSort); |
|
|
|
List<IcServiceItemDictEntity> list=baseDao.selectList(query); |
|
|
|
for(IcServiceItemDictEntity entity:list){ |
|
|
|
OptionDTO optionDTO=new OptionDTO(); |
|
|
|
optionDTO.setLabel(entity.getCategoryName()); |
|
|
|
optionDTO.setValue(entity.getCategoryCode()); |
|
|
|
optionDTO.setAwardPoint(entity.getAwardPoint()); |
|
|
|
resultList.add(optionDTO); |
|
|
|
} |
|
|
|
return resultList; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |