Authored by htoooth

Merge branch 'test6.8.2' of http://git.yoho.cn/ufo/ufo-platform into test6.8.2

@@ -33,7 +33,7 @@ @@ -33,7 +33,7 @@
33 and brand.brand_name like concat('%', #{productDetails.brandName}, '%') 33 and brand.brand_name like concat('%', #{productDetails.brandName}, '%')
34 </if> 34 </if>
35 <if test="productDetails.sortName != null and productDetails.sortName != ''"> 35 <if test="productDetails.sortName != null and productDetails.sortName != ''">
36 - and sort1.sort_name like concat('%', #{productDetails.sortName}, '%') 36 + and (sort1.sort_name like concat('%', #{productDetails.sortName}, '%') or sort2.sort_name like concat('%', #{productDetails.sortName}, '%'))
37 </if> 37 </if>
38 </sql> 38 </sql>
39 39
@@ -224,8 +224,14 @@ public class TradeBillsServiceImpl implements ITradeBillsService { @@ -224,8 +224,14 @@ public class TradeBillsServiceImpl implements ITradeBillsService {
224 LOGGER.info("call ufo-RealNameAuthorize4PlatformController userRealNameAuthorize.getAliPayAccount interface is {}, result is {}", jsonObject.toJSONString()); 224 LOGGER.info("call ufo-RealNameAuthorize4PlatformController userRealNameAuthorize.getAliPayAccount interface is {}, result is {}", jsonObject.toJSONString());
225 if(200==jsonObject.getIntValue("code")){ 225 if(200==jsonObject.getIntValue("code")){
226 JSONObject data=jsonObject.getJSONObject("data"); 226 JSONObject data=jsonObject.getJSONObject("data");
227 - if(data!=null&&data.get("alipayAccount")!=null){  
228 - return data.getString("alipayAccount"); 227 + if(data!=null){
  228 + if(data.get("alipayUid")!=null&&StringUtils.isNotBlank(data.getString("alipayUid"))){
  229 + return data.getString("alipayUid");
  230 + }else if(data.get("alipayAccount")!=null&&StringUtils.isNotBlank(data.getString("alipayAccount"))){
  231 + return data.getString("alipayAccount");
  232 + }else{
  233 + return "";
  234 + }
229 } 235 }
230 } 236 }
231 return ""; 237 return "";
@@ -50,7 +50,7 @@ public class ResourceServiceImpl implements IResourceService{ @@ -50,7 +50,7 @@ public class ResourceServiceImpl implements IResourceService{
50 } 50 }
51 List<ResourceGetBo> resourceGetBoList = new ArrayList<>(); 51 List<ResourceGetBo> resourceGetBoList = new ArrayList<>();
52 for(Resources res : resourcesList){ 52 for(Resources res : resourcesList){
53 - ResourceGetBo bo = new ResourceGetBo(res.getId(), res.getName(), "APP", 53 + ResourceGetBo bo = new ResourceGetBo(res.getId(), res.getName(), Integer.valueOf(1).equals(res.getPlatformId()) ? "APP" : "小程序",
54 res.getCode(), res.getCreateTime()); 54 res.getCode(), res.getCreateTime());
55 resourceGetBoList.add(bo); 55 resourceGetBoList.add(bo);
56 } 56 }