diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxAppinfoController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxAppinfoController.java index 5b4c7a7b1..d228e669b 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxAppinfoController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxAppinfoController.java @@ -2,34 +2,29 @@ package com.simple.controller; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.ModelAttribute; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.util.Assert; +import org.springframework.web.bind.annotation.*; import com.github.pagehelper.PageInfo; import com.simple.common.Result; import com.simple.common.ResultData; + import com.simple.domain.po.WxAppinfo; import com.simple.service.WxAppinfoService; - -import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxAppinfo") -@Api(description="小程序配置接口") public class WxAppinfoController extends BaseController { @Autowired private WxAppinfoService wxAppinfoService; private Logger logger = Logger.getLogger(WxAppinfoController.class); - @ApiOperation("") + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -40,6 +35,7 @@ public class WxAppinfoController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxAppinfo wxAppinfo) { //Assert.notNull(wxAppinfo.getName(), "角色名不能为空"); @@ -48,12 +44,14 @@ public class WxAppinfoController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxAppinfo wxAppinfo) { wxAppinfoService.saveOrUpdate(wxAppinfo); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -61,6 +59,7 @@ public class WxAppinfoController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxBLogController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxBLogController.java index d3673eeda..f438992e0 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxBLogController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxBLogController.java @@ -1,6 +1,5 @@ package com.simple.controller; -import io.swagger.annotations.Api; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.Assert; @@ -14,17 +13,18 @@ import com.simple.domain.po.WxBLog; import com.simple.service.WxBLogService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxBLog") -@Api(description="B端log接口") public class WxBLogController extends BaseController { @Autowired private WxBLogService wxBLogService; private Logger logger = Logger.getLogger(WxBLogController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -35,6 +35,7 @@ public class WxBLogController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxBLog wxBLog) { //Assert.notNull(wxBLog.getName(), "角色名不能为空"); @@ -43,12 +44,14 @@ public class WxBLogController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxBLog wxBLog) { wxBLogService.saveOrUpdate(wxBLog); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -56,6 +59,7 @@ public class WxBLogController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxBUserMerchantController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxBUserMerchantController.java index c156204e7..4478ac942 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxBUserMerchantController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxBUserMerchantController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxBUserMerchant; import com.simple.service.WxBUserMerchantService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxBUserMerchant") @@ -22,7 +23,8 @@ public class WxBUserMerchantController extends BaseController private WxBUserMerchantService wxBUserMerchantService; private Logger logger = Logger.getLogger(WxBUserMerchantController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxBUserMerchantController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxBUserMerchant wxBUserMerchant) { //Assert.notNull(wxBUserMerchant.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxBUserMerchantController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxBUserMerchant wxBUserMerchant) { wxBUserMerchantService.saveOrUpdate(wxBUserMerchant); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxBUserMerchantController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxBannersController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxBannersController.java index 791958bec..e148e2402 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxBannersController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxBannersController.java @@ -1,6 +1,5 @@ package com.simple.controller; -import io.swagger.annotations.Api; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.Assert; @@ -14,17 +13,18 @@ import com.simple.domain.po.WxBanners; import com.simple.service.WxBannersService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxBanners") -@Api(description="banner相关接口") public class WxBannersController extends BaseController { @Autowired private WxBannersService wxBannersService; private Logger logger = Logger.getLogger(WxBannersController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -35,6 +35,7 @@ public class WxBannersController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxBanners wxBanners) { //Assert.notNull(wxBanners.getName(), "角色名不能为空"); @@ -43,12 +44,14 @@ public class WxBannersController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxBanners wxBanners) { wxBannersService.saveOrUpdate(wxBanners); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -56,6 +59,7 @@ public class WxBannersController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxBusinessController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxBusinessController.java index adea1acf8..3f0d53b90 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxBusinessController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxBusinessController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxBusiness; import com.simple.service.WxBusinessService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxBusiness") @@ -22,7 +23,8 @@ public class WxBusinessController extends BaseController private WxBusinessService wxBusinessService; private Logger logger = Logger.getLogger(WxBusinessController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxBusinessController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxBusiness wxBusiness) { //Assert.notNull(wxBusiness.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxBusinessController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxBusiness wxBusiness) { wxBusinessService.saveOrUpdate(wxBusiness); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxBusinessController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxCLogController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxCLogController.java index ed135ee49..934c12628 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxCLogController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxCLogController.java @@ -1,6 +1,5 @@ package com.simple.controller; -import io.swagger.annotations.Api; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.Assert; @@ -14,17 +13,18 @@ import com.simple.domain.po.WxCLog; import com.simple.service.WxCLogService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxCLog") -@Api(description="C端log接口") public class WxCLogController extends BaseController { @Autowired private WxCLogService wxCLogService; private Logger logger = Logger.getLogger(WxCLogController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -35,6 +35,7 @@ public class WxCLogController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxCLog wxCLog) { //Assert.notNull(wxCLog.getName(), "角色名不能为空"); @@ -43,12 +44,14 @@ public class WxCLogController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxCLog wxCLog) { wxCLogService.saveOrUpdate(wxCLog); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -56,6 +59,7 @@ public class WxCLogController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxCUserCarsController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxCUserCarsController.java index 8a9478d3a..8b9374f21 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxCUserCarsController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxCUserCarsController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxCUserCars; import com.simple.service.WxCUserCarsService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxCUserCars") @@ -22,7 +23,8 @@ public class WxCUserCarsController extends BaseController private WxCUserCarsService wxCUserCarsService; private Logger logger = Logger.getLogger(WxCUserCarsController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxCUserCarsController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxCUserCars wxCUserCars) { //Assert.notNull(wxCUserCars.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxCUserCarsController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxCUserCars wxCUserCars) { wxCUserCarsService.saveOrUpdate(wxCUserCars); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxCUserCarsController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxCUserCloudController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxCUserCloudController.java index 3474cdf90..f3b0a9b17 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxCUserCloudController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxCUserCloudController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxCUserCloud; import com.simple.service.WxCUserCloudService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxCUserCloud") @@ -22,7 +23,8 @@ public class WxCUserCloudController extends BaseController private WxCUserCloudService wxCUserCloudService; private Logger logger = Logger.getLogger(WxCUserCloudController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxCUserCloudController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxCUserCloud wxCUserCloud) { //Assert.notNull(wxCUserCloud.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxCUserCloudController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxCUserCloud wxCUserCloud) { wxCUserCloudService.saveOrUpdate(wxCUserCloud); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxCUserCloudController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxCUserController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxCUserController.java index cc6dfd119..f93ce3c99 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxCUserController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxCUserController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxCUser; import com.simple.service.WxCUserService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxCUser") @@ -22,7 +23,8 @@ public class WxCUserController extends BaseController private WxCUserService wxCUserService; private Logger logger = Logger.getLogger(WxCUserController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxCUserController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxCUser wxCUser) { //Assert.notNull(wxCUser.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxCUserController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxCUser wxCUser) { wxCUserService.saveOrUpdate(wxCUser); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxCUserController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxCUserEtcpTokenController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxCUserEtcpTokenController.java index 7e79e2099..058c0f17f 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxCUserEtcpTokenController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxCUserEtcpTokenController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxCUserEtcpToken; import com.simple.service.WxCUserEtcpTokenService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxCUserEtcpToken") @@ -22,7 +23,8 @@ public class WxCUserEtcpTokenController extends BaseController private WxCUserEtcpTokenService wxCUserEtcpTokenService; private Logger logger = Logger.getLogger(WxCUserEtcpTokenController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxCUserEtcpTokenController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxCUserEtcpToken wxCUserEtcpToken) { //Assert.notNull(wxCUserEtcpToken.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxCUserEtcpTokenController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxCUserEtcpToken wxCUserEtcpToken) { wxCUserEtcpTokenService.saveOrUpdate(wxCUserEtcpToken); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxCUserEtcpTokenController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxCUserTagsController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxCUserTagsController.java index be11d6158..8dc774b51 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxCUserTagsController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxCUserTagsController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxCUserTags; import com.simple.service.WxCUserTagsService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxCUserTags") @@ -22,7 +23,8 @@ public class WxCUserTagsController extends BaseController private WxCUserTagsService wxCUserTagsService; private Logger logger = Logger.getLogger(WxCUserTagsController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxCUserTagsController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxCUserTags wxCUserTags) { //Assert.notNull(wxCUserTags.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxCUserTagsController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxCUserTags wxCUserTags) { wxCUserTagsService.saveOrUpdate(wxCUserTags); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxCUserTagsController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxCouponActionLogController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxCouponActionLogController.java index e5d515591..8b0605cc3 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxCouponActionLogController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxCouponActionLogController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxCouponActionLog; import com.simple.service.WxCouponActionLogService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxCouponActionLog") @@ -22,7 +23,8 @@ public class WxCouponActionLogController extends BaseController private WxCouponActionLogService wxCouponActionLogService; private Logger logger = Logger.getLogger(WxCouponActionLogController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxCouponActionLogController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxCouponActionLog wxCouponActionLog) { //Assert.notNull(wxCouponActionLog.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxCouponActionLogController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxCouponActionLog wxCouponActionLog) { wxCouponActionLogService.saveOrUpdate(wxCouponActionLog); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxCouponActionLogController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxCouponActivityController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxCouponActivityController.java index 9e2b73467..734e68e1a 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxCouponActivityController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxCouponActivityController.java @@ -1,6 +1,5 @@ package com.simple.controller; -import io.swagger.annotations.Api; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.Assert; @@ -14,17 +13,18 @@ import com.simple.domain.po.WxCouponActivity; import com.simple.service.WxCouponActivityService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxCouponActivity") -@Api(description="卡券详情接口") public class WxCouponActivityController extends BaseController { @Autowired private WxCouponActivityService wxCouponActivityService; private Logger logger = Logger.getLogger(WxCouponActivityController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -35,6 +35,7 @@ public class WxCouponActivityController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxCouponActivity wxCouponActivity) { //Assert.notNull(wxCouponActivity.getName(), "角色名不能为空"); @@ -43,12 +44,14 @@ public class WxCouponActivityController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxCouponActivity wxCouponActivity) { wxCouponActivityService.saveOrUpdate(wxCouponActivity); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -56,6 +59,7 @@ public class WxCouponActivityController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxCouponController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxCouponController.java index 92680c0e7..b6c367805 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxCouponController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxCouponController.java @@ -1,6 +1,5 @@ package com.simple.controller; -import io.swagger.annotations.Api; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.Assert; @@ -12,19 +11,23 @@ import com.simple.common.ResultData; import com.simple.domain.po.WxCoupon; import com.simple.service.WxCouponService; + +import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxCoupon") -@Api(description="卡券接口") +@Api(description="优惠券相关接口") public class WxCouponController extends BaseController { @Autowired private WxCouponService wxCouponService; private Logger logger = Logger.getLogger(WxCouponController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -35,6 +38,7 @@ public class WxCouponController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxCoupon wxCoupon) { //Assert.notNull(wxCoupon.getName(), "角色名不能为空"); @@ -43,12 +47,14 @@ public class WxCouponController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxCoupon wxCoupon) { wxCouponService.saveOrUpdate(wxCoupon); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -56,6 +62,7 @@ public class WxCouponController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxCouponRecordController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxCouponRecordController.java index 6ea797ca6..d851b2e02 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxCouponRecordController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxCouponRecordController.java @@ -1,6 +1,5 @@ package com.simple.controller; -import io.swagger.annotations.Api; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.Assert; @@ -14,17 +13,18 @@ import com.simple.domain.po.WxCouponRecord; import com.simple.service.WxCouponRecordService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxCouponRecord") -@Api(description="卡券使用记录接口") public class WxCouponRecordController extends BaseController { @Autowired private WxCouponRecordService wxCouponRecordService; private Logger logger = Logger.getLogger(WxCouponRecordController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -35,6 +35,7 @@ public class WxCouponRecordController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxCouponRecord wxCouponRecord) { //Assert.notNull(wxCouponRecord.getName(), "角色名不能为空"); @@ -43,12 +44,14 @@ public class WxCouponRecordController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxCouponRecord wxCouponRecord) { wxCouponRecordService.saveOrUpdate(wxCouponRecord); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -56,6 +59,7 @@ public class WxCouponRecordController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxCouponTypeController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxCouponTypeController.java index a5506e22a..562d2c543 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxCouponTypeController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxCouponTypeController.java @@ -1,6 +1,5 @@ package com.simple.controller; -import io.swagger.annotations.Api; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.Assert; @@ -12,19 +11,23 @@ import com.simple.common.ResultData; import com.simple.domain.po.WxCouponType; import com.simple.service.WxCouponTypeService; + +import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxCouponType") -@Api(description="卡券类型接口") +@Api(description="优惠券类型相关接口") public class WxCouponTypeController extends BaseController { @Autowired private WxCouponTypeService wxCouponTypeService; private Logger logger = Logger.getLogger(WxCouponTypeController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -35,6 +38,7 @@ public class WxCouponTypeController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxCouponType wxCouponType) { //Assert.notNull(wxCouponType.getName(), "角色名不能为空"); @@ -43,12 +47,14 @@ public class WxCouponTypeController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxCouponType wxCouponType) { wxCouponTypeService.saveOrUpdate(wxCouponType); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -56,6 +62,7 @@ public class WxCouponTypeController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpCouponRecordController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpCouponRecordController.java index 7bf204bc8..c31c86685 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpCouponRecordController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpCouponRecordController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxEtcpCouponRecord; import com.simple.service.WxEtcpCouponRecordService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxEtcpCouponRecord") @@ -22,7 +23,8 @@ public class WxEtcpCouponRecordController extends BaseController private WxEtcpCouponRecordService wxEtcpCouponRecordService; private Logger logger = Logger.getLogger(WxEtcpCouponRecordController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxEtcpCouponRecordController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxEtcpCouponRecord wxEtcpCouponRecord) { //Assert.notNull(wxEtcpCouponRecord.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxEtcpCouponRecordController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxEtcpCouponRecord wxEtcpCouponRecord) { wxEtcpCouponRecordService.saveOrUpdate(wxEtcpCouponRecord); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxEtcpCouponRecordController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkDissolutionController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkDissolutionController.java index a39a04321..872b2c2f4 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkDissolutionController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkDissolutionController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxEtcpParkDissolution; import com.simple.service.WxEtcpParkDissolutionService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxEtcpParkDissolution") @@ -22,7 +23,8 @@ public class WxEtcpParkDissolutionController extends BaseController private WxEtcpParkDissolutionService wxEtcpParkDissolutionService; private Logger logger = Logger.getLogger(WxEtcpParkDissolutionController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxEtcpParkDissolutionController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxEtcpParkDissolution wxEtcpParkDissolution) { //Assert.notNull(wxEtcpParkDissolution.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxEtcpParkDissolutionController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxEtcpParkDissolution wxEtcpParkDissolution) { wxEtcpParkDissolutionService.saveOrUpdate(wxEtcpParkDissolution); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxEtcpParkDissolutionController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkInController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkInController.java index 1fd816c91..4fcf94ab9 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkInController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkInController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxEtcpParkIn; import com.simple.service.WxEtcpParkInService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxEtcpParkIn") @@ -22,7 +23,8 @@ public class WxEtcpParkInController extends BaseController private WxEtcpParkInService wxEtcpParkInService; private Logger logger = Logger.getLogger(WxEtcpParkInController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxEtcpParkInController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxEtcpParkIn wxEtcpParkIn) { //Assert.notNull(wxEtcpParkIn.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxEtcpParkInController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxEtcpParkIn wxEtcpParkIn) { wxEtcpParkInService.saveOrUpdate(wxEtcpParkIn); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxEtcpParkInController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkMsgSucController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkMsgSucController.java index f8175a7fd..039823b93 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkMsgSucController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkMsgSucController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxEtcpParkMsgSuc; import com.simple.service.WxEtcpParkMsgSucService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxEtcpParkMsgSuc") @@ -22,7 +23,8 @@ public class WxEtcpParkMsgSucController extends BaseController private WxEtcpParkMsgSucService wxEtcpParkMsgSucService; private Logger logger = Logger.getLogger(WxEtcpParkMsgSucController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxEtcpParkMsgSucController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxEtcpParkMsgSuc wxEtcpParkMsgSuc) { //Assert.notNull(wxEtcpParkMsgSuc.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxEtcpParkMsgSucController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxEtcpParkMsgSuc wxEtcpParkMsgSuc) { wxEtcpParkMsgSucService.saveOrUpdate(wxEtcpParkMsgSuc); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxEtcpParkMsgSucController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkOrderunpayController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkOrderunpayController.java index f3cc90dd8..678976174 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkOrderunpayController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkOrderunpayController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxEtcpParkOrderunpay; import com.simple.service.WxEtcpParkOrderunpayService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxEtcpParkOrderunpay") @@ -22,7 +23,8 @@ public class WxEtcpParkOrderunpayController extends BaseController private WxEtcpParkOrderunpayService wxEtcpParkOrderunpayService; private Logger logger = Logger.getLogger(WxEtcpParkOrderunpayController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxEtcpParkOrderunpayController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxEtcpParkOrderunpay wxEtcpParkOrderunpay) { //Assert.notNull(wxEtcpParkOrderunpay.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxEtcpParkOrderunpayController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxEtcpParkOrderunpay wxEtcpParkOrderunpay) { wxEtcpParkOrderunpayService.saveOrUpdate(wxEtcpParkOrderunpay); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxEtcpParkOrderunpayController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkOutController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkOutController.java index f17bf75c8..a09fdbc29 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkOutController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkOutController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxEtcpParkOut; import com.simple.service.WxEtcpParkOutService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxEtcpParkOut") @@ -22,7 +23,8 @@ public class WxEtcpParkOutController extends BaseController private WxEtcpParkOutService wxEtcpParkOutService; private Logger logger = Logger.getLogger(WxEtcpParkOutController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxEtcpParkOutController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxEtcpParkOut wxEtcpParkOut) { //Assert.notNull(wxEtcpParkOut.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxEtcpParkOutController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxEtcpParkOut wxEtcpParkOut) { wxEtcpParkOutService.saveOrUpdate(wxEtcpParkOut); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxEtcpParkOutController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkTransactionController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkTransactionController.java index e7e196e7b..4dd30914c 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkTransactionController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkTransactionController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxEtcpParkTransaction; import com.simple.service.WxEtcpParkTransactionService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxEtcpParkTransaction") @@ -22,7 +23,8 @@ public class WxEtcpParkTransactionController extends BaseController private WxEtcpParkTransactionService wxEtcpParkTransactionService; private Logger logger = Logger.getLogger(WxEtcpParkTransactionController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxEtcpParkTransactionController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxEtcpParkTransaction wxEtcpParkTransaction) { //Assert.notNull(wxEtcpParkTransaction.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxEtcpParkTransactionController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxEtcpParkTransaction wxEtcpParkTransaction) { wxEtcpParkTransactionService.saveOrUpdate(wxEtcpParkTransaction); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxEtcpParkTransactionController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkUnbindController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkUnbindController.java index f7228b97c..730f2758e 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkUnbindController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxEtcpParkUnbindController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxEtcpParkUnbind; import com.simple.service.WxEtcpParkUnbindService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxEtcpParkUnbind") @@ -22,7 +23,8 @@ public class WxEtcpParkUnbindController extends BaseController private WxEtcpParkUnbindService wxEtcpParkUnbindService; private Logger logger = Logger.getLogger(WxEtcpParkUnbindController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxEtcpParkUnbindController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxEtcpParkUnbind wxEtcpParkUnbind) { //Assert.notNull(wxEtcpParkUnbind.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxEtcpParkUnbindController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxEtcpParkUnbind wxEtcpParkUnbind) { wxEtcpParkUnbindService.saveOrUpdate(wxEtcpParkUnbind); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxEtcpParkUnbindController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxFlashSaleController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxFlashSaleController.java index 43b1d33a9..6f71d5f0d 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxFlashSaleController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxFlashSaleController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxFlashSale; import com.simple.service.WxFlashSaleService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxFlashSale") @@ -22,7 +23,8 @@ public class WxFlashSaleController extends BaseController private WxFlashSaleService wxFlashSaleService; private Logger logger = Logger.getLogger(WxFlashSaleController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxFlashSaleController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxFlashSale wxFlashSale) { //Assert.notNull(wxFlashSale.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxFlashSaleController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxFlashSale wxFlashSale) { wxFlashSaleService.saveOrUpdate(wxFlashSale); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxFlashSaleController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxImgUrlController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxImgUrlController.java index 550e45391..12c706660 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxImgUrlController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxImgUrlController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxImgUrl; import com.simple.service.WxImgUrlService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxImgUrl") @@ -22,7 +23,8 @@ public class WxImgUrlController extends BaseController private WxImgUrlService wxImgUrlService; private Logger logger = Logger.getLogger(WxImgUrlController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxImgUrlController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxImgUrl wxImgUrl) { //Assert.notNull(wxImgUrl.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxImgUrlController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxImgUrl wxImgUrl) { wxImgUrlService.saveOrUpdate(wxImgUrl); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxImgUrlController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxMallBuildingController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxMallBuildingController.java index 016d48960..170a712bb 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxMallBuildingController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxMallBuildingController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxMallBuilding; import com.simple.service.WxMallBuildingService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxMallBuilding") @@ -22,7 +23,8 @@ public class WxMallBuildingController extends BaseController private WxMallBuildingService wxMallBuildingService; private Logger logger = Logger.getLogger(WxMallBuildingController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxMallBuildingController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxMallBuilding wxMallBuilding) { //Assert.notNull(wxMallBuilding.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxMallBuildingController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxMallBuilding wxMallBuilding) { wxMallBuildingService.saveOrUpdate(wxMallBuilding); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxMallBuildingController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxMallController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxMallController.java index 108804a81..def24e2a4 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxMallController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxMallController.java @@ -1,6 +1,5 @@ package com.simple.controller; -import io.swagger.annotations.Api; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.Assert; @@ -14,17 +13,18 @@ import com.simple.domain.po.WxMall; import com.simple.service.WxMallService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxMall") -@Api(description="商场信息接口") public class WxMallController extends BaseController { @Autowired private WxMallService wxMallService; private Logger logger = Logger.getLogger(WxMallController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -35,6 +35,7 @@ public class WxMallController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxMall wxMall) { //Assert.notNull(wxMall.getName(), "角色名不能为空"); @@ -43,12 +44,14 @@ public class WxMallController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxMall wxMall) { wxMallService.saveOrUpdate(wxMall); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -56,6 +59,7 @@ public class WxMallController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxMallFloorController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxMallFloorController.java index b2b0ec484..23e580207 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxMallFloorController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxMallFloorController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxMallFloor; import com.simple.service.WxMallFloorService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxMallFloor") @@ -22,7 +23,8 @@ public class WxMallFloorController extends BaseController private WxMallFloorService wxMallFloorService; private Logger logger = Logger.getLogger(WxMallFloorController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxMallFloorController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxMallFloor wxMallFloor) { //Assert.notNull(wxMallFloor.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxMallFloorController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxMallFloor wxMallFloor) { wxMallFloorService.saveOrUpdate(wxMallFloor); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxMallFloorController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxMerchantController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxMerchantController.java index 5e25abd3b..91e177f88 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxMerchantController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxMerchantController.java @@ -1,6 +1,5 @@ package com.simple.controller; -import io.swagger.annotations.Api; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.Assert; @@ -14,17 +13,18 @@ import com.simple.domain.po.WxMerchant; import com.simple.service.WxMerchantService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxMerchant") -@Api(description="商户相关接口") public class WxMerchantController extends BaseController { @Autowired private WxMerchantService wxMerchantService; private Logger logger = Logger.getLogger(WxMerchantController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -35,6 +35,7 @@ public class WxMerchantController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxMerchant wxMerchant) { //Assert.notNull(wxMerchant.getName(), "角色名不能为空"); @@ -43,12 +44,14 @@ public class WxMerchantController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxMerchant wxMerchant) { wxMerchantService.saveOrUpdate(wxMerchant); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -56,6 +59,7 @@ public class WxMerchantController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxMerchantEtcpController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxMerchantEtcpController.java index 067e5622c..ab4121599 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxMerchantEtcpController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxMerchantEtcpController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxMerchantEtcp; import com.simple.service.WxMerchantEtcpService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxMerchantEtcp") @@ -22,7 +23,8 @@ public class WxMerchantEtcpController extends BaseController private WxMerchantEtcpService wxMerchantEtcpService; private Logger logger = Logger.getLogger(WxMerchantEtcpController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxMerchantEtcpController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxMerchantEtcp wxMerchantEtcp) { //Assert.notNull(wxMerchantEtcp.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxMerchantEtcpController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxMerchantEtcp wxMerchantEtcp) { wxMerchantEtcpService.saveOrUpdate(wxMerchantEtcp); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxMerchantEtcpController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxMerchantShopController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxMerchantShopController.java index 92b79dfa5..f0c78f729 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxMerchantShopController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxMerchantShopController.java @@ -1,6 +1,5 @@ package com.simple.controller; -import io.swagger.annotations.Api; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.Assert; @@ -14,17 +13,18 @@ import com.simple.domain.po.WxMerchantShop; import com.simple.service.WxMerchantShopService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxMerchantShop") -@Api(description="商户店铺接口") public class WxMerchantShopController extends BaseController { @Autowired private WxMerchantShopService wxMerchantShopService; private Logger logger = Logger.getLogger(WxMerchantShopController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -35,6 +35,7 @@ public class WxMerchantShopController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxMerchantShop wxMerchantShop) { //Assert.notNull(wxMerchantShop.getName(), "角色名不能为空"); @@ -43,12 +44,14 @@ public class WxMerchantShopController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxMerchantShop wxMerchantShop) { wxMerchantShopService.saveOrUpdate(wxMerchantShop); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -56,6 +59,7 @@ public class WxMerchantShopController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxMerchantTradeDaysController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxMerchantTradeDaysController.java index b71d2fdb1..710818e46 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxMerchantTradeDaysController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxMerchantTradeDaysController.java @@ -1,6 +1,5 @@ package com.simple.controller; -import io.swagger.annotations.Api; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.Assert; @@ -14,17 +13,18 @@ import com.simple.domain.po.WxMerchantTradeDays; import com.simple.service.WxMerchantTradeDaysService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxMerchantTradeDays") -@Api(description="商户日结单额接口") public class WxMerchantTradeDaysController extends BaseController { @Autowired private WxMerchantTradeDaysService wxMerchantTradeDaysService; private Logger logger = Logger.getLogger(WxMerchantTradeDaysController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -35,6 +35,7 @@ public class WxMerchantTradeDaysController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxMerchantTradeDays wxMerchantTradeDays) { //Assert.notNull(wxMerchantTradeDays.getName(), "角色名不能为空"); @@ -43,12 +44,14 @@ public class WxMerchantTradeDaysController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxMerchantTradeDays wxMerchantTradeDays) { wxMerchantTradeDaysService.saveOrUpdate(wxMerchantTradeDays); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -56,6 +59,7 @@ public class WxMerchantTradeDaysController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxMsgConfigController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxMsgConfigController.java index 7b5c3715d..7ec2199c4 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxMsgConfigController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxMsgConfigController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxMsgConfig; import com.simple.service.WxMsgConfigService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxMsgConfig") @@ -22,7 +23,8 @@ public class WxMsgConfigController extends BaseController private WxMsgConfigService wxMsgConfigService; private Logger logger = Logger.getLogger(WxMsgConfigController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxMsgConfigController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxMsgConfig wxMsgConfig) { //Assert.notNull(wxMsgConfig.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxMsgConfigController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxMsgConfig wxMsgConfig) { wxMsgConfigService.saveOrUpdate(wxMsgConfig); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxMsgConfigController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxMsgController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxMsgController.java index eaa74fa3a..e97b4a3c6 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxMsgController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxMsgController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxMsg; import com.simple.service.WxMsgService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxMsg") @@ -22,7 +23,8 @@ public class WxMsgController extends BaseController private WxMsgService wxMsgService; private Logger logger = Logger.getLogger(WxMsgController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxMsgController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxMsg wxMsg) { //Assert.notNull(wxMsg.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxMsgController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxMsg wxMsg) { wxMsgService.saveOrUpdate(wxMsg); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxMsgController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxMsgModelController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxMsgModelController.java index 77ecd5f28..38a746c01 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxMsgModelController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxMsgModelController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxMsgModel; import com.simple.service.WxMsgModelService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxMsgModel") @@ -22,7 +23,8 @@ public class WxMsgModelController extends BaseController private WxMsgModelService wxMsgModelService; private Logger logger = Logger.getLogger(WxMsgModelController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxMsgModelController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxMsgModel wxMsgModel) { //Assert.notNull(wxMsgModel.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxMsgModelController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxMsgModel wxMsgModel) { wxMsgModelService.saveOrUpdate(wxMsgModel); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxMsgModelController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxMsgSignatureController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxMsgSignatureController.java index 4867dd52e..e1bc56cce 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxMsgSignatureController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxMsgSignatureController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxMsgSignature; import com.simple.service.WxMsgSignatureService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxMsgSignature") @@ -22,7 +23,8 @@ public class WxMsgSignatureController extends BaseController private WxMsgSignatureService wxMsgSignatureService; private Logger logger = Logger.getLogger(WxMsgSignatureController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxMsgSignatureController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxMsgSignature wxMsgSignature) { //Assert.notNull(wxMsgSignature.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxMsgSignatureController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxMsgSignature wxMsgSignature) { wxMsgSignatureService.saveOrUpdate(wxMsgSignature); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxMsgSignatureController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxOrdersController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxOrdersController.java index 2ca018d5c..b097ba462 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxOrdersController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxOrdersController.java @@ -1,6 +1,5 @@ package com.simple.controller; -import io.swagger.annotations.Api; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.Assert; @@ -14,17 +13,18 @@ import com.simple.domain.po.WxOrders; import com.simple.service.WxOrdersService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxOrders") -@Api(description="卡卷订单接口") public class WxOrdersController extends BaseController { @Autowired private WxOrdersService wxOrdersService; private Logger logger = Logger.getLogger(WxOrdersController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -35,6 +35,7 @@ public class WxOrdersController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxOrders wxOrders) { //Assert.notNull(wxOrders.getName(), "角色名不能为空"); @@ -43,12 +44,14 @@ public class WxOrdersController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxOrders wxOrders) { wxOrdersService.saveOrUpdate(wxOrders); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -56,6 +59,7 @@ public class WxOrdersController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxParkController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxParkController.java index 3ea7bf402..2f7309c99 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxParkController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxParkController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxPark; import com.simple.service.WxParkService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxPark") @@ -22,7 +23,8 @@ public class WxParkController extends BaseController private WxParkService wxParkService; private Logger logger = Logger.getLogger(WxParkController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxParkController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxPark wxPark) { //Assert.notNull(wxPark.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxParkController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxPark wxPark) { wxParkService.saveOrUpdate(wxPark); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxParkController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxParkEtcpController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxParkEtcpController.java index 53c179532..1dec936d5 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxParkEtcpController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxParkEtcpController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxParkEtcp; import com.simple.service.WxParkEtcpService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxParkEtcp") @@ -22,7 +23,8 @@ public class WxParkEtcpController extends BaseController private WxParkEtcpService wxParkEtcpService; private Logger logger = Logger.getLogger(WxParkEtcpController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxParkEtcpController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxParkEtcp wxParkEtcp) { //Assert.notNull(wxParkEtcp.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxParkEtcpController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxParkEtcp wxParkEtcp) { wxParkEtcpService.saveOrUpdate(wxParkEtcp); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxParkEtcpController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxScoreHistoryController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxScoreHistoryController.java index 1006141d5..56794ac8a 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxScoreHistoryController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxScoreHistoryController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxScoreHistory; import com.simple.service.WxScoreHistoryService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxScoreHistory") @@ -22,7 +23,8 @@ public class WxScoreHistoryController extends BaseController private WxScoreHistoryService wxScoreHistoryService; private Logger logger = Logger.getLogger(WxScoreHistoryController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxScoreHistoryController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxScoreHistory wxScoreHistory) { //Assert.notNull(wxScoreHistory.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxScoreHistoryController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxScoreHistory wxScoreHistory) { wxScoreHistoryService.saveOrUpdate(wxScoreHistory); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxScoreHistoryController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxScoreRulesController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxScoreRulesController.java index f5035a1c8..21cb402b7 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxScoreRulesController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxScoreRulesController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxScoreRules; import com.simple.service.WxScoreRulesService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxScoreRules") @@ -22,7 +23,8 @@ public class WxScoreRulesController extends BaseController private WxScoreRulesService wxScoreRulesService; private Logger logger = Logger.getLogger(WxScoreRulesController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxScoreRulesController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxScoreRules wxScoreRules) { //Assert.notNull(wxScoreRules.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxScoreRulesController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxScoreRules wxScoreRules) { wxScoreRulesService.saveOrUpdate(wxScoreRules); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxScoreRulesController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxScoreValidityPeriodController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxScoreValidityPeriodController.java index b8804de1b..1271b55d5 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxScoreValidityPeriodController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxScoreValidityPeriodController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxScoreValidityPeriod; import com.simple.service.WxScoreValidityPeriodService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxScoreValidityPeriod") @@ -22,7 +23,8 @@ public class WxScoreValidityPeriodController extends BaseController private WxScoreValidityPeriodService wxScoreValidityPeriodService; private Logger logger = Logger.getLogger(WxScoreValidityPeriodController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxScoreValidityPeriodController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxScoreValidityPeriod wxScoreValidityPeriod) { //Assert.notNull(wxScoreValidityPeriod.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxScoreValidityPeriodController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxScoreValidityPeriod wxScoreValidityPeriod) { wxScoreValidityPeriodService.saveOrUpdate(wxScoreValidityPeriod); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxScoreValidityPeriodController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxShopController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxShopController.java index 2ea4a94a1..5685653d4 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxShopController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxShopController.java @@ -1,6 +1,5 @@ package com.simple.controller; -import io.swagger.annotations.Api; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.Assert; @@ -14,17 +13,18 @@ import com.simple.domain.po.WxShop; import com.simple.service.WxShopService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxShop") -@Api(description="店铺接口") public class WxShopController extends BaseController { @Autowired private WxShopService wxShopService; private Logger logger = Logger.getLogger(WxShopController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -35,6 +35,7 @@ public class WxShopController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxShop wxShop) { //Assert.notNull(wxShop.getName(), "角色名不能为空"); @@ -43,12 +44,14 @@ public class WxShopController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxShop wxShop) { wxShopService.saveOrUpdate(wxShop); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -56,6 +59,7 @@ public class WxShopController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxTagsController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxTagsController.java index 03a9a5378..52929d3c4 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxTagsController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxTagsController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxTags; import com.simple.service.WxTagsService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxTags") @@ -22,7 +23,8 @@ public class WxTagsController extends BaseController private WxTagsService wxTagsService; private Logger logger = Logger.getLogger(WxTagsController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxTagsController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxTags wxTags) { //Assert.notNull(wxTags.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxTagsController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxTags wxTags) { wxTagsService.saveOrUpdate(wxTags); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxTagsController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxWebLogController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxWebLogController.java index 6b5f36db9..a74b33363 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxWebLogController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxWebLogController.java @@ -13,6 +13,7 @@ import com.simple.domain.po.WxWebLog; import com.simple.service.WxWebLogService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; @RestController @RequestMapping("wxWebLog") @@ -22,7 +23,8 @@ public class WxWebLogController extends BaseController private WxWebLogService wxWebLogService; private Logger logger = Logger.getLogger(WxWebLogController.class); - + + @ApiOperation("分页列表接口") @GetMapping("list") @ApiImplicitParams({ @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), @@ -33,6 +35,7 @@ public class WxWebLogController extends BaseController return new ResultData(page); } + @ApiOperation("新增接口") @PostMapping("add") public ResultData add(@RequestBody WxWebLog wxWebLog) { //Assert.notNull(wxWebLog.getName(), "角色名不能为空"); @@ -41,12 +44,14 @@ public class WxWebLogController extends BaseController return new ResultData(); } + @ApiOperation("根据id更新接口") @PostMapping("update") public ResultData update(@RequestBody WxWebLog wxWebLog) { wxWebLogService.saveOrUpdate(wxWebLog); return new ResultData(); } + @ApiOperation("根据id删除接口") @GetMapping("/del") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData delete(Long id) { @@ -54,6 +59,7 @@ public class WxWebLogController extends BaseController return new ResultData(Result.SUCCESS, "删除成功", null); } + @ApiOperation("根据id查询接口") @GetMapping("/findById") @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) public ResultData findById(Long id) { diff --git a/mallinkAdmin/src/main/resources/application-dev.yml b/mallinkAdmin/src/main/resources/application-dev.yml index ccf2ef864..a5497f9e7 100644 --- a/mallinkAdmin/src/main/resources/application-dev.yml +++ b/mallinkAdmin/src/main/resources/application-dev.yml @@ -19,6 +19,7 @@ spring: testOnReturn: false poolPreparedStatements: true maxOpenPreparedStatements: 20 + connectionProperties: "druid.stat.mergeSql=true;druid.stat.slowSqlMillis=6000" jackson: date-format: yyyy-MM-dd HH:mm:ss diff --git a/mallinkAdmin/src/main/resources/application-prod.yml b/mallinkAdmin/src/main/resources/application-prod.yml index 79193a5e4..f4ef8febb 100644 --- a/mallinkAdmin/src/main/resources/application-prod.yml +++ b/mallinkAdmin/src/main/resources/application-prod.yml @@ -19,6 +19,7 @@ spring: testOnReturn: false poolPreparedStatements: true maxOpenPreparedStatements: 20 + connectionProperties: "druid.stat.mergeSql=true;druid.stat.slowSqlMillis=6000" # REDIS redis: host: 127.0.0.1 diff --git a/mallinkService/src/main/resources/mapper/WxAppinfoMapper.xml b/mallinkService/src/main/resources/mapper/WxAppinfoMapper.xml index 39f6a6065..a5f522c90 100644 --- a/mallinkService/src/main/resources/mapper/WxAppinfoMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxAppinfoMapper.xml @@ -20,16 +20,56 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `appid` = #{appid} - and `secret` = #{secret} - and `name` = #{name} - and `token` = #{token} - and `aeskey` = #{aeskey} - and `access_token` = #{accessToken} - and `last_token_time` = #{lastTokenTime} - and `expires_in` = #{expiresIn} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `appid` like concat('%', #{appid},'%') + + + + + and `secret` like concat('%', #{secret},'%') + + + + + and `name` like concat('%', #{name},'%') + + + + + and `token` like concat('%', #{token},'%') + + + + + and `aeskey` like concat('%', #{aeskey},'%') + + + + + and `access_token` like concat('%', #{accessToken},'%') + + + + + and `last_token_time` = #{lastTokenTime} + + + + + and `expires_in` = #{expiresIn} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxBLogMapper.xml b/mallinkService/src/main/resources/mapper/WxBLogMapper.xml index 8fb7026dc..0880509cf 100644 --- a/mallinkService/src/main/resources/mapper/WxBLogMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxBLogMapper.xml @@ -14,10 +14,26 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `data` = #{data} - and `create_date` = #{createDate} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `data` like concat('%', #{data},'%') + + + + + and `create_date` = #{createDate} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxBUserMerchantMapper.xml b/mallinkService/src/main/resources/mapper/WxBUserMerchantMapper.xml index c639169ff..7bd8df6da 100644 --- a/mallinkService/src/main/resources/mapper/WxBUserMerchantMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxBUserMerchantMapper.xml @@ -14,10 +14,26 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `b_user_id` = #{bUserId} - and `merchant_id` = #{merchantId} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `b_user_id` = #{bUserId} + + + + + and `merchant_id` = #{merchantId} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxBannersMapper.xml b/mallinkService/src/main/resources/mapper/WxBannersMapper.xml index db6749627..3cf62ab74 100644 --- a/mallinkService/src/main/resources/mapper/WxBannersMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxBannersMapper.xml @@ -20,16 +20,56 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `face_pic_url` = #{facePicUrl} - and `activity_type` = #{activityType} - and `url` = #{url} - and `sort_num` = #{sortNum} - and `createtime` = #{createtime} - and `uptime` = #{uptime} - and `desc` = #{desc} - and `is_enable` = #{isEnable} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `face_pic_url` like concat('%', #{facePicUrl},'%') + + + + + and `activity_type` = #{activityType} + + + + + and `url` like concat('%', #{url},'%') + + + + + and `sort_num` = #{sortNum} + + + + + and `createtime` = #{createtime} + + + + + and `uptime` = #{uptime} + + + + + and `desc` like concat('%', #{desc},'%') + + + + + and `is_enable` = #{isEnable} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxBusinessMapper.xml b/mallinkService/src/main/resources/mapper/WxBusinessMapper.xml index 4ed29f287..00609bef8 100644 --- a/mallinkService/src/main/resources/mapper/WxBusinessMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxBusinessMapper.xml @@ -13,9 +13,21 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `title` = #{title} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `title` like concat('%', #{title},'%') + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxCLogMapper.xml b/mallinkService/src/main/resources/mapper/WxCLogMapper.xml index f9ac28d7a..9c9279428 100644 --- a/mallinkService/src/main/resources/mapper/WxCLogMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCLogMapper.xml @@ -14,10 +14,26 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `data` = #{data} - and `create_date` = #{createDate} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `data` like concat('%', #{data},'%') + + + + + and `create_date` = #{createDate} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxCUserCarsMapper.xml b/mallinkService/src/main/resources/mapper/WxCUserCarsMapper.xml index d4f191c73..b9d30c3c5 100644 --- a/mallinkService/src/main/resources/mapper/WxCUserCarsMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCUserCarsMapper.xml @@ -14,10 +14,26 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `c_user_id` = #{cUserId} - and `car_number` = #{carNumber} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `c_user_id` = #{cUserId} + + + + + and `car_number` like concat('%', #{carNumber},'%') + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxCUserCloudMapper.xml b/mallinkService/src/main/resources/mapper/WxCUserCloudMapper.xml index e65b3ebde..daf3ce91e 100644 --- a/mallinkService/src/main/resources/mapper/WxCUserCloudMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCUserCloudMapper.xml @@ -14,10 +14,26 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `c_user_id` = #{cUserId} - and `cloud_data` = #{cloudData} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `c_user_id` = #{cUserId} + + + + + and `cloud_data` like concat('%', #{cloudData},'%') + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxCUserEtcpTokenMapper.xml b/mallinkService/src/main/resources/mapper/WxCUserEtcpTokenMapper.xml index e48b80c03..d1d0407fa 100644 --- a/mallinkService/src/main/resources/mapper/WxCUserEtcpTokenMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCUserEtcpTokenMapper.xml @@ -16,12 +16,36 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `c_user_id` = #{cUserId} - and `etcp_token` = #{etcpToken} - and `etcp_create_time` = #{etcpCreateTime} - and `etcp_update_time` = #{etcpUpdateTime} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `c_user_id` = #{cUserId} + + + + + and `etcp_token` like concat('%', #{etcpToken},'%') + + + + + and `etcp_create_time` = #{etcpCreateTime} + + + + + and `etcp_update_time` = #{etcpUpdateTime} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxCUserMapper.xml b/mallinkService/src/main/resources/mapper/WxCUserMapper.xml index 14819b307..308f06c80 100644 --- a/mallinkService/src/main/resources/mapper/WxCUserMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCUserMapper.xml @@ -31,27 +31,111 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `open_id` = #{openId} - and `union_id` = #{unionId} - and `nick_name` = #{nickName} - and `gender` = #{gender} - and `avatar_url` = #{avatarUrl} - and `phone` = #{phone} - and `pure_phone` = #{purePhone} - and `city` = #{city} - and `province` = #{province} - and `language` = #{language} - and `country_code` = #{countryCode} - and `qrcode_source` = #{qrcodeSource} - and `register_ip` = #{registerIp} - and `scene` = #{scene} - and `scene_address` = #{sceneAddress} - and `session_key` = #{sessionKey} - and `update_date` = #{updateDate} - and `create_date` = #{createDate} - and `score` = #{score} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `open_id` like concat('%', #{openId},'%') + + + + + and `union_id` like concat('%', #{unionId},'%') + + + + + and `nick_name` like concat('%', #{nickName},'%') + + + + + and `gender` = #{gender} + + + + + and `avatar_url` like concat('%', #{avatarUrl},'%') + + + + + and `phone` like concat('%', #{phone},'%') + + + + + and `pure_phone` like concat('%', #{purePhone},'%') + + + + + and `city` like concat('%', #{city},'%') + + + + + and `province` like concat('%', #{province},'%') + + + + + and `language` like concat('%', #{language},'%') + + + + + and `country_code` like concat('%', #{countryCode},'%') + + + + + and `qrcode_source` like concat('%', #{qrcodeSource},'%') + + + + + and `register_ip` like concat('%', #{registerIp},'%') + + + + + and `scene` like concat('%', #{scene},'%') + + + + + and `scene_address` like concat('%', #{sceneAddress},'%') + + + + + and `session_key` like concat('%', #{sessionKey},'%') + + + + + and `update_date` = #{updateDate} + + + + + and `create_date` = #{createDate} + + + + + and `score` = #{score} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxCUserTagsMapper.xml b/mallinkService/src/main/resources/mapper/WxCUserTagsMapper.xml index 0b829862d..9961e5781 100644 --- a/mallinkService/src/main/resources/mapper/WxCUserTagsMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCUserTagsMapper.xml @@ -14,10 +14,26 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `user_id` = #{userId} - and `tags` = #{tags} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `user_id` = #{userId} + + + + + and `tags` like concat('%', #{tags},'%') + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml index 71bec59e1..b98283a88 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponActionLogMapper.xml @@ -16,12 +16,36 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `coupon_id` = #{couponId} - and `user_id` = #{userId} - and `action` = #{action} - and `operation_time` = #{operationTime} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `coupon_id` = #{couponId} + + + + + and `user_id` = #{userId} + + + + + and `action` like concat('%', #{action},'%') + + + + + and `operation_time` = #{operationTime} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxCouponActivityMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponActivityMapper.xml index ce570acb9..5033c01f2 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponActivityMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponActivityMapper.xml @@ -33,29 +33,121 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `merchant_id` = #{merchantId} - and `type` = #{type} - and `cover_img` = #{coverImg} - and `title` = #{title} - and `sub_title` = #{subTitle} - and `sale_price` = #{salePrice} - and `use_price` = #{usePrice} - and `use_limit_quantity` = #{useLimitQuantity} - and `send_start_date` = #{sendStartDate} - and `send_end_date` = #{sendEndDate} - and `valid_start_date` = #{validStartDate} - and `valid_end_date` = #{validEndDate} - and `valid_days` = #{validDays} - and `detail` = #{detail} - and `send_type` = #{sendType} - and `target_ad` = #{targetAd} - and `businesses` = #{businesses} - and `price` = #{price} - and `number` = #{number} - and `total` = #{total} - and `status` = #{status} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `merchant_id` = #{merchantId} + + + + + and `type` = #{type} + + + + + and `cover_img` like concat('%', #{coverImg},'%') + + + + + and `title` like concat('%', #{title},'%') + + + + + and `sub_title` like concat('%', #{subTitle},'%') + + + + + and `sale_price` = #{salePrice} + + + + + and `use_price` = #{usePrice} + + + + + and `use_limit_quantity` = #{useLimitQuantity} + + + + + and `send_start_date` = #{sendStartDate} + + + + + and `send_end_date` = #{sendEndDate} + + + + + and `valid_start_date` = #{validStartDate} + + + + + and `valid_end_date` = #{validEndDate} + + + + + and `valid_days` = #{validDays} + + + + + and `detail` like concat('%', #{detail},'%') + + + + + and `send_type` = #{sendType} + + + + + and `target_ad` = #{targetAd} + + + + + and `businesses` like concat('%', #{businesses},'%') + + + + + and `price` = #{price} + + + + + and `number` = #{number} + + + + + and `total` = #{total} + + + + + and `status` = #{status} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxCouponMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponMapper.xml index b1f0aed58..cea1da6be 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponMapper.xml @@ -26,22 +26,86 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `activity_id` = #{activityId} - and `merchant_id` = #{merchantId} - and `type` = #{type} - and `cover_img` = #{coverImg} - and `title` = #{title} - and `sub_title` = #{subTitle} - and `detail` = #{detail} - and `price` = #{price} - and `sale_price` = #{salePrice} - and `use_price` = #{usePrice} - and `business` = #{business} - and `status` = #{status} - and `create_date` = #{createDate} - and `update_date` = #{updateDate} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `activity_id` = #{activityId} + + + + + and `merchant_id` = #{merchantId} + + + + + and `type` = #{type} + + + + + and `cover_img` like concat('%', #{coverImg},'%') + + + + + and `title` like concat('%', #{title},'%') + + + + + and `sub_title` like concat('%', #{subTitle},'%') + + + + + and `detail` like concat('%', #{detail},'%') + + + + + and `price` = #{price} + + + + + and `sale_price` = #{salePrice} + + + + + and `use_price` = #{usePrice} + + + + + and `business` like concat('%', #{business},'%') + + + + + and `status` = #{status} + + + + + and `create_date` = #{createDate} + + + + + and `update_date` = #{updateDate} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxCouponRecordMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponRecordMapper.xml index 29d71fb81..72c0407ec 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponRecordMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponRecordMapper.xml @@ -21,17 +21,61 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `coupon_id` = #{couponId} - and `order_id` = #{orderId} - and `c_user_id` = #{cUserId} - and `buy_date` = #{buyDate} - and `limit_date` = #{limitDate} - and `c_status` = #{cStatus} - and `b_user_id` = #{bUserId} - and `verification_date` = #{verificationDate} - and `verification_status` = #{verificationStatus} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `coupon_id` = #{couponId} + + + + + and `order_id` = #{orderId} + + + + + and `c_user_id` = #{cUserId} + + + + + and `buy_date` = #{buyDate} + + + + + and `limit_date` = #{limitDate} + + + + + and `c_status` = #{cStatus} + + + + + and `b_user_id` = #{bUserId} + + + + + and `verification_date` = #{verificationDate} + + + + + and `verification_status` = #{verificationStatus} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxCouponTypeMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponTypeMapper.xml index 1b220387d..7e7341494 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponTypeMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponTypeMapper.xml @@ -12,8 +12,16 @@ where 1 = 1 - and `id` = #{id} - and `title` = #{title} + + + and `id` = #{id} + + + + + and `title` like concat('%', #{title},'%') + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxEtcpCouponRecordMapper.xml b/mallinkService/src/main/resources/mapper/WxEtcpCouponRecordMapper.xml index 9ecdc1418..867ba0546 100644 --- a/mallinkService/src/main/resources/mapper/WxEtcpCouponRecordMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxEtcpCouponRecordMapper.xml @@ -21,17 +21,61 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `coupon_id` = #{couponId} - and `car_number` = #{carNumber} - and `park_id` = #{parkId} - and `business_id` = #{businessId} - and `coupon_free_id` = #{couponFreeId} - and `code` = #{code} - and `message` = #{message} - and `create_date` = #{createDate} - and `update_date` = #{updateDate} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `coupon_id` = #{couponId} + + + + + and `car_number` like concat('%', #{carNumber},'%') + + + + + and `park_id` like concat('%', #{parkId},'%') + + + + + and `business_id` like concat('%', #{businessId},'%') + + + + + and `coupon_free_id` = #{couponFreeId} + + + + + and `code` = #{code} + + + + + and `message` like concat('%', #{message},'%') + + + + + and `create_date` = #{createDate} + + + + + and `update_date` = #{updateDate} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxEtcpParkDissolutionMapper.xml b/mallinkService/src/main/resources/mapper/WxEtcpParkDissolutionMapper.xml index 5f280b065..6488d6f87 100644 --- a/mallinkService/src/main/resources/mapper/WxEtcpParkDissolutionMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxEtcpParkDissolutionMapper.xml @@ -13,9 +13,21 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `sign_no` = #{signNo} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `sign_no` like concat('%', #{signNo},'%') + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxEtcpParkInMapper.xml b/mallinkService/src/main/resources/mapper/WxEtcpParkInMapper.xml index 8b4273a71..8d812fb5e 100644 --- a/mallinkService/src/main/resources/mapper/WxEtcpParkInMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxEtcpParkInMapper.xml @@ -15,11 +15,31 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `syn_id` = #{synId} - and `plate_number` = #{plateNumber} - and `park_name` = #{parkName} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `syn_id` like concat('%', #{synId},'%') + + + + + and `plate_number` like concat('%', #{plateNumber},'%') + + + + + and `park_name` like concat('%', #{parkName},'%') + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxEtcpParkMsgSucMapper.xml b/mallinkService/src/main/resources/mapper/WxEtcpParkMsgSucMapper.xml index dae25ed9f..278b9537c 100644 --- a/mallinkService/src/main/resources/mapper/WxEtcpParkMsgSucMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxEtcpParkMsgSucMapper.xml @@ -13,9 +13,21 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `sign_no` = #{signNo} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `sign_no` like concat('%', #{signNo},'%') + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxEtcpParkOrderunpayMapper.xml b/mallinkService/src/main/resources/mapper/WxEtcpParkOrderunpayMapper.xml index 0a04d7496..39bf89930 100644 --- a/mallinkService/src/main/resources/mapper/WxEtcpParkOrderunpayMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxEtcpParkOrderunpayMapper.xml @@ -30,26 +30,106 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `plate_number` = #{plateNumber} - and `code` = #{code} - and `message` = #{message} - and `data` = #{data} - and `entrance_time` = #{entranceTime} - and `parking_fee` = #{parkingFee} - and `remaining_fee` = #{remainingFee} - and `paid_fee` = #{paidFee} - and `parking_id` = #{parkingId} - and `discount_amount` = #{discountAmount} - and `order_id` = #{orderId} - and `car_number` = #{carNumber} - and `verification_info` = #{verificationInfo} - and `syn_id` = #{synId} - and `discount_no` = #{discountNo} - and `status` = #{status} - and `create_date` = #{createDate} - and `update_date` = #{updateDate} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `plate_number` like concat('%', #{plateNumber},'%') + + + + + and `code` = #{code} + + + + + and `message` like concat('%', #{message},'%') + + + + + and `data` like concat('%', #{data},'%') + + + + + and `entrance_time` like concat('%', #{entranceTime},'%') + + + + + and `parking_fee` = #{parkingFee} + + + + + and `remaining_fee` = #{remainingFee} + + + + + and `paid_fee` = #{paidFee} + + + + + and `parking_id` like concat('%', #{parkingId},'%') + + + + + and `discount_amount` = #{discountAmount} + + + + + and `order_id` like concat('%', #{orderId},'%') + + + + + and `car_number` like concat('%', #{carNumber},'%') + + + + + and `verification_info` like concat('%', #{verificationInfo},'%') + + + + + and `syn_id` like concat('%', #{synId},'%') + + + + + and `discount_no` = #{discountNo} + + + + + and `status` = #{status} + + + + + and `create_date` = #{createDate} + + + + + and `update_date` = #{updateDate} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxEtcpParkOutMapper.xml b/mallinkService/src/main/resources/mapper/WxEtcpParkOutMapper.xml index 880e08452..0e5cb7255 100644 --- a/mallinkService/src/main/resources/mapper/WxEtcpParkOutMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxEtcpParkOutMapper.xml @@ -15,11 +15,31 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `syn_id` = #{synId} - and `plate_number` = #{plateNumber} - and `park_name` = #{parkName} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `syn_id` like concat('%', #{synId},'%') + + + + + and `plate_number` like concat('%', #{plateNumber},'%') + + + + + and `park_name` like concat('%', #{parkName},'%') + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxEtcpParkTransactionMapper.xml b/mallinkService/src/main/resources/mapper/WxEtcpParkTransactionMapper.xml index bfe038568..3a042591d 100644 --- a/mallinkService/src/main/resources/mapper/WxEtcpParkTransactionMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxEtcpParkTransactionMapper.xml @@ -22,18 +22,66 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `pay_type` = #{payType} - and `syn_id` = #{synId} - and `return_url` = #{returnUrl} - and `coupon_code` = #{couponCode} - and `code` = #{code} - and `message` = #{message} - and `data` = #{data} - and `status` = #{status} - and `create_date` = #{createDate} - and `update_date` = #{updateDate} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `pay_type` = #{payType} + + + + + and `syn_id` like concat('%', #{synId},'%') + + + + + and `return_url` like concat('%', #{returnUrl},'%') + + + + + and `coupon_code` like concat('%', #{couponCode},'%') + + + + + and `code` = #{code} + + + + + and `message` like concat('%', #{message},'%') + + + + + and `data` like concat('%', #{data},'%') + + + + + and `status` = #{status} + + + + + and `create_date` = #{createDate} + + + + + and `update_date` = #{updateDate} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxEtcpParkUnbindMapper.xml b/mallinkService/src/main/resources/mapper/WxEtcpParkUnbindMapper.xml index c5978349a..0bd8a1603 100644 --- a/mallinkService/src/main/resources/mapper/WxEtcpParkUnbindMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxEtcpParkUnbindMapper.xml @@ -13,9 +13,21 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `plate_number` = #{plateNumber} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `plate_number` like concat('%', #{plateNumber},'%') + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxFlashSaleMapper.xml b/mallinkService/src/main/resources/mapper/WxFlashSaleMapper.xml index e15c9cb59..98a9e1e2d 100644 --- a/mallinkService/src/main/resources/mapper/WxFlashSaleMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxFlashSaleMapper.xml @@ -16,12 +16,36 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `activity_id` = #{activityId} - and `createtime` = #{createtime} - and `uptime` = #{uptime} - and `is_enable` = #{isEnable} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `activity_id` = #{activityId} + + + + + and `createtime` = #{createtime} + + + + + and `uptime` = #{uptime} + + + + + and `is_enable` = #{isEnable} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxImgUrlMapper.xml b/mallinkService/src/main/resources/mapper/WxImgUrlMapper.xml index 997895a39..b7660b03e 100644 --- a/mallinkService/src/main/resources/mapper/WxImgUrlMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxImgUrlMapper.xml @@ -13,9 +13,21 @@ where 1 = 1 - and `id` = #{id} - and `address` = #{address} - and `sign` = #{sign} + + + and `id` = #{id} + + + + + and `address` like concat('%', #{address},'%') + + + + + and `sign` like concat('%', #{sign},'%') + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxMallBuildingMapper.xml b/mallinkService/src/main/resources/mapper/WxMallBuildingMapper.xml index 5b57bcf17..69ca95a27 100644 --- a/mallinkService/src/main/resources/mapper/WxMallBuildingMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxMallBuildingMapper.xml @@ -15,11 +15,31 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `mall_id` = #{mallId} - and `name` = #{name} - and `floor_number` = #{floorNumber} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `mall_id` = #{mallId} + + + + + and `name` like concat('%', #{name},'%') + + + + + and `floor_number` = #{floorNumber} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxMallFloorMapper.xml b/mallinkService/src/main/resources/mapper/WxMallFloorMapper.xml index ebcd1fc14..90ecef911 100644 --- a/mallinkService/src/main/resources/mapper/WxMallFloorMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxMallFloorMapper.xml @@ -15,11 +15,31 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `mall_id` = #{mallId} - and `building_id` = #{buildingId} - and `floor_name` = #{floorName} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `mall_id` = #{mallId} + + + + + and `building_id` = #{buildingId} + + + + + and `floor_name` like concat('%', #{floorName},'%') + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxMallMapper.xml b/mallinkService/src/main/resources/mapper/WxMallMapper.xml index 676b94334..0e13eeae8 100644 --- a/mallinkService/src/main/resources/mapper/WxMallMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxMallMapper.xml @@ -23,19 +23,71 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `name` = #{name} - and `group` = #{group} - and `country` = #{country} - and `province` = #{province} - and `city` = #{city} - and `addr` = #{addr} - and `wiwide_id` = #{wiwideId} - and `total_area` = #{totalArea} - and `operating_area` = #{operatingArea} - and `park_area` = #{parkArea} - and `park_place_number` = #{parkPlaceNumber} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `name` like concat('%', #{name},'%') + + + + + and `group` like concat('%', #{group},'%') + + + + + and `country` like concat('%', #{country},'%') + + + + + and `province` like concat('%', #{province},'%') + + + + + and `city` like concat('%', #{city},'%') + + + + + and `addr` like concat('%', #{addr},'%') + + + + + and `wiwide_id` like concat('%', #{wiwideId},'%') + + + + + and `total_area` = #{totalArea} + + + + + and `operating_area` = #{operatingArea} + + + + + and `park_area` = #{parkArea} + + + + + and `park_place_number` = #{parkPlaceNumber} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxMerchantEtcpMapper.xml b/mallinkService/src/main/resources/mapper/WxMerchantEtcpMapper.xml index a0d9fcf27..c439b67c4 100644 --- a/mallinkService/src/main/resources/mapper/WxMerchantEtcpMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxMerchantEtcpMapper.xml @@ -13,9 +13,21 @@ where 1 = 1 - and `id` = #{id} - and `merchant_id` = #{merchantId} - and `etcp_merchant_id` = #{etcpMerchantId} + + + and `id` = #{id} + + + + + and `merchant_id` = #{merchantId} + + + + + and `etcp_merchant_id` like concat('%', #{etcpMerchantId},'%') + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxMerchantMapper.xml b/mallinkService/src/main/resources/mapper/WxMerchantMapper.xml index 293cef8c9..8c6047af5 100644 --- a/mallinkService/src/main/resources/mapper/WxMerchantMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxMerchantMapper.xml @@ -18,14 +18,46 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `img_url` = #{imgUrl} - and `name` = #{name} - and `link_phone` = #{linkPhone} - and `bank_card` = #{bankCard} - and `bank_name` = #{bankName} - and `merchant_id` = #{merchantId} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `img_url` like concat('%', #{imgUrl},'%') + + + + + and `name` like concat('%', #{name},'%') + + + + + and `link_phone` like concat('%', #{linkPhone},'%') + + + + + and `bank_card` like concat('%', #{bankCard},'%') + + + + + and `bank_name` like concat('%', #{bankName},'%') + + + + + and `merchant_id` like concat('%', #{merchantId},'%') + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxMerchantShopMapper.xml b/mallinkService/src/main/resources/mapper/WxMerchantShopMapper.xml index 89259f6d3..37245799b 100644 --- a/mallinkService/src/main/resources/mapper/WxMerchantShopMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxMerchantShopMapper.xml @@ -14,10 +14,26 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `merchant_id` = #{merchantId} - and `shop_id` = #{shopId} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `merchant_id` = #{merchantId} + + + + + and `shop_id` = #{shopId} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxMerchantTradeDaysMapper.xml b/mallinkService/src/main/resources/mapper/WxMerchantTradeDaysMapper.xml index bcbc0e2b4..91aa21271 100644 --- a/mallinkService/src/main/resources/mapper/WxMerchantTradeDaysMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxMerchantTradeDaysMapper.xml @@ -15,11 +15,31 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `merchant_id` = #{merchantId} - and `trade_amt` = #{tradeAmt} - and `create_date` = #{createDate} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `merchant_id` = #{merchantId} + + + + + and `trade_amt` = #{tradeAmt} + + + + + and `create_date` = #{createDate} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxMsgConfigMapper.xml b/mallinkService/src/main/resources/mapper/WxMsgConfigMapper.xml index 62860dceb..0bc497961 100644 --- a/mallinkService/src/main/resources/mapper/WxMsgConfigMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxMsgConfigMapper.xml @@ -22,18 +22,66 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `secret` = #{secret} - and `publickey` = #{publickey} - and `bid` = #{bid} - and `recharge` = #{recharge} - and `remains` = #{remains} - and `total` = #{total} - and `account` = #{account} - and `reminderstatus` = #{reminderstatus} - and `reminder` = #{reminder} - and `phone` = #{phone} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `secret` like concat('%', #{secret},'%') + + + + + and `publickey` like concat('%', #{publickey},'%') + + + + + and `bid` like concat('%', #{bid},'%') + + + + + and `recharge` = #{recharge} + + + + + and `remains` = #{remains} + + + + + and `total` = #{total} + + + + + and `account` like concat('%', #{account},'%') + + + + + and `reminderstatus` = #{reminderstatus} + + + + + and `reminder` = #{reminder} + + + + + and `phone` like concat('%', #{phone},'%') + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxMsgMapper.xml b/mallinkService/src/main/resources/mapper/WxMsgMapper.xml index cccbd3b61..5ad3b64ea 100644 --- a/mallinkService/src/main/resources/mapper/WxMsgMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxMsgMapper.xml @@ -21,17 +21,61 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `model_id` = #{modelId} - and `msg` = #{msg} - and `sendtime` = #{sendtime} - and `createtime` = #{createtime} - and `expect_send_number` = #{expectSendNumber} - and `success_number` = #{successNumber} - and `error_number` = #{errorNumber} - and `return_result` = #{returnResult} - and `phones` = #{phones} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `model_id` = #{modelId} + + + + + and `msg` like concat('%', #{msg},'%') + + + + + and `sendtime` = #{sendtime} + + + + + and `createtime` = #{createtime} + + + + + and `expect_send_number` like concat('%', #{expectSendNumber},'%') + + + + + and `success_number` like concat('%', #{successNumber},'%') + + + + + and `error_number` like concat('%', #{errorNumber},'%') + + + + + and `return_result` like concat('%', #{returnResult},'%') + + + + + and `phones` like concat('%', #{phones},'%') + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxMsgModelMapper.xml b/mallinkService/src/main/resources/mapper/WxMsgModelMapper.xml index 6a162dade..9d1c14d11 100644 --- a/mallinkService/src/main/resources/mapper/WxMsgModelMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxMsgModelMapper.xml @@ -17,13 +17,41 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `name` = #{name} - and `signature` = #{signature} - and `content` = #{content} - and `createtime` = #{createtime} - and `status` = #{status} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `name` like concat('%', #{name},'%') + + + + + and `signature` like concat('%', #{signature},'%') + + + + + and `content` like concat('%', #{content},'%') + + + + + and `createtime` = #{createtime} + + + + + and `status` = #{status} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxMsgSignatureMapper.xml b/mallinkService/src/main/resources/mapper/WxMsgSignatureMapper.xml index d17aa6528..8d7ecc478 100644 --- a/mallinkService/src/main/resources/mapper/WxMsgSignatureMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxMsgSignatureMapper.xml @@ -14,10 +14,26 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `name` = #{name} - and `createtime` = #{createtime} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `name` like concat('%', #{name},'%') + + + + + and `createtime` = #{createtime} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxOrdersMapper.xml b/mallinkService/src/main/resources/mapper/WxOrdersMapper.xml index 6eebdf28c..c4cf23018 100644 --- a/mallinkService/src/main/resources/mapper/WxOrdersMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxOrdersMapper.xml @@ -18,14 +18,46 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `coupon_id` = #{couponId} - and `c_user_id` = #{cUserId} - and `payment` = #{payment} - and `status` = #{status} - and `create_date` = #{createDate} - and `update_date` = #{updateDate} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `coupon_id` = #{couponId} + + + + + and `c_user_id` = #{cUserId} + + + + + and `payment` = #{payment} + + + + + and `status` = #{status} + + + + + and `create_date` = #{createDate} + + + + + and `update_date` = #{updateDate} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxParkEtcpMapper.xml b/mallinkService/src/main/resources/mapper/WxParkEtcpMapper.xml index 4e96b42cd..d22dea5f4 100644 --- a/mallinkService/src/main/resources/mapper/WxParkEtcpMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxParkEtcpMapper.xml @@ -13,9 +13,21 @@ where 1 = 1 - and `id` = #{id} - and `park_id` = #{parkId} - and `etcp_park_id` = #{etcpParkId} + + + and `id` = #{id} + + + + + and `park_id` = #{parkId} + + + + + and `etcp_park_id` like concat('%', #{etcpParkId},'%') + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxParkMapper.xml b/mallinkService/src/main/resources/mapper/WxParkMapper.xml index 65608ee45..80aa2d703 100644 --- a/mallinkService/src/main/resources/mapper/WxParkMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxParkMapper.xml @@ -16,12 +16,36 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `addr` = #{addr} - and `number` = #{number} - and `etcp_park_id` = #{etcpParkId} - and `entry_exit` = #{entryExit} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `addr` like concat('%', #{addr},'%') + + + + + and `number` = #{number} + + + + + and `etcp_park_id` like concat('%', #{etcpParkId},'%') + + + + + and `entry_exit` = #{entryExit} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxScoreHistoryMapper.xml b/mallinkService/src/main/resources/mapper/WxScoreHistoryMapper.xml index aef6e3de1..32e66e0df 100644 --- a/mallinkService/src/main/resources/mapper/WxScoreHistoryMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxScoreHistoryMapper.xml @@ -19,15 +19,51 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `c_user_id` = #{cUserId} - and `create_date` = #{createDate} - and `valid_date` = #{validDate} - and `order_id` = #{orderId} - and `pay_type` = #{payType} - and `pay_amount` = #{payAmount} - and `score_amount` = #{scoreAmount} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `c_user_id` = #{cUserId} + + + + + and `create_date` = #{createDate} + + + + + and `valid_date` = #{validDate} + + + + + and `order_id` = #{orderId} + + + + + and `pay_type` = #{payType} + + + + + and `pay_amount` = #{payAmount} + + + + + and `score_amount` = #{scoreAmount} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxScoreRulesMapper.xml b/mallinkService/src/main/resources/mapper/WxScoreRulesMapper.xml index 0eb5204f1..111638dfc 100644 --- a/mallinkService/src/main/resources/mapper/WxScoreRulesMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxScoreRulesMapper.xml @@ -14,10 +14,26 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `consumption_amount` = #{consumptionAmount} - and `score_number` = #{scoreNumber} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `consumption_amount` = #{consumptionAmount} + + + + + and `score_number` = #{scoreNumber} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxScoreValidityPeriodMapper.xml b/mallinkService/src/main/resources/mapper/WxScoreValidityPeriodMapper.xml index 50b44f7d2..dd0faf5c0 100644 --- a/mallinkService/src/main/resources/mapper/WxScoreValidityPeriodMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxScoreValidityPeriodMapper.xml @@ -13,9 +13,21 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `year` = #{year} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `year` like concat('%', #{year},'%') + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxShopMapper.xml b/mallinkService/src/main/resources/mapper/WxShopMapper.xml index 6b1011489..2732ae6b6 100644 --- a/mallinkService/src/main/resources/mapper/WxShopMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxShopMapper.xml @@ -22,18 +22,66 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `title` = #{title} - and `build_area` = #{buildArea} - and `operation_area` = #{operationArea} - and `building` = #{building} - and `floor` = #{floor} - and `x` = #{x} - and `y` = #{y} - and `baidu_poi` = #{baiduPoi} - and `create_date` = #{createDate} - and `update_date` = #{updateDate} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `title` like concat('%', #{title},'%') + + + + + and `build_area` like concat('%', #{buildArea},'%') + + + + + and `operation_area` like concat('%', #{operationArea},'%') + + + + + and `building` like concat('%', #{building},'%') + + + + + and `floor` = #{floor} + + + + + and `x` = #{x} + + + + + and `y` = #{y} + + + + + and `baidu_poi` like concat('%', #{baiduPoi},'%') + + + + + and `create_date` = #{createDate} + + + + + and `update_date` = #{updateDate} + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxTagsMapper.xml b/mallinkService/src/main/resources/mapper/WxTagsMapper.xml index c557286a3..af778790f 100644 --- a/mallinkService/src/main/resources/mapper/WxTagsMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxTagsMapper.xml @@ -15,11 +15,31 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `name` = #{name} - and `type1` = #{type1} - and `type2` = #{type2} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `name` like concat('%', #{name},'%') + + + + + and `type1` like concat('%', #{type1},'%') + + + + + and `type2` like concat('%', #{type2},'%') + + and id in diff --git a/mallinkService/src/main/resources/mapper/WxWebLogMapper.xml b/mallinkService/src/main/resources/mapper/WxWebLogMapper.xml index e0af1686f..6b3dc6c71 100644 --- a/mallinkService/src/main/resources/mapper/WxWebLogMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxWebLogMapper.xml @@ -14,10 +14,26 @@ where 1 = 1 - and `id` = #{id} - and `tenant_id` = #{tenantId} - and `data` = #{data} - and `create_date` = #{createDate} + + + and `id` = #{id} + + + + + and `tenant_id` like concat('%', #{tenantId},'%') + + + + + and `data` like concat('%', #{data},'%') + + + + + and `create_date` = #{createDate} + + and id in