Commit cfdaee8a authored by unset's avatar unset

添加订单商品信息

parent 115ae565
...@@ -123,6 +123,22 @@ public class IndustryApplicationInfoBiz extends BaseBiz<IndustryApplicationInfoM ...@@ -123,6 +123,22 @@ public class IndustryApplicationInfoBiz extends BaseBiz<IndustryApplicationInfoM
return mapper.selectByExample(example); return mapper.selectByExample(example);
} }
/**
* 根据参数查询行业应用信息
* @param industryApplicationInfo
* @return
*/
public List<IndustryApplicationInfo> getAllByParam(IndustryApplicationInfo industryApplicationInfo) {
Example example = new Example(IndustryApplicationInfo.class);
Example.Criteria criteria = example.createCriteria();
criteria.andEqualTo("isDel", 0).andEqualTo("status", 1);
if (industryApplicationInfo.getFirstTypeId() != null) {
criteria.andEqualTo("firstTypeId", industryApplicationInfo.getFirstTypeId()).orEqualTo("secondTypeId", industryApplicationInfo.getFirstTypeId());
}
return mapper.selectByExample(example);
}
/** /**
* 获取所有行业应用 * 获取所有行业应用
* @return * @return
......
...@@ -111,9 +111,10 @@ public class IndustryApplicationTypeBiz extends BaseBiz<IndustryApplicationTypeM ...@@ -111,9 +111,10 @@ public class IndustryApplicationTypeBiz extends BaseBiz<IndustryApplicationTypeM
return ObjectRestResponse.succ(industryTypeVo); return ObjectRestResponse.succ(industryTypeVo);
} }
BeanUtil.copyProperties(industryApplicationType, industryTypeVo, CopyOptions.create().setIgnoreNullValue(true).setIgnoreError(true)); BeanUtil.copyProperties(industryApplicationType, industryTypeVo, CopyOptions.create().setIgnoreNullValue(true).setIgnoreError(true));
List<IndustryApplicationInfo> industryApplicationInfoList = industryApplicationInfoBiz.selectList(new IndustryApplicationInfo(){{ List<IndustryApplicationInfo> industryApplicationInfoList = industryApplicationInfoBiz.getAllByParam(new IndustryApplicationInfo(){{
setIsDel(0); setIsDel(0);
setStatus(1); setStatus(1);
setFirstTypeId(industryApplicationType.getId());
}}); }});
if (industryApplicationInfoList != null && industryApplicationInfoList.size() > 0) { if (industryApplicationInfoList != null && industryApplicationInfoList.size() > 0) {
industryTypeVo.setIndustryApplicationInfoList(industryApplicationInfoList); industryTypeVo.setIndustryApplicationInfoList(industryApplicationInfoList);
...@@ -121,4 +122,6 @@ public class IndustryApplicationTypeBiz extends BaseBiz<IndustryApplicationTypeM ...@@ -121,4 +122,6 @@ public class IndustryApplicationTypeBiz extends BaseBiz<IndustryApplicationTypeM
return ObjectRestResponse.succ(industryTypeVo); return ObjectRestResponse.succ(industryTypeVo);
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment