|
|
@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.core.conditions.Wrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import com.kms.yg.sz.domain.BsSgcSzSafeJbxx; |
|
|
|
import com.kms.yg.sz.service.BsSgcSzSafeJbxxService; |
|
|
|
import com.kms.yxgh.base.SzException; |
|
|
|
import com.kms.yxgh.sz.domain.SzYhPlan; |
|
|
|
import com.kms.yxgh.sz.dto.SzYhPlanDetailDto; |
|
|
@ -13,6 +15,7 @@ import com.kms.yxgh.util.BeanCopyUtils; |
|
|
|
import com.shuili.common.core.domain.SearchParam; |
|
|
|
import com.shuili.common.core.service.BaseService; |
|
|
|
import com.shuili.common.utils.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
@ -24,11 +27,15 @@ import org.springframework.transaction.annotation.Transactional; |
|
|
|
*/ |
|
|
|
@Service |
|
|
|
public class SzYhPlanService extends BaseService<SzYhPlanMapper, SzYhPlan> { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private BsSgcSzSafeJbxxService bsSgcSzSafeJbxxService; |
|
|
|
|
|
|
|
public SzYhPlanDetailDto getDetailById(String id) { |
|
|
|
SzYhPlan szPlan = this.getById(id); |
|
|
|
return BeanCopyUtils.copy(szPlan, SzYhPlanDetailDto.class); |
|
|
|
SzYhPlanDetailDto dto = BeanCopyUtils.copy(szPlan, SzYhPlanDetailDto.class); |
|
|
|
BsSgcSzSafeJbxx szInfo = bsSgcSzSafeJbxxService.selectByWagaCode(dto.getWagaCode()); |
|
|
|
dto.setWagaName(szInfo.getWagaName()); |
|
|
|
return dto; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|