Explorar o código

APP服务页品类排序设置

anderx %!s(int64=8) %!d(string=hai) anos
pai
achega
97369f9d78

+ 1 - 1
src/main/java/com/goafanti/app/controller/AppServiceController.java

@@ -16,7 +16,7 @@ import com.goafanti.user.service.UserIdentityService;
 
 
 @RestController
-@RequestMapping(path = "/app/service", method = RequestMethod.GET)
+@RequestMapping(path = "/open/app/service", method = RequestMethod.GET)
 public class AppServiceController extends BaseApiController {
 	@Resource
 	private BusinessVarietiesService	adminVarietiesService;

+ 2 - 1
src/main/java/com/goafanti/common/mapper/BusinessVarietiesMapper.xml

@@ -517,11 +517,12 @@
   		and b.id= #{superId,jdbcType=VARCHAR}
   	</select>
   	<select id="getVarieties" resultType="com.goafanti.business.bo.VarietiesBo">
-  		select id, cname AS name, varieties_logo as varietiesLogo 
+  		    select id, cname AS name, varieties_logo as varietiesLogo ,sort
 	from business_varieties b
 	where b.delete_sign=0
 	and b.status=0
 	and b.layer=1
+	ORDER BY if(isnull(b.sort),1,0),b.sort
   	</select>
   	
   	<select id="getCidMax" resultType="String">