Commit dd238ef7 authored by hezhen's avatar hezhen

123

parent d7470227
......@@ -69,10 +69,16 @@ public class AppVehicleController extends BaseController<VehicleBiz> {
}
@GetMapping("app/unauth/countByCompamyId/{id}")
@ApiModelProperty("商品详情")
@GetMapping("app/unauth/countByCompamyId")
@ApiModelProperty("商品数量")
@IgnoreUserToken
public ObjectRestResponse countByCompamyId(@PathVariable("id") Integer id ) {
public ObjectRestResponse countByCompamyId(@RequestParam(value = "id",defaultValue = "0") Integer id ) {
if (id == null || id == 0){
List<Integer> companyIds = getBusinessUserCompanyIds();
if (companyIds != null && companyIds.size() > 0){
id=companyIds.get(0);
}
}
return ObjectRestResponse.succ(baseBiz.countByCompanyId(id));
}
......
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