标签:dex parent span code collect _id map else message
/** * 判断当前分类产品分类的父分类是否已经添加到标签分类中, * 如果存在 返回true,否则,返回false * @param catalogId * @return */ public ServiceMessage<Boolean> checkParentCatalogIsExistInLabel(long catalogId){ // List<Long> catalogList =this.productCatalogMapper.getParentCatalogByCurrentCatalog(catalogId); if(null==catalogList||catalogList.size()==0){ return super.returnCorrectResult(false); }else{ long
<select id="getProductCatalogNumFromLabel" parameterType="list" resultType="long"> select count(1) from product_lab_catalog_goods a where a.source_type=1 and a.catalog_id in <foreach collection="list" item="listItem" index="index" open="(" separator="," close=")"> #{listItem} </foreach> </select>
=this.productLabelMapper.getProductCatalogNumFromLabel(catalogList); if(total>0){ return super.returnCorrectResult(true); }else{ return super.returnCorrectResult(false); } } }
mybatis 之 parameterType="list"1
标签:dex parent span code collect _id map else message
原文地址:http://www.cnblogs.com/wangchuanfu/p/7280239.html