修改了协议关联的数据字典错误的问题
This commit is contained in:
parent
85877e5aaf
commit
5d6ef5bd46
@ -138,6 +138,7 @@ public class PackageOrderResourceController extends DefaultBaseController {
|
||||
Map<String, Object> params = requestParams();
|
||||
params.put("userId", userId);
|
||||
params.put("packagePayStatus", "1");
|
||||
params.put("toResource", "对外提供查询info信息");
|
||||
page.setParams(params);
|
||||
return packageOrderService.listPage(page);
|
||||
}
|
||||
|
@ -37,6 +37,7 @@ import cn.com.tenlion.operator.service.packageorder.IPackageOrderService;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@ -276,8 +277,10 @@ public class PackageOrderServiceImpl extends DefaultBaseService implements IPack
|
||||
List<PackageOrderDTO> list = packageOrderDao.list(params);
|
||||
if(params.get("toResource") != null) {
|
||||
for(PackageOrderDTO dto : list) {
|
||||
PackageInfoAppDTO dto1 = iPackageInfoService.getById(dto.getPackageInfoId());
|
||||
dto.setPackageInfoAppDTO(dto1);
|
||||
PackageInfoDTO dto1 = iPackageInfoService.get(dto.getPackageInfoId());
|
||||
PackageInfoAppDTO dto2 = new PackageInfoAppDTO();
|
||||
BeanUtils.copyProperties(dto1, dto2);
|
||||
dto.setPackageInfoAppDTO(dto2);
|
||||
}
|
||||
}
|
||||
return list;
|
||||
|
Loading…
Reference in New Issue
Block a user