package com.iailab.module.any.service.impl;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.iailab.framework.common.service.impl.BaseServiceImpl;
|
import com.iailab.framework.common.util.object.ConvertUtils;
|
import com.iailab.module.any.dao.AnyProcParamDao;
|
import com.iailab.module.any.dto.AnyProcParamDTO;
|
import com.iailab.module.any.entity.AnyProcParamEntity;
|
import com.iailab.module.any.service.AnyProcParamService;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
/**
|
* @author PanZhibao
|
* @Description
|
* @createTime 2024年06月25日
|
*/
|
@Service
|
public class AnyProcParamServiceImpl extends BaseServiceImpl<AnyProcParamDao, AnyProcParamEntity> implements AnyProcParamService {
|
|
@Override
|
public List<AnyProcParamDTO> listByCardId(String cardId) {
|
QueryWrapper<AnyProcParamEntity> wrapper = new QueryWrapper<>();
|
wrapper.eq("card_id", cardId)
|
.orderByAsc("sort");
|
List<AnyProcParamEntity> list = baseDao.selectList(wrapper);
|
return ConvertUtils.sourceToTarget(list, AnyProcParamDTO.class);
|
|
}
|
}
|