Merge remote-tracking branch 'origin/test' into test
This commit is contained in:
commit
196d232e42
|
|
@ -126,17 +126,14 @@ public class TbShopInfoServiceImpl implements TbShopInfoService {
|
|||
Predicate query1 = criteriaBuilder.equal(root.get("id"), criteria.getId());
|
||||
Predicate query2 = criteriaBuilder.and(
|
||||
criteriaBuilder.equal(root.get("mainId"), criteria.getId()),
|
||||
criteriaBuilder.notEqual(root.get("type"), "only"),
|
||||
criteriaBuilder.equal(root.get("tubeType"), 1)
|
||||
criteriaBuilder.notEqual(root.get("type"), "only")
|
||||
);
|
||||
|
||||
|
||||
// 再将两个子条件进行或运算组合成最终条件
|
||||
Predicate predicate = criteriaBuilder.or(
|
||||
query1,
|
||||
query2
|
||||
);
|
||||
|
||||
criteriaBuilder.desc(root.get("tubeType"));
|
||||
return predicate;
|
||||
});
|
||||
return list;
|
||||
|
|
@ -213,6 +210,7 @@ public class TbShopInfoServiceImpl implements TbShopInfoService {
|
|||
}
|
||||
}else {
|
||||
tbShopInfo.setMainId(null);
|
||||
tbShopInfo.setTubeType(1);
|
||||
}
|
||||
|
||||
//增加商户详情
|
||||
|
|
@ -309,6 +307,7 @@ public class TbShopInfoServiceImpl implements TbShopInfoService {
|
|||
}
|
||||
}else {
|
||||
tbShopInfo.setMainId(null);
|
||||
tbShopInfo.setTubeType(1);
|
||||
}
|
||||
if (StringUtils.isNotBlank(resources.getShopName()) && !resources.getShopName().equals(tbShopInfo.getShopName())) {
|
||||
shopStaffRepository.updateNameById(resources.getShopName(),resources.getId().toString());
|
||||
|
|
|
|||
Loading…
Reference in New Issue