|
|
@@ -213,13 +213,19 @@ public class JtOrderServiceImpl extends BaseMybatisDao<JtOrderMapper> implements
|
|
|
if (null!=j.getCommodityType()) {
|
|
|
if (j.getCommodityType()==1||j.getCommodityType()==0) {
|
|
|
JtBusinessProject bp=JtBusinessProjectMapper.selectByPrimaryKey(j.getCommodityId());
|
|
|
- j.setImgUrl(bp.getMinImgUrl());
|
|
|
+ if (null!=bp) {
|
|
|
+ j.setImgUrl(bp.getMinImgUrl());
|
|
|
+ }
|
|
|
}else if (j.getCommodityType()==2) {
|
|
|
Achievement a=achievementMapper.selectByPrimaryKey(j.getCommodityId());
|
|
|
+ if (null!=a) {
|
|
|
j.setImgUrl(a.getTechnicalPictureUrl());
|
|
|
+ }
|
|
|
}else if (j.getCommodityType()==3) {
|
|
|
Demand d=demandMapper.selectByPrimaryKey(j.getCommodityId());
|
|
|
+ if (null!=d) {
|
|
|
j.setImgUrl(d.getPictureUrl());
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|