| @@ -0,0 +1,4 @@ | |||||
| .idea/** | |||||
| mallinkAdmin/target/** | |||||
| mallinkApi/target/** | |||||
| mallinkService/target/** | |||||
| @@ -1,6 +1,5 @@ | |||||
| package com.simple.controller; | package com.simple.controller; | ||||
| import io.swagger.annotations.Api; | |||||
| import org.apache.log4j.Logger; | import org.apache.log4j.Logger; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.util.Assert; | import org.springframework.util.Assert; | ||||
| @@ -14,17 +13,18 @@ import com.simple.domain.po.WxAppinfo; | |||||
| import com.simple.service.WxAppinfoService; | import com.simple.service.WxAppinfoService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxAppinfo") | @RequestMapping("wxAppinfo") | ||||
| @Api(description="小程序配置接口") | |||||
| public class WxAppinfoController extends BaseController | public class WxAppinfoController extends BaseController | ||||
| { | { | ||||
| @Autowired | @Autowired | ||||
| private WxAppinfoService wxAppinfoService; | private WxAppinfoService wxAppinfoService; | ||||
| private Logger logger = Logger.getLogger(WxAppinfoController.class); | private Logger logger = Logger.getLogger(WxAppinfoController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -35,6 +35,7 @@ public class WxAppinfoController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxAppinfo wxAppinfo) { | public ResultData add(@RequestBody WxAppinfo wxAppinfo) { | ||||
| //Assert.notNull(wxAppinfo.getName(), "角色名不能为空"); | //Assert.notNull(wxAppinfo.getName(), "角色名不能为空"); | ||||
| @@ -43,12 +44,14 @@ public class WxAppinfoController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxAppinfo wxAppinfo) { | public ResultData update(@RequestBody WxAppinfo wxAppinfo) { | ||||
| wxAppinfoService.saveOrUpdate(wxAppinfo); | wxAppinfoService.saveOrUpdate(wxAppinfo); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -56,6 +59,7 @@ public class WxAppinfoController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -1,6 +1,5 @@ | |||||
| package com.simple.controller; | package com.simple.controller; | ||||
| import io.swagger.annotations.Api; | |||||
| import org.apache.log4j.Logger; | import org.apache.log4j.Logger; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.util.Assert; | import org.springframework.util.Assert; | ||||
| @@ -14,17 +13,18 @@ import com.simple.domain.po.WxBLog; | |||||
| import com.simple.service.WxBLogService; | import com.simple.service.WxBLogService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxBLog") | @RequestMapping("wxBLog") | ||||
| @Api(description="B端log接口") | |||||
| public class WxBLogController extends BaseController | public class WxBLogController extends BaseController | ||||
| { | { | ||||
| @Autowired | @Autowired | ||||
| private WxBLogService wxBLogService; | private WxBLogService wxBLogService; | ||||
| private Logger logger = Logger.getLogger(WxBLogController.class); | private Logger logger = Logger.getLogger(WxBLogController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -35,6 +35,7 @@ public class WxBLogController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxBLog wxBLog) { | public ResultData add(@RequestBody WxBLog wxBLog) { | ||||
| //Assert.notNull(wxBLog.getName(), "角色名不能为空"); | //Assert.notNull(wxBLog.getName(), "角色名不能为空"); | ||||
| @@ -43,12 +44,14 @@ public class WxBLogController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxBLog wxBLog) { | public ResultData update(@RequestBody WxBLog wxBLog) { | ||||
| wxBLogService.saveOrUpdate(wxBLog); | wxBLogService.saveOrUpdate(wxBLog); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -56,6 +59,7 @@ public class WxBLogController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxBUserMerchant; | |||||
| import com.simple.service.WxBUserMerchantService; | import com.simple.service.WxBUserMerchantService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxBUserMerchant") | @RequestMapping("wxBUserMerchant") | ||||
| @@ -22,7 +23,8 @@ public class WxBUserMerchantController extends BaseController | |||||
| private WxBUserMerchantService wxBUserMerchantService; | private WxBUserMerchantService wxBUserMerchantService; | ||||
| private Logger logger = Logger.getLogger(WxBUserMerchantController.class); | private Logger logger = Logger.getLogger(WxBUserMerchantController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxBUserMerchantController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxBUserMerchant wxBUserMerchant) { | public ResultData add(@RequestBody WxBUserMerchant wxBUserMerchant) { | ||||
| //Assert.notNull(wxBUserMerchant.getName(), "角色名不能为空"); | //Assert.notNull(wxBUserMerchant.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxBUserMerchantController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxBUserMerchant wxBUserMerchant) { | public ResultData update(@RequestBody WxBUserMerchant wxBUserMerchant) { | ||||
| wxBUserMerchantService.saveOrUpdate(wxBUserMerchant); | wxBUserMerchantService.saveOrUpdate(wxBUserMerchant); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxBUserMerchantController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -1,6 +1,5 @@ | |||||
| package com.simple.controller; | package com.simple.controller; | ||||
| import io.swagger.annotations.Api; | |||||
| import org.apache.log4j.Logger; | import org.apache.log4j.Logger; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.util.Assert; | import org.springframework.util.Assert; | ||||
| @@ -14,17 +13,18 @@ import com.simple.domain.po.WxBanners; | |||||
| import com.simple.service.WxBannersService; | import com.simple.service.WxBannersService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxBanners") | @RequestMapping("wxBanners") | ||||
| @Api(description="banner相关接口") | |||||
| public class WxBannersController extends BaseController | public class WxBannersController extends BaseController | ||||
| { | { | ||||
| @Autowired | @Autowired | ||||
| private WxBannersService wxBannersService; | private WxBannersService wxBannersService; | ||||
| private Logger logger = Logger.getLogger(WxBannersController.class); | private Logger logger = Logger.getLogger(WxBannersController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -35,6 +35,7 @@ public class WxBannersController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxBanners wxBanners) { | public ResultData add(@RequestBody WxBanners wxBanners) { | ||||
| //Assert.notNull(wxBanners.getName(), "角色名不能为空"); | //Assert.notNull(wxBanners.getName(), "角色名不能为空"); | ||||
| @@ -43,12 +44,14 @@ public class WxBannersController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxBanners wxBanners) { | public ResultData update(@RequestBody WxBanners wxBanners) { | ||||
| wxBannersService.saveOrUpdate(wxBanners); | wxBannersService.saveOrUpdate(wxBanners); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -56,6 +59,7 @@ public class WxBannersController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxBusiness; | |||||
| import com.simple.service.WxBusinessService; | import com.simple.service.WxBusinessService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxBusiness") | @RequestMapping("wxBusiness") | ||||
| @@ -22,7 +23,8 @@ public class WxBusinessController extends BaseController | |||||
| private WxBusinessService wxBusinessService; | private WxBusinessService wxBusinessService; | ||||
| private Logger logger = Logger.getLogger(WxBusinessController.class); | private Logger logger = Logger.getLogger(WxBusinessController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxBusinessController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxBusiness wxBusiness) { | public ResultData add(@RequestBody WxBusiness wxBusiness) { | ||||
| //Assert.notNull(wxBusiness.getName(), "角色名不能为空"); | //Assert.notNull(wxBusiness.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxBusinessController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxBusiness wxBusiness) { | public ResultData update(@RequestBody WxBusiness wxBusiness) { | ||||
| wxBusinessService.saveOrUpdate(wxBusiness); | wxBusinessService.saveOrUpdate(wxBusiness); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxBusinessController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -1,6 +1,5 @@ | |||||
| package com.simple.controller; | package com.simple.controller; | ||||
| import io.swagger.annotations.Api; | |||||
| import org.apache.log4j.Logger; | import org.apache.log4j.Logger; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.util.Assert; | import org.springframework.util.Assert; | ||||
| @@ -14,17 +13,18 @@ import com.simple.domain.po.WxCLog; | |||||
| import com.simple.service.WxCLogService; | import com.simple.service.WxCLogService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxCLog") | @RequestMapping("wxCLog") | ||||
| @Api(description="C端log接口") | |||||
| public class WxCLogController extends BaseController | public class WxCLogController extends BaseController | ||||
| { | { | ||||
| @Autowired | @Autowired | ||||
| private WxCLogService wxCLogService; | private WxCLogService wxCLogService; | ||||
| private Logger logger = Logger.getLogger(WxCLogController.class); | private Logger logger = Logger.getLogger(WxCLogController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -35,6 +35,7 @@ public class WxCLogController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxCLog wxCLog) { | public ResultData add(@RequestBody WxCLog wxCLog) { | ||||
| //Assert.notNull(wxCLog.getName(), "角色名不能为空"); | //Assert.notNull(wxCLog.getName(), "角色名不能为空"); | ||||
| @@ -43,12 +44,14 @@ public class WxCLogController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxCLog wxCLog) { | public ResultData update(@RequestBody WxCLog wxCLog) { | ||||
| wxCLogService.saveOrUpdate(wxCLog); | wxCLogService.saveOrUpdate(wxCLog); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -56,6 +59,7 @@ public class WxCLogController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxCUserCars; | |||||
| import com.simple.service.WxCUserCarsService; | import com.simple.service.WxCUserCarsService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxCUserCars") | @RequestMapping("wxCUserCars") | ||||
| @@ -22,7 +23,8 @@ public class WxCUserCarsController extends BaseController | |||||
| private WxCUserCarsService wxCUserCarsService; | private WxCUserCarsService wxCUserCarsService; | ||||
| private Logger logger = Logger.getLogger(WxCUserCarsController.class); | private Logger logger = Logger.getLogger(WxCUserCarsController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxCUserCarsController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxCUserCars wxCUserCars) { | public ResultData add(@RequestBody WxCUserCars wxCUserCars) { | ||||
| //Assert.notNull(wxCUserCars.getName(), "角色名不能为空"); | //Assert.notNull(wxCUserCars.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxCUserCarsController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxCUserCars wxCUserCars) { | public ResultData update(@RequestBody WxCUserCars wxCUserCars) { | ||||
| wxCUserCarsService.saveOrUpdate(wxCUserCars); | wxCUserCarsService.saveOrUpdate(wxCUserCars); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxCUserCarsController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxCUserCloud; | |||||
| import com.simple.service.WxCUserCloudService; | import com.simple.service.WxCUserCloudService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxCUserCloud") | @RequestMapping("wxCUserCloud") | ||||
| @@ -22,7 +23,8 @@ public class WxCUserCloudController extends BaseController | |||||
| private WxCUserCloudService wxCUserCloudService; | private WxCUserCloudService wxCUserCloudService; | ||||
| private Logger logger = Logger.getLogger(WxCUserCloudController.class); | private Logger logger = Logger.getLogger(WxCUserCloudController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxCUserCloudController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxCUserCloud wxCUserCloud) { | public ResultData add(@RequestBody WxCUserCloud wxCUserCloud) { | ||||
| //Assert.notNull(wxCUserCloud.getName(), "角色名不能为空"); | //Assert.notNull(wxCUserCloud.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxCUserCloudController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxCUserCloud wxCUserCloud) { | public ResultData update(@RequestBody WxCUserCloud wxCUserCloud) { | ||||
| wxCUserCloudService.saveOrUpdate(wxCUserCloud); | wxCUserCloudService.saveOrUpdate(wxCUserCloud); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxCUserCloudController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxCUser; | |||||
| import com.simple.service.WxCUserService; | import com.simple.service.WxCUserService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxCUser") | @RequestMapping("wxCUser") | ||||
| @@ -22,7 +23,8 @@ public class WxCUserController extends BaseController | |||||
| private WxCUserService wxCUserService; | private WxCUserService wxCUserService; | ||||
| private Logger logger = Logger.getLogger(WxCUserController.class); | private Logger logger = Logger.getLogger(WxCUserController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxCUserController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxCUser wxCUser) { | public ResultData add(@RequestBody WxCUser wxCUser) { | ||||
| //Assert.notNull(wxCUser.getName(), "角色名不能为空"); | //Assert.notNull(wxCUser.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxCUserController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxCUser wxCUser) { | public ResultData update(@RequestBody WxCUser wxCUser) { | ||||
| wxCUserService.saveOrUpdate(wxCUser); | wxCUserService.saveOrUpdate(wxCUser); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxCUserController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxCUserEtcpToken; | |||||
| import com.simple.service.WxCUserEtcpTokenService; | import com.simple.service.WxCUserEtcpTokenService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxCUserEtcpToken") | @RequestMapping("wxCUserEtcpToken") | ||||
| @@ -22,7 +23,8 @@ public class WxCUserEtcpTokenController extends BaseController | |||||
| private WxCUserEtcpTokenService wxCUserEtcpTokenService; | private WxCUserEtcpTokenService wxCUserEtcpTokenService; | ||||
| private Logger logger = Logger.getLogger(WxCUserEtcpTokenController.class); | private Logger logger = Logger.getLogger(WxCUserEtcpTokenController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxCUserEtcpTokenController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxCUserEtcpToken wxCUserEtcpToken) { | public ResultData add(@RequestBody WxCUserEtcpToken wxCUserEtcpToken) { | ||||
| //Assert.notNull(wxCUserEtcpToken.getName(), "角色名不能为空"); | //Assert.notNull(wxCUserEtcpToken.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxCUserEtcpTokenController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxCUserEtcpToken wxCUserEtcpToken) { | public ResultData update(@RequestBody WxCUserEtcpToken wxCUserEtcpToken) { | ||||
| wxCUserEtcpTokenService.saveOrUpdate(wxCUserEtcpToken); | wxCUserEtcpTokenService.saveOrUpdate(wxCUserEtcpToken); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxCUserEtcpTokenController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxCUserTags; | |||||
| import com.simple.service.WxCUserTagsService; | import com.simple.service.WxCUserTagsService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxCUserTags") | @RequestMapping("wxCUserTags") | ||||
| @@ -22,7 +23,8 @@ public class WxCUserTagsController extends BaseController | |||||
| private WxCUserTagsService wxCUserTagsService; | private WxCUserTagsService wxCUserTagsService; | ||||
| private Logger logger = Logger.getLogger(WxCUserTagsController.class); | private Logger logger = Logger.getLogger(WxCUserTagsController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxCUserTagsController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxCUserTags wxCUserTags) { | public ResultData add(@RequestBody WxCUserTags wxCUserTags) { | ||||
| //Assert.notNull(wxCUserTags.getName(), "角色名不能为空"); | //Assert.notNull(wxCUserTags.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxCUserTagsController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxCUserTags wxCUserTags) { | public ResultData update(@RequestBody WxCUserTags wxCUserTags) { | ||||
| wxCUserTagsService.saveOrUpdate(wxCUserTags); | wxCUserTagsService.saveOrUpdate(wxCUserTags); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxCUserTagsController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxCouponActionLog; | |||||
| import com.simple.service.WxCouponActionLogService; | import com.simple.service.WxCouponActionLogService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxCouponActionLog") | @RequestMapping("wxCouponActionLog") | ||||
| @@ -22,7 +23,8 @@ public class WxCouponActionLogController extends BaseController | |||||
| private WxCouponActionLogService wxCouponActionLogService; | private WxCouponActionLogService wxCouponActionLogService; | ||||
| private Logger logger = Logger.getLogger(WxCouponActionLogController.class); | private Logger logger = Logger.getLogger(WxCouponActionLogController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxCouponActionLogController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxCouponActionLog wxCouponActionLog) { | public ResultData add(@RequestBody WxCouponActionLog wxCouponActionLog) { | ||||
| //Assert.notNull(wxCouponActionLog.getName(), "角色名不能为空"); | //Assert.notNull(wxCouponActionLog.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxCouponActionLogController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxCouponActionLog wxCouponActionLog) { | public ResultData update(@RequestBody WxCouponActionLog wxCouponActionLog) { | ||||
| wxCouponActionLogService.saveOrUpdate(wxCouponActionLog); | wxCouponActionLogService.saveOrUpdate(wxCouponActionLog); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxCouponActionLogController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -1,6 +1,5 @@ | |||||
| package com.simple.controller; | package com.simple.controller; | ||||
| import io.swagger.annotations.Api; | |||||
| import org.apache.log4j.Logger; | import org.apache.log4j.Logger; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.util.Assert; | import org.springframework.util.Assert; | ||||
| @@ -14,17 +13,18 @@ import com.simple.domain.po.WxCouponActivity; | |||||
| import com.simple.service.WxCouponActivityService; | import com.simple.service.WxCouponActivityService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxCouponActivity") | @RequestMapping("wxCouponActivity") | ||||
| @Api(description="卡券详情接口") | |||||
| public class WxCouponActivityController extends BaseController | public class WxCouponActivityController extends BaseController | ||||
| { | { | ||||
| @Autowired | @Autowired | ||||
| private WxCouponActivityService wxCouponActivityService; | private WxCouponActivityService wxCouponActivityService; | ||||
| private Logger logger = Logger.getLogger(WxCouponActivityController.class); | private Logger logger = Logger.getLogger(WxCouponActivityController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -35,6 +35,7 @@ public class WxCouponActivityController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxCouponActivity wxCouponActivity) { | public ResultData add(@RequestBody WxCouponActivity wxCouponActivity) { | ||||
| //Assert.notNull(wxCouponActivity.getName(), "角色名不能为空"); | //Assert.notNull(wxCouponActivity.getName(), "角色名不能为空"); | ||||
| @@ -43,12 +44,14 @@ public class WxCouponActivityController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxCouponActivity wxCouponActivity) { | public ResultData update(@RequestBody WxCouponActivity wxCouponActivity) { | ||||
| wxCouponActivityService.saveOrUpdate(wxCouponActivity); | wxCouponActivityService.saveOrUpdate(wxCouponActivity); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -56,6 +59,7 @@ public class WxCouponActivityController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -1,6 +1,5 @@ | |||||
| package com.simple.controller; | package com.simple.controller; | ||||
| import io.swagger.annotations.Api; | |||||
| import org.apache.log4j.Logger; | import org.apache.log4j.Logger; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.util.Assert; | import org.springframework.util.Assert; | ||||
| @@ -12,19 +11,23 @@ import com.simple.common.ResultData; | |||||
| import com.simple.domain.po.WxCoupon; | import com.simple.domain.po.WxCoupon; | ||||
| import com.simple.service.WxCouponService; | import com.simple.service.WxCouponService; | ||||
| import io.swagger.annotations.Api; | |||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxCoupon") | @RequestMapping("wxCoupon") | ||||
| @Api(description="卡券接口") | |||||
| @Api(description="优惠券相关接口") | |||||
| public class WxCouponController extends BaseController | public class WxCouponController extends BaseController | ||||
| { | { | ||||
| @Autowired | @Autowired | ||||
| private WxCouponService wxCouponService; | private WxCouponService wxCouponService; | ||||
| private Logger logger = Logger.getLogger(WxCouponController.class); | private Logger logger = Logger.getLogger(WxCouponController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -35,6 +38,7 @@ public class WxCouponController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxCoupon wxCoupon) { | public ResultData add(@RequestBody WxCoupon wxCoupon) { | ||||
| //Assert.notNull(wxCoupon.getName(), "角色名不能为空"); | //Assert.notNull(wxCoupon.getName(), "角色名不能为空"); | ||||
| @@ -43,12 +47,14 @@ public class WxCouponController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxCoupon wxCoupon) { | public ResultData update(@RequestBody WxCoupon wxCoupon) { | ||||
| wxCouponService.saveOrUpdate(wxCoupon); | wxCouponService.saveOrUpdate(wxCoupon); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -56,6 +62,7 @@ public class WxCouponController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -1,6 +1,5 @@ | |||||
| package com.simple.controller; | package com.simple.controller; | ||||
| import io.swagger.annotations.Api; | |||||
| import org.apache.log4j.Logger; | import org.apache.log4j.Logger; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.util.Assert; | import org.springframework.util.Assert; | ||||
| @@ -14,17 +13,18 @@ import com.simple.domain.po.WxCouponRecord; | |||||
| import com.simple.service.WxCouponRecordService; | import com.simple.service.WxCouponRecordService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxCouponRecord") | @RequestMapping("wxCouponRecord") | ||||
| @Api(description="卡券使用记录接口") | |||||
| public class WxCouponRecordController extends BaseController | public class WxCouponRecordController extends BaseController | ||||
| { | { | ||||
| @Autowired | @Autowired | ||||
| private WxCouponRecordService wxCouponRecordService; | private WxCouponRecordService wxCouponRecordService; | ||||
| private Logger logger = Logger.getLogger(WxCouponRecordController.class); | private Logger logger = Logger.getLogger(WxCouponRecordController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -35,6 +35,7 @@ public class WxCouponRecordController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxCouponRecord wxCouponRecord) { | public ResultData add(@RequestBody WxCouponRecord wxCouponRecord) { | ||||
| //Assert.notNull(wxCouponRecord.getName(), "角色名不能为空"); | //Assert.notNull(wxCouponRecord.getName(), "角色名不能为空"); | ||||
| @@ -43,12 +44,14 @@ public class WxCouponRecordController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxCouponRecord wxCouponRecord) { | public ResultData update(@RequestBody WxCouponRecord wxCouponRecord) { | ||||
| wxCouponRecordService.saveOrUpdate(wxCouponRecord); | wxCouponRecordService.saveOrUpdate(wxCouponRecord); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -56,6 +59,7 @@ public class WxCouponRecordController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -1,6 +1,5 @@ | |||||
| package com.simple.controller; | package com.simple.controller; | ||||
| import io.swagger.annotations.Api; | |||||
| import org.apache.log4j.Logger; | import org.apache.log4j.Logger; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.util.Assert; | import org.springframework.util.Assert; | ||||
| @@ -12,19 +11,23 @@ import com.simple.common.ResultData; | |||||
| import com.simple.domain.po.WxCouponType; | import com.simple.domain.po.WxCouponType; | ||||
| import com.simple.service.WxCouponTypeService; | import com.simple.service.WxCouponTypeService; | ||||
| import io.swagger.annotations.Api; | |||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxCouponType") | @RequestMapping("wxCouponType") | ||||
| @Api(description="卡券类型接口") | |||||
| @Api(description="优惠券类型相关接口") | |||||
| public class WxCouponTypeController extends BaseController | public class WxCouponTypeController extends BaseController | ||||
| { | { | ||||
| @Autowired | @Autowired | ||||
| private WxCouponTypeService wxCouponTypeService; | private WxCouponTypeService wxCouponTypeService; | ||||
| private Logger logger = Logger.getLogger(WxCouponTypeController.class); | private Logger logger = Logger.getLogger(WxCouponTypeController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -35,6 +38,7 @@ public class WxCouponTypeController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxCouponType wxCouponType) { | public ResultData add(@RequestBody WxCouponType wxCouponType) { | ||||
| //Assert.notNull(wxCouponType.getName(), "角色名不能为空"); | //Assert.notNull(wxCouponType.getName(), "角色名不能为空"); | ||||
| @@ -43,12 +47,14 @@ public class WxCouponTypeController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxCouponType wxCouponType) { | public ResultData update(@RequestBody WxCouponType wxCouponType) { | ||||
| wxCouponTypeService.saveOrUpdate(wxCouponType); | wxCouponTypeService.saveOrUpdate(wxCouponType); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -56,6 +62,7 @@ public class WxCouponTypeController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxEtcpCouponRecord; | |||||
| import com.simple.service.WxEtcpCouponRecordService; | import com.simple.service.WxEtcpCouponRecordService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxEtcpCouponRecord") | @RequestMapping("wxEtcpCouponRecord") | ||||
| @@ -22,7 +23,8 @@ public class WxEtcpCouponRecordController extends BaseController | |||||
| private WxEtcpCouponRecordService wxEtcpCouponRecordService; | private WxEtcpCouponRecordService wxEtcpCouponRecordService; | ||||
| private Logger logger = Logger.getLogger(WxEtcpCouponRecordController.class); | private Logger logger = Logger.getLogger(WxEtcpCouponRecordController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxEtcpCouponRecordController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxEtcpCouponRecord wxEtcpCouponRecord) { | public ResultData add(@RequestBody WxEtcpCouponRecord wxEtcpCouponRecord) { | ||||
| //Assert.notNull(wxEtcpCouponRecord.getName(), "角色名不能为空"); | //Assert.notNull(wxEtcpCouponRecord.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxEtcpCouponRecordController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxEtcpCouponRecord wxEtcpCouponRecord) { | public ResultData update(@RequestBody WxEtcpCouponRecord wxEtcpCouponRecord) { | ||||
| wxEtcpCouponRecordService.saveOrUpdate(wxEtcpCouponRecord); | wxEtcpCouponRecordService.saveOrUpdate(wxEtcpCouponRecord); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxEtcpCouponRecordController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxEtcpParkDissolution; | |||||
| import com.simple.service.WxEtcpParkDissolutionService; | import com.simple.service.WxEtcpParkDissolutionService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxEtcpParkDissolution") | @RequestMapping("wxEtcpParkDissolution") | ||||
| @@ -22,7 +23,8 @@ public class WxEtcpParkDissolutionController extends BaseController | |||||
| private WxEtcpParkDissolutionService wxEtcpParkDissolutionService; | private WxEtcpParkDissolutionService wxEtcpParkDissolutionService; | ||||
| private Logger logger = Logger.getLogger(WxEtcpParkDissolutionController.class); | private Logger logger = Logger.getLogger(WxEtcpParkDissolutionController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxEtcpParkDissolutionController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxEtcpParkDissolution wxEtcpParkDissolution) { | public ResultData add(@RequestBody WxEtcpParkDissolution wxEtcpParkDissolution) { | ||||
| //Assert.notNull(wxEtcpParkDissolution.getName(), "角色名不能为空"); | //Assert.notNull(wxEtcpParkDissolution.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxEtcpParkDissolutionController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxEtcpParkDissolution wxEtcpParkDissolution) { | public ResultData update(@RequestBody WxEtcpParkDissolution wxEtcpParkDissolution) { | ||||
| wxEtcpParkDissolutionService.saveOrUpdate(wxEtcpParkDissolution); | wxEtcpParkDissolutionService.saveOrUpdate(wxEtcpParkDissolution); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxEtcpParkDissolutionController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxEtcpParkIn; | |||||
| import com.simple.service.WxEtcpParkInService; | import com.simple.service.WxEtcpParkInService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxEtcpParkIn") | @RequestMapping("wxEtcpParkIn") | ||||
| @@ -22,7 +23,8 @@ public class WxEtcpParkInController extends BaseController | |||||
| private WxEtcpParkInService wxEtcpParkInService; | private WxEtcpParkInService wxEtcpParkInService; | ||||
| private Logger logger = Logger.getLogger(WxEtcpParkInController.class); | private Logger logger = Logger.getLogger(WxEtcpParkInController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxEtcpParkInController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxEtcpParkIn wxEtcpParkIn) { | public ResultData add(@RequestBody WxEtcpParkIn wxEtcpParkIn) { | ||||
| //Assert.notNull(wxEtcpParkIn.getName(), "角色名不能为空"); | //Assert.notNull(wxEtcpParkIn.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxEtcpParkInController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxEtcpParkIn wxEtcpParkIn) { | public ResultData update(@RequestBody WxEtcpParkIn wxEtcpParkIn) { | ||||
| wxEtcpParkInService.saveOrUpdate(wxEtcpParkIn); | wxEtcpParkInService.saveOrUpdate(wxEtcpParkIn); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxEtcpParkInController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxEtcpParkMsgSuc; | |||||
| import com.simple.service.WxEtcpParkMsgSucService; | import com.simple.service.WxEtcpParkMsgSucService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxEtcpParkMsgSuc") | @RequestMapping("wxEtcpParkMsgSuc") | ||||
| @@ -22,7 +23,8 @@ public class WxEtcpParkMsgSucController extends BaseController | |||||
| private WxEtcpParkMsgSucService wxEtcpParkMsgSucService; | private WxEtcpParkMsgSucService wxEtcpParkMsgSucService; | ||||
| private Logger logger = Logger.getLogger(WxEtcpParkMsgSucController.class); | private Logger logger = Logger.getLogger(WxEtcpParkMsgSucController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxEtcpParkMsgSucController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxEtcpParkMsgSuc wxEtcpParkMsgSuc) { | public ResultData add(@RequestBody WxEtcpParkMsgSuc wxEtcpParkMsgSuc) { | ||||
| //Assert.notNull(wxEtcpParkMsgSuc.getName(), "角色名不能为空"); | //Assert.notNull(wxEtcpParkMsgSuc.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxEtcpParkMsgSucController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxEtcpParkMsgSuc wxEtcpParkMsgSuc) { | public ResultData update(@RequestBody WxEtcpParkMsgSuc wxEtcpParkMsgSuc) { | ||||
| wxEtcpParkMsgSucService.saveOrUpdate(wxEtcpParkMsgSuc); | wxEtcpParkMsgSucService.saveOrUpdate(wxEtcpParkMsgSuc); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxEtcpParkMsgSucController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxEtcpParkOrderunpay; | |||||
| import com.simple.service.WxEtcpParkOrderunpayService; | import com.simple.service.WxEtcpParkOrderunpayService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxEtcpParkOrderunpay") | @RequestMapping("wxEtcpParkOrderunpay") | ||||
| @@ -22,7 +23,8 @@ public class WxEtcpParkOrderunpayController extends BaseController | |||||
| private WxEtcpParkOrderunpayService wxEtcpParkOrderunpayService; | private WxEtcpParkOrderunpayService wxEtcpParkOrderunpayService; | ||||
| private Logger logger = Logger.getLogger(WxEtcpParkOrderunpayController.class); | private Logger logger = Logger.getLogger(WxEtcpParkOrderunpayController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxEtcpParkOrderunpayController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxEtcpParkOrderunpay wxEtcpParkOrderunpay) { | public ResultData add(@RequestBody WxEtcpParkOrderunpay wxEtcpParkOrderunpay) { | ||||
| //Assert.notNull(wxEtcpParkOrderunpay.getName(), "角色名不能为空"); | //Assert.notNull(wxEtcpParkOrderunpay.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxEtcpParkOrderunpayController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxEtcpParkOrderunpay wxEtcpParkOrderunpay) { | public ResultData update(@RequestBody WxEtcpParkOrderunpay wxEtcpParkOrderunpay) { | ||||
| wxEtcpParkOrderunpayService.saveOrUpdate(wxEtcpParkOrderunpay); | wxEtcpParkOrderunpayService.saveOrUpdate(wxEtcpParkOrderunpay); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxEtcpParkOrderunpayController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxEtcpParkOut; | |||||
| import com.simple.service.WxEtcpParkOutService; | import com.simple.service.WxEtcpParkOutService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxEtcpParkOut") | @RequestMapping("wxEtcpParkOut") | ||||
| @@ -22,7 +23,8 @@ public class WxEtcpParkOutController extends BaseController | |||||
| private WxEtcpParkOutService wxEtcpParkOutService; | private WxEtcpParkOutService wxEtcpParkOutService; | ||||
| private Logger logger = Logger.getLogger(WxEtcpParkOutController.class); | private Logger logger = Logger.getLogger(WxEtcpParkOutController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxEtcpParkOutController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxEtcpParkOut wxEtcpParkOut) { | public ResultData add(@RequestBody WxEtcpParkOut wxEtcpParkOut) { | ||||
| //Assert.notNull(wxEtcpParkOut.getName(), "角色名不能为空"); | //Assert.notNull(wxEtcpParkOut.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxEtcpParkOutController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxEtcpParkOut wxEtcpParkOut) { | public ResultData update(@RequestBody WxEtcpParkOut wxEtcpParkOut) { | ||||
| wxEtcpParkOutService.saveOrUpdate(wxEtcpParkOut); | wxEtcpParkOutService.saveOrUpdate(wxEtcpParkOut); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxEtcpParkOutController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxEtcpParkTransaction; | |||||
| import com.simple.service.WxEtcpParkTransactionService; | import com.simple.service.WxEtcpParkTransactionService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxEtcpParkTransaction") | @RequestMapping("wxEtcpParkTransaction") | ||||
| @@ -22,7 +23,8 @@ public class WxEtcpParkTransactionController extends BaseController | |||||
| private WxEtcpParkTransactionService wxEtcpParkTransactionService; | private WxEtcpParkTransactionService wxEtcpParkTransactionService; | ||||
| private Logger logger = Logger.getLogger(WxEtcpParkTransactionController.class); | private Logger logger = Logger.getLogger(WxEtcpParkTransactionController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxEtcpParkTransactionController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxEtcpParkTransaction wxEtcpParkTransaction) { | public ResultData add(@RequestBody WxEtcpParkTransaction wxEtcpParkTransaction) { | ||||
| //Assert.notNull(wxEtcpParkTransaction.getName(), "角色名不能为空"); | //Assert.notNull(wxEtcpParkTransaction.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxEtcpParkTransactionController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxEtcpParkTransaction wxEtcpParkTransaction) { | public ResultData update(@RequestBody WxEtcpParkTransaction wxEtcpParkTransaction) { | ||||
| wxEtcpParkTransactionService.saveOrUpdate(wxEtcpParkTransaction); | wxEtcpParkTransactionService.saveOrUpdate(wxEtcpParkTransaction); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxEtcpParkTransactionController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxEtcpParkUnbind; | |||||
| import com.simple.service.WxEtcpParkUnbindService; | import com.simple.service.WxEtcpParkUnbindService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxEtcpParkUnbind") | @RequestMapping("wxEtcpParkUnbind") | ||||
| @@ -22,7 +23,8 @@ public class WxEtcpParkUnbindController extends BaseController | |||||
| private WxEtcpParkUnbindService wxEtcpParkUnbindService; | private WxEtcpParkUnbindService wxEtcpParkUnbindService; | ||||
| private Logger logger = Logger.getLogger(WxEtcpParkUnbindController.class); | private Logger logger = Logger.getLogger(WxEtcpParkUnbindController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxEtcpParkUnbindController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxEtcpParkUnbind wxEtcpParkUnbind) { | public ResultData add(@RequestBody WxEtcpParkUnbind wxEtcpParkUnbind) { | ||||
| //Assert.notNull(wxEtcpParkUnbind.getName(), "角色名不能为空"); | //Assert.notNull(wxEtcpParkUnbind.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxEtcpParkUnbindController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxEtcpParkUnbind wxEtcpParkUnbind) { | public ResultData update(@RequestBody WxEtcpParkUnbind wxEtcpParkUnbind) { | ||||
| wxEtcpParkUnbindService.saveOrUpdate(wxEtcpParkUnbind); | wxEtcpParkUnbindService.saveOrUpdate(wxEtcpParkUnbind); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxEtcpParkUnbindController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxFlashSale; | |||||
| import com.simple.service.WxFlashSaleService; | import com.simple.service.WxFlashSaleService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxFlashSale") | @RequestMapping("wxFlashSale") | ||||
| @@ -22,7 +23,8 @@ public class WxFlashSaleController extends BaseController | |||||
| private WxFlashSaleService wxFlashSaleService; | private WxFlashSaleService wxFlashSaleService; | ||||
| private Logger logger = Logger.getLogger(WxFlashSaleController.class); | private Logger logger = Logger.getLogger(WxFlashSaleController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxFlashSaleController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxFlashSale wxFlashSale) { | public ResultData add(@RequestBody WxFlashSale wxFlashSale) { | ||||
| //Assert.notNull(wxFlashSale.getName(), "角色名不能为空"); | //Assert.notNull(wxFlashSale.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxFlashSaleController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxFlashSale wxFlashSale) { | public ResultData update(@RequestBody WxFlashSale wxFlashSale) { | ||||
| wxFlashSaleService.saveOrUpdate(wxFlashSale); | wxFlashSaleService.saveOrUpdate(wxFlashSale); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxFlashSaleController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxImgUrl; | |||||
| import com.simple.service.WxImgUrlService; | import com.simple.service.WxImgUrlService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxImgUrl") | @RequestMapping("wxImgUrl") | ||||
| @@ -22,7 +23,8 @@ public class WxImgUrlController extends BaseController | |||||
| private WxImgUrlService wxImgUrlService; | private WxImgUrlService wxImgUrlService; | ||||
| private Logger logger = Logger.getLogger(WxImgUrlController.class); | private Logger logger = Logger.getLogger(WxImgUrlController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxImgUrlController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxImgUrl wxImgUrl) { | public ResultData add(@RequestBody WxImgUrl wxImgUrl) { | ||||
| //Assert.notNull(wxImgUrl.getName(), "角色名不能为空"); | //Assert.notNull(wxImgUrl.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxImgUrlController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxImgUrl wxImgUrl) { | public ResultData update(@RequestBody WxImgUrl wxImgUrl) { | ||||
| wxImgUrlService.saveOrUpdate(wxImgUrl); | wxImgUrlService.saveOrUpdate(wxImgUrl); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxImgUrlController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxMallBuilding; | |||||
| import com.simple.service.WxMallBuildingService; | import com.simple.service.WxMallBuildingService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxMallBuilding") | @RequestMapping("wxMallBuilding") | ||||
| @@ -22,7 +23,8 @@ public class WxMallBuildingController extends BaseController | |||||
| private WxMallBuildingService wxMallBuildingService; | private WxMallBuildingService wxMallBuildingService; | ||||
| private Logger logger = Logger.getLogger(WxMallBuildingController.class); | private Logger logger = Logger.getLogger(WxMallBuildingController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxMallBuildingController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxMallBuilding wxMallBuilding) { | public ResultData add(@RequestBody WxMallBuilding wxMallBuilding) { | ||||
| //Assert.notNull(wxMallBuilding.getName(), "角色名不能为空"); | //Assert.notNull(wxMallBuilding.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxMallBuildingController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxMallBuilding wxMallBuilding) { | public ResultData update(@RequestBody WxMallBuilding wxMallBuilding) { | ||||
| wxMallBuildingService.saveOrUpdate(wxMallBuilding); | wxMallBuildingService.saveOrUpdate(wxMallBuilding); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxMallBuildingController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -1,6 +1,5 @@ | |||||
| package com.simple.controller; | package com.simple.controller; | ||||
| import io.swagger.annotations.Api; | |||||
| import org.apache.log4j.Logger; | import org.apache.log4j.Logger; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.util.Assert; | import org.springframework.util.Assert; | ||||
| @@ -14,17 +13,18 @@ import com.simple.domain.po.WxMall; | |||||
| import com.simple.service.WxMallService; | import com.simple.service.WxMallService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxMall") | @RequestMapping("wxMall") | ||||
| @Api(description="商场信息接口") | |||||
| public class WxMallController extends BaseController | public class WxMallController extends BaseController | ||||
| { | { | ||||
| @Autowired | @Autowired | ||||
| private WxMallService wxMallService; | private WxMallService wxMallService; | ||||
| private Logger logger = Logger.getLogger(WxMallController.class); | private Logger logger = Logger.getLogger(WxMallController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -35,6 +35,7 @@ public class WxMallController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxMall wxMall) { | public ResultData add(@RequestBody WxMall wxMall) { | ||||
| //Assert.notNull(wxMall.getName(), "角色名不能为空"); | //Assert.notNull(wxMall.getName(), "角色名不能为空"); | ||||
| @@ -43,12 +44,14 @@ public class WxMallController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxMall wxMall) { | public ResultData update(@RequestBody WxMall wxMall) { | ||||
| wxMallService.saveOrUpdate(wxMall); | wxMallService.saveOrUpdate(wxMall); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -56,6 +59,7 @@ public class WxMallController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxMallFloor; | |||||
| import com.simple.service.WxMallFloorService; | import com.simple.service.WxMallFloorService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxMallFloor") | @RequestMapping("wxMallFloor") | ||||
| @@ -22,7 +23,8 @@ public class WxMallFloorController extends BaseController | |||||
| private WxMallFloorService wxMallFloorService; | private WxMallFloorService wxMallFloorService; | ||||
| private Logger logger = Logger.getLogger(WxMallFloorController.class); | private Logger logger = Logger.getLogger(WxMallFloorController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxMallFloorController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxMallFloor wxMallFloor) { | public ResultData add(@RequestBody WxMallFloor wxMallFloor) { | ||||
| //Assert.notNull(wxMallFloor.getName(), "角色名不能为空"); | //Assert.notNull(wxMallFloor.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxMallFloorController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxMallFloor wxMallFloor) { | public ResultData update(@RequestBody WxMallFloor wxMallFloor) { | ||||
| wxMallFloorService.saveOrUpdate(wxMallFloor); | wxMallFloorService.saveOrUpdate(wxMallFloor); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxMallFloorController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -1,6 +1,5 @@ | |||||
| package com.simple.controller; | package com.simple.controller; | ||||
| import io.swagger.annotations.Api; | |||||
| import org.apache.log4j.Logger; | import org.apache.log4j.Logger; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.util.Assert; | import org.springframework.util.Assert; | ||||
| @@ -14,17 +13,18 @@ import com.simple.domain.po.WxMerchant; | |||||
| import com.simple.service.WxMerchantService; | import com.simple.service.WxMerchantService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxMerchant") | @RequestMapping("wxMerchant") | ||||
| @Api(description="商户相关接口") | |||||
| public class WxMerchantController extends BaseController | public class WxMerchantController extends BaseController | ||||
| { | { | ||||
| @Autowired | @Autowired | ||||
| private WxMerchantService wxMerchantService; | private WxMerchantService wxMerchantService; | ||||
| private Logger logger = Logger.getLogger(WxMerchantController.class); | private Logger logger = Logger.getLogger(WxMerchantController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -35,6 +35,7 @@ public class WxMerchantController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxMerchant wxMerchant) { | public ResultData add(@RequestBody WxMerchant wxMerchant) { | ||||
| //Assert.notNull(wxMerchant.getName(), "角色名不能为空"); | //Assert.notNull(wxMerchant.getName(), "角色名不能为空"); | ||||
| @@ -43,12 +44,14 @@ public class WxMerchantController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxMerchant wxMerchant) { | public ResultData update(@RequestBody WxMerchant wxMerchant) { | ||||
| wxMerchantService.saveOrUpdate(wxMerchant); | wxMerchantService.saveOrUpdate(wxMerchant); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -56,6 +59,7 @@ public class WxMerchantController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxMerchantEtcp; | |||||
| import com.simple.service.WxMerchantEtcpService; | import com.simple.service.WxMerchantEtcpService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxMerchantEtcp") | @RequestMapping("wxMerchantEtcp") | ||||
| @@ -22,7 +23,8 @@ public class WxMerchantEtcpController extends BaseController | |||||
| private WxMerchantEtcpService wxMerchantEtcpService; | private WxMerchantEtcpService wxMerchantEtcpService; | ||||
| private Logger logger = Logger.getLogger(WxMerchantEtcpController.class); | private Logger logger = Logger.getLogger(WxMerchantEtcpController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxMerchantEtcpController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxMerchantEtcp wxMerchantEtcp) { | public ResultData add(@RequestBody WxMerchantEtcp wxMerchantEtcp) { | ||||
| //Assert.notNull(wxMerchantEtcp.getName(), "角色名不能为空"); | //Assert.notNull(wxMerchantEtcp.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxMerchantEtcpController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxMerchantEtcp wxMerchantEtcp) { | public ResultData update(@RequestBody WxMerchantEtcp wxMerchantEtcp) { | ||||
| wxMerchantEtcpService.saveOrUpdate(wxMerchantEtcp); | wxMerchantEtcpService.saveOrUpdate(wxMerchantEtcp); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxMerchantEtcpController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -1,6 +1,5 @@ | |||||
| package com.simple.controller; | package com.simple.controller; | ||||
| import io.swagger.annotations.Api; | |||||
| import org.apache.log4j.Logger; | import org.apache.log4j.Logger; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.util.Assert; | import org.springframework.util.Assert; | ||||
| @@ -14,17 +13,18 @@ import com.simple.domain.po.WxMerchantShop; | |||||
| import com.simple.service.WxMerchantShopService; | import com.simple.service.WxMerchantShopService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxMerchantShop") | @RequestMapping("wxMerchantShop") | ||||
| @Api(description="商户店铺接口") | |||||
| public class WxMerchantShopController extends BaseController | public class WxMerchantShopController extends BaseController | ||||
| { | { | ||||
| @Autowired | @Autowired | ||||
| private WxMerchantShopService wxMerchantShopService; | private WxMerchantShopService wxMerchantShopService; | ||||
| private Logger logger = Logger.getLogger(WxMerchantShopController.class); | private Logger logger = Logger.getLogger(WxMerchantShopController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -35,6 +35,7 @@ public class WxMerchantShopController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxMerchantShop wxMerchantShop) { | public ResultData add(@RequestBody WxMerchantShop wxMerchantShop) { | ||||
| //Assert.notNull(wxMerchantShop.getName(), "角色名不能为空"); | //Assert.notNull(wxMerchantShop.getName(), "角色名不能为空"); | ||||
| @@ -43,12 +44,14 @@ public class WxMerchantShopController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxMerchantShop wxMerchantShop) { | public ResultData update(@RequestBody WxMerchantShop wxMerchantShop) { | ||||
| wxMerchantShopService.saveOrUpdate(wxMerchantShop); | wxMerchantShopService.saveOrUpdate(wxMerchantShop); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -56,6 +59,7 @@ public class WxMerchantShopController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -1,6 +1,5 @@ | |||||
| package com.simple.controller; | package com.simple.controller; | ||||
| import io.swagger.annotations.Api; | |||||
| import org.apache.log4j.Logger; | import org.apache.log4j.Logger; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.util.Assert; | import org.springframework.util.Assert; | ||||
| @@ -14,17 +13,18 @@ import com.simple.domain.po.WxMerchantTradeDays; | |||||
| import com.simple.service.WxMerchantTradeDaysService; | import com.simple.service.WxMerchantTradeDaysService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxMerchantTradeDays") | @RequestMapping("wxMerchantTradeDays") | ||||
| @Api(description="商户日结单额接口") | |||||
| public class WxMerchantTradeDaysController extends BaseController | public class WxMerchantTradeDaysController extends BaseController | ||||
| { | { | ||||
| @Autowired | @Autowired | ||||
| private WxMerchantTradeDaysService wxMerchantTradeDaysService; | private WxMerchantTradeDaysService wxMerchantTradeDaysService; | ||||
| private Logger logger = Logger.getLogger(WxMerchantTradeDaysController.class); | private Logger logger = Logger.getLogger(WxMerchantTradeDaysController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -35,6 +35,7 @@ public class WxMerchantTradeDaysController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxMerchantTradeDays wxMerchantTradeDays) { | public ResultData add(@RequestBody WxMerchantTradeDays wxMerchantTradeDays) { | ||||
| //Assert.notNull(wxMerchantTradeDays.getName(), "角色名不能为空"); | //Assert.notNull(wxMerchantTradeDays.getName(), "角色名不能为空"); | ||||
| @@ -43,12 +44,14 @@ public class WxMerchantTradeDaysController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxMerchantTradeDays wxMerchantTradeDays) { | public ResultData update(@RequestBody WxMerchantTradeDays wxMerchantTradeDays) { | ||||
| wxMerchantTradeDaysService.saveOrUpdate(wxMerchantTradeDays); | wxMerchantTradeDaysService.saveOrUpdate(wxMerchantTradeDays); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -56,6 +59,7 @@ public class WxMerchantTradeDaysController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxMsgConfig; | |||||
| import com.simple.service.WxMsgConfigService; | import com.simple.service.WxMsgConfigService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxMsgConfig") | @RequestMapping("wxMsgConfig") | ||||
| @@ -22,7 +23,8 @@ public class WxMsgConfigController extends BaseController | |||||
| private WxMsgConfigService wxMsgConfigService; | private WxMsgConfigService wxMsgConfigService; | ||||
| private Logger logger = Logger.getLogger(WxMsgConfigController.class); | private Logger logger = Logger.getLogger(WxMsgConfigController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxMsgConfigController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxMsgConfig wxMsgConfig) { | public ResultData add(@RequestBody WxMsgConfig wxMsgConfig) { | ||||
| //Assert.notNull(wxMsgConfig.getName(), "角色名不能为空"); | //Assert.notNull(wxMsgConfig.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxMsgConfigController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxMsgConfig wxMsgConfig) { | public ResultData update(@RequestBody WxMsgConfig wxMsgConfig) { | ||||
| wxMsgConfigService.saveOrUpdate(wxMsgConfig); | wxMsgConfigService.saveOrUpdate(wxMsgConfig); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxMsgConfigController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxMsg; | |||||
| import com.simple.service.WxMsgService; | import com.simple.service.WxMsgService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxMsg") | @RequestMapping("wxMsg") | ||||
| @@ -22,7 +23,8 @@ public class WxMsgController extends BaseController | |||||
| private WxMsgService wxMsgService; | private WxMsgService wxMsgService; | ||||
| private Logger logger = Logger.getLogger(WxMsgController.class); | private Logger logger = Logger.getLogger(WxMsgController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxMsgController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxMsg wxMsg) { | public ResultData add(@RequestBody WxMsg wxMsg) { | ||||
| //Assert.notNull(wxMsg.getName(), "角色名不能为空"); | //Assert.notNull(wxMsg.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxMsgController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxMsg wxMsg) { | public ResultData update(@RequestBody WxMsg wxMsg) { | ||||
| wxMsgService.saveOrUpdate(wxMsg); | wxMsgService.saveOrUpdate(wxMsg); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxMsgController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxMsgModel; | |||||
| import com.simple.service.WxMsgModelService; | import com.simple.service.WxMsgModelService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxMsgModel") | @RequestMapping("wxMsgModel") | ||||
| @@ -22,7 +23,8 @@ public class WxMsgModelController extends BaseController | |||||
| private WxMsgModelService wxMsgModelService; | private WxMsgModelService wxMsgModelService; | ||||
| private Logger logger = Logger.getLogger(WxMsgModelController.class); | private Logger logger = Logger.getLogger(WxMsgModelController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxMsgModelController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxMsgModel wxMsgModel) { | public ResultData add(@RequestBody WxMsgModel wxMsgModel) { | ||||
| //Assert.notNull(wxMsgModel.getName(), "角色名不能为空"); | //Assert.notNull(wxMsgModel.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxMsgModelController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxMsgModel wxMsgModel) { | public ResultData update(@RequestBody WxMsgModel wxMsgModel) { | ||||
| wxMsgModelService.saveOrUpdate(wxMsgModel); | wxMsgModelService.saveOrUpdate(wxMsgModel); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxMsgModelController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxMsgSignature; | |||||
| import com.simple.service.WxMsgSignatureService; | import com.simple.service.WxMsgSignatureService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxMsgSignature") | @RequestMapping("wxMsgSignature") | ||||
| @@ -22,7 +23,8 @@ public class WxMsgSignatureController extends BaseController | |||||
| private WxMsgSignatureService wxMsgSignatureService; | private WxMsgSignatureService wxMsgSignatureService; | ||||
| private Logger logger = Logger.getLogger(WxMsgSignatureController.class); | private Logger logger = Logger.getLogger(WxMsgSignatureController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxMsgSignatureController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxMsgSignature wxMsgSignature) { | public ResultData add(@RequestBody WxMsgSignature wxMsgSignature) { | ||||
| //Assert.notNull(wxMsgSignature.getName(), "角色名不能为空"); | //Assert.notNull(wxMsgSignature.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxMsgSignatureController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxMsgSignature wxMsgSignature) { | public ResultData update(@RequestBody WxMsgSignature wxMsgSignature) { | ||||
| wxMsgSignatureService.saveOrUpdate(wxMsgSignature); | wxMsgSignatureService.saveOrUpdate(wxMsgSignature); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxMsgSignatureController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -1,6 +1,5 @@ | |||||
| package com.simple.controller; | package com.simple.controller; | ||||
| import io.swagger.annotations.Api; | |||||
| import org.apache.log4j.Logger; | import org.apache.log4j.Logger; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.util.Assert; | import org.springframework.util.Assert; | ||||
| @@ -14,17 +13,18 @@ import com.simple.domain.po.WxOrders; | |||||
| import com.simple.service.WxOrdersService; | import com.simple.service.WxOrdersService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxOrders") | @RequestMapping("wxOrders") | ||||
| @Api(description="卡卷订单接口") | |||||
| public class WxOrdersController extends BaseController | public class WxOrdersController extends BaseController | ||||
| { | { | ||||
| @Autowired | @Autowired | ||||
| private WxOrdersService wxOrdersService; | private WxOrdersService wxOrdersService; | ||||
| private Logger logger = Logger.getLogger(WxOrdersController.class); | private Logger logger = Logger.getLogger(WxOrdersController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -35,6 +35,7 @@ public class WxOrdersController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxOrders wxOrders) { | public ResultData add(@RequestBody WxOrders wxOrders) { | ||||
| //Assert.notNull(wxOrders.getName(), "角色名不能为空"); | //Assert.notNull(wxOrders.getName(), "角色名不能为空"); | ||||
| @@ -43,12 +44,14 @@ public class WxOrdersController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxOrders wxOrders) { | public ResultData update(@RequestBody WxOrders wxOrders) { | ||||
| wxOrdersService.saveOrUpdate(wxOrders); | wxOrdersService.saveOrUpdate(wxOrders); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -56,6 +59,7 @@ public class WxOrdersController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxPark; | |||||
| import com.simple.service.WxParkService; | import com.simple.service.WxParkService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxPark") | @RequestMapping("wxPark") | ||||
| @@ -22,7 +23,8 @@ public class WxParkController extends BaseController | |||||
| private WxParkService wxParkService; | private WxParkService wxParkService; | ||||
| private Logger logger = Logger.getLogger(WxParkController.class); | private Logger logger = Logger.getLogger(WxParkController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxParkController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxPark wxPark) { | public ResultData add(@RequestBody WxPark wxPark) { | ||||
| //Assert.notNull(wxPark.getName(), "角色名不能为空"); | //Assert.notNull(wxPark.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxParkController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxPark wxPark) { | public ResultData update(@RequestBody WxPark wxPark) { | ||||
| wxParkService.saveOrUpdate(wxPark); | wxParkService.saveOrUpdate(wxPark); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxParkController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxParkEtcp; | |||||
| import com.simple.service.WxParkEtcpService; | import com.simple.service.WxParkEtcpService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxParkEtcp") | @RequestMapping("wxParkEtcp") | ||||
| @@ -22,7 +23,8 @@ public class WxParkEtcpController extends BaseController | |||||
| private WxParkEtcpService wxParkEtcpService; | private WxParkEtcpService wxParkEtcpService; | ||||
| private Logger logger = Logger.getLogger(WxParkEtcpController.class); | private Logger logger = Logger.getLogger(WxParkEtcpController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxParkEtcpController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxParkEtcp wxParkEtcp) { | public ResultData add(@RequestBody WxParkEtcp wxParkEtcp) { | ||||
| //Assert.notNull(wxParkEtcp.getName(), "角色名不能为空"); | //Assert.notNull(wxParkEtcp.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxParkEtcpController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxParkEtcp wxParkEtcp) { | public ResultData update(@RequestBody WxParkEtcp wxParkEtcp) { | ||||
| wxParkEtcpService.saveOrUpdate(wxParkEtcp); | wxParkEtcpService.saveOrUpdate(wxParkEtcp); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxParkEtcpController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxScoreHistory; | |||||
| import com.simple.service.WxScoreHistoryService; | import com.simple.service.WxScoreHistoryService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxScoreHistory") | @RequestMapping("wxScoreHistory") | ||||
| @@ -22,7 +23,8 @@ public class WxScoreHistoryController extends BaseController | |||||
| private WxScoreHistoryService wxScoreHistoryService; | private WxScoreHistoryService wxScoreHistoryService; | ||||
| private Logger logger = Logger.getLogger(WxScoreHistoryController.class); | private Logger logger = Logger.getLogger(WxScoreHistoryController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxScoreHistoryController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxScoreHistory wxScoreHistory) { | public ResultData add(@RequestBody WxScoreHistory wxScoreHistory) { | ||||
| //Assert.notNull(wxScoreHistory.getName(), "角色名不能为空"); | //Assert.notNull(wxScoreHistory.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxScoreHistoryController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxScoreHistory wxScoreHistory) { | public ResultData update(@RequestBody WxScoreHistory wxScoreHistory) { | ||||
| wxScoreHistoryService.saveOrUpdate(wxScoreHistory); | wxScoreHistoryService.saveOrUpdate(wxScoreHistory); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxScoreHistoryController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxScoreRules; | |||||
| import com.simple.service.WxScoreRulesService; | import com.simple.service.WxScoreRulesService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxScoreRules") | @RequestMapping("wxScoreRules") | ||||
| @@ -22,7 +23,8 @@ public class WxScoreRulesController extends BaseController | |||||
| private WxScoreRulesService wxScoreRulesService; | private WxScoreRulesService wxScoreRulesService; | ||||
| private Logger logger = Logger.getLogger(WxScoreRulesController.class); | private Logger logger = Logger.getLogger(WxScoreRulesController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxScoreRulesController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxScoreRules wxScoreRules) { | public ResultData add(@RequestBody WxScoreRules wxScoreRules) { | ||||
| //Assert.notNull(wxScoreRules.getName(), "角色名不能为空"); | //Assert.notNull(wxScoreRules.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxScoreRulesController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxScoreRules wxScoreRules) { | public ResultData update(@RequestBody WxScoreRules wxScoreRules) { | ||||
| wxScoreRulesService.saveOrUpdate(wxScoreRules); | wxScoreRulesService.saveOrUpdate(wxScoreRules); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxScoreRulesController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxScoreValidityPeriod; | |||||
| import com.simple.service.WxScoreValidityPeriodService; | import com.simple.service.WxScoreValidityPeriodService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxScoreValidityPeriod") | @RequestMapping("wxScoreValidityPeriod") | ||||
| @@ -22,7 +23,8 @@ public class WxScoreValidityPeriodController extends BaseController | |||||
| private WxScoreValidityPeriodService wxScoreValidityPeriodService; | private WxScoreValidityPeriodService wxScoreValidityPeriodService; | ||||
| private Logger logger = Logger.getLogger(WxScoreValidityPeriodController.class); | private Logger logger = Logger.getLogger(WxScoreValidityPeriodController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxScoreValidityPeriodController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxScoreValidityPeriod wxScoreValidityPeriod) { | public ResultData add(@RequestBody WxScoreValidityPeriod wxScoreValidityPeriod) { | ||||
| //Assert.notNull(wxScoreValidityPeriod.getName(), "角色名不能为空"); | //Assert.notNull(wxScoreValidityPeriod.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxScoreValidityPeriodController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxScoreValidityPeriod wxScoreValidityPeriod) { | public ResultData update(@RequestBody WxScoreValidityPeriod wxScoreValidityPeriod) { | ||||
| wxScoreValidityPeriodService.saveOrUpdate(wxScoreValidityPeriod); | wxScoreValidityPeriodService.saveOrUpdate(wxScoreValidityPeriod); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxScoreValidityPeriodController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -1,6 +1,5 @@ | |||||
| package com.simple.controller; | package com.simple.controller; | ||||
| import io.swagger.annotations.Api; | |||||
| import org.apache.log4j.Logger; | import org.apache.log4j.Logger; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.util.Assert; | import org.springframework.util.Assert; | ||||
| @@ -14,17 +13,18 @@ import com.simple.domain.po.WxShop; | |||||
| import com.simple.service.WxShopService; | import com.simple.service.WxShopService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxShop") | @RequestMapping("wxShop") | ||||
| @Api(description="店铺接口") | |||||
| public class WxShopController extends BaseController | public class WxShopController extends BaseController | ||||
| { | { | ||||
| @Autowired | @Autowired | ||||
| private WxShopService wxShopService; | private WxShopService wxShopService; | ||||
| private Logger logger = Logger.getLogger(WxShopController.class); | private Logger logger = Logger.getLogger(WxShopController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -35,6 +35,7 @@ public class WxShopController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxShop wxShop) { | public ResultData add(@RequestBody WxShop wxShop) { | ||||
| //Assert.notNull(wxShop.getName(), "角色名不能为空"); | //Assert.notNull(wxShop.getName(), "角色名不能为空"); | ||||
| @@ -43,12 +44,14 @@ public class WxShopController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxShop wxShop) { | public ResultData update(@RequestBody WxShop wxShop) { | ||||
| wxShopService.saveOrUpdate(wxShop); | wxShopService.saveOrUpdate(wxShop); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -56,6 +59,7 @@ public class WxShopController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxTags; | |||||
| import com.simple.service.WxTagsService; | import com.simple.service.WxTagsService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxTags") | @RequestMapping("wxTags") | ||||
| @@ -22,7 +23,8 @@ public class WxTagsController extends BaseController | |||||
| private WxTagsService wxTagsService; | private WxTagsService wxTagsService; | ||||
| private Logger logger = Logger.getLogger(WxTagsController.class); | private Logger logger = Logger.getLogger(WxTagsController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxTagsController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxTags wxTags) { | public ResultData add(@RequestBody WxTags wxTags) { | ||||
| //Assert.notNull(wxTags.getName(), "角色名不能为空"); | //Assert.notNull(wxTags.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxTagsController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxTags wxTags) { | public ResultData update(@RequestBody WxTags wxTags) { | ||||
| wxTagsService.saveOrUpdate(wxTags); | wxTagsService.saveOrUpdate(wxTags); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxTagsController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -13,6 +13,7 @@ import com.simple.domain.po.WxWebLog; | |||||
| import com.simple.service.WxWebLogService; | import com.simple.service.WxWebLogService; | ||||
| import io.swagger.annotations.ApiImplicitParam; | import io.swagger.annotations.ApiImplicitParam; | ||||
| import io.swagger.annotations.ApiImplicitParams; | import io.swagger.annotations.ApiImplicitParams; | ||||
| import io.swagger.annotations.ApiOperation; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxWebLog") | @RequestMapping("wxWebLog") | ||||
| @@ -22,7 +23,8 @@ public class WxWebLogController extends BaseController | |||||
| private WxWebLogService wxWebLogService; | private WxWebLogService wxWebLogService; | ||||
| private Logger logger = Logger.getLogger(WxWebLogController.class); | private Logger logger = Logger.getLogger(WxWebLogController.class); | ||||
| @ApiOperation("分页列表接口") | |||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | @ApiImplicitParam(name="pageNum",value="页数",dataType="int", paramType = "query",required=true), | ||||
| @@ -33,6 +35,7 @@ public class WxWebLogController extends BaseController | |||||
| return new ResultData(page); | return new ResultData(page); | ||||
| } | } | ||||
| @ApiOperation("新增接口") | |||||
| @PostMapping("add") | @PostMapping("add") | ||||
| public ResultData add(@RequestBody WxWebLog wxWebLog) { | public ResultData add(@RequestBody WxWebLog wxWebLog) { | ||||
| //Assert.notNull(wxWebLog.getName(), "角色名不能为空"); | //Assert.notNull(wxWebLog.getName(), "角色名不能为空"); | ||||
| @@ -41,12 +44,14 @@ public class WxWebLogController extends BaseController | |||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id更新接口") | |||||
| @PostMapping("update") | @PostMapping("update") | ||||
| public ResultData update(@RequestBody WxWebLog wxWebLog) { | public ResultData update(@RequestBody WxWebLog wxWebLog) { | ||||
| wxWebLogService.saveOrUpdate(wxWebLog); | wxWebLogService.saveOrUpdate(wxWebLog); | ||||
| return new ResultData(); | return new ResultData(); | ||||
| } | } | ||||
| @ApiOperation("根据id删除接口") | |||||
| @GetMapping("/del") | @GetMapping("/del") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData delete(Long id) { | public ResultData delete(Long id) { | ||||
| @@ -54,6 +59,7 @@ public class WxWebLogController extends BaseController | |||||
| return new ResultData(Result.SUCCESS, "删除成功", null); | return new ResultData(Result.SUCCESS, "删除成功", null); | ||||
| } | } | ||||
| @ApiOperation("根据id查询接口") | |||||
| @GetMapping("/findById") | @GetMapping("/findById") | ||||
| @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | @ApiImplicitParam(name="id",value="id",dataType="Long", paramType = "query",required=true) | ||||
| public ResultData findById(Long id) { | public ResultData findById(Long id) { | ||||
| @@ -19,6 +19,7 @@ spring: | |||||
| testOnReturn: false | testOnReturn: false | ||||
| poolPreparedStatements: true | poolPreparedStatements: true | ||||
| maxOpenPreparedStatements: 20 | maxOpenPreparedStatements: 20 | ||||
| connectionProperties: "druid.stat.mergeSql=true;druid.stat.slowSqlMillis=6000" | |||||
| jackson: | jackson: | ||||
| date-format: yyyy-MM-dd HH:mm:ss | date-format: yyyy-MM-dd HH:mm:ss | ||||
| @@ -19,6 +19,7 @@ spring: | |||||
| testOnReturn: false | testOnReturn: false | ||||
| poolPreparedStatements: true | poolPreparedStatements: true | ||||
| maxOpenPreparedStatements: 20 | maxOpenPreparedStatements: 20 | ||||
| connectionProperties: "druid.stat.mergeSql=true;druid.stat.slowSqlMillis=6000" | |||||
| # REDIS | # REDIS | ||||
| redis: | redis: | ||||
| host: 127.0.0.1 | host: 127.0.0.1 | ||||
| @@ -2,7 +2,7 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxAppinfoMapper"> | <mapper namespace="com.simple.mapper.WxAppinfoMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxAppinfo"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxAppinfo"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="appid" jdbcType="VARCHAR" property="appid" /> | <result column="appid" jdbcType="VARCHAR" property="appid" /> | ||||
| <result column="secret" jdbcType="VARCHAR" property="secret" /> | <result column="secret" jdbcType="VARCHAR" property="secret" /> | ||||
| @@ -20,16 +20,56 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != appid "> and `appid` = #{appid} </if> | |||||
| <if test=" null != secret "> and `secret` = #{secret} </if> | |||||
| <if test=" null != name "> and `name` = #{name} </if> | |||||
| <if test=" null != token "> and `token` = #{token} </if> | |||||
| <if test=" null != aeskey "> and `aeskey` = #{aeskey} </if> | |||||
| <if test=" null != accessToken "> and `access_token` = #{accessToken} </if> | |||||
| <if test=" null != lastTokenTime "> and `last_token_time` = #{lastTokenTime} </if> | |||||
| <if test=" null != expiresIn "> and `expires_in` = #{expiresIn} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != appid "> | |||||
| and `appid` like concat('%', #{appid},'%') | |||||
| </if> | |||||
| <if test=" null != secret "> | |||||
| and `secret` like concat('%', #{secret},'%') | |||||
| </if> | |||||
| <if test=" null != name "> | |||||
| and `name` like concat('%', #{name},'%') | |||||
| </if> | |||||
| <if test=" null != token "> | |||||
| and `token` like concat('%', #{token},'%') | |||||
| </if> | |||||
| <if test=" null != aeskey "> | |||||
| and `aeskey` like concat('%', #{aeskey},'%') | |||||
| </if> | |||||
| <if test=" null != accessToken "> | |||||
| and `access_token` like concat('%', #{accessToken},'%') | |||||
| </if> | |||||
| <if test=" null != lastTokenTime "> | |||||
| and `last_token_time` = #{lastTokenTime} | |||||
| </if> | |||||
| <if test=" null != expiresIn "> | |||||
| and `expires_in` = #{expiresIn} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxBLogMapper"> | <mapper namespace="com.simple.mapper.WxBLogMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxBLog"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxBLog"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="data" jdbcType="VARCHAR" property="data" /> | <result column="data" jdbcType="VARCHAR" property="data" /> | ||||
| <result column="create_date" jdbcType="TIMESTAMP" property="createDate" /> | <result column="create_date" jdbcType="TIMESTAMP" property="createDate" /> | ||||
| @@ -14,10 +14,26 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != data "> and `data` = #{data} </if> | |||||
| <if test=" null != createDate "> and `create_date` = #{createDate} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != data "> | |||||
| and `data` like concat('%', #{data},'%') | |||||
| </if> | |||||
| <if test=" null != createDate "> | |||||
| and `create_date` = #{createDate} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,10 +2,10 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxBUserMerchantMapper"> | <mapper namespace="com.simple.mapper.WxBUserMerchantMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxBUserMerchant"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxBUserMerchant"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="b_user_id" jdbcType="INTEGER" property="bUserId" /> | |||||
| <result column="merchant_id" jdbcType="INTEGER" property="merchantId" /> | |||||
| <result column="b_user_id" jdbcType="BIGINT" property="bUserId" /> | |||||
| <result column="merchant_id" jdbcType="BIGINT" property="merchantId" /> | |||||
| </resultMap> | </resultMap> | ||||
| <sql id="allColumns"> | <sql id="allColumns"> | ||||
| @@ -14,10 +14,26 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != bUserId "> and `b_user_id` = #{bUserId} </if> | |||||
| <if test=" null != merchantId "> and `merchant_id` = #{merchantId} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != bUserId "> | |||||
| and `b_user_id` = #{bUserId} | |||||
| </if> | |||||
| <if test=" null != merchantId "> | |||||
| and `merchant_id` = #{merchantId} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxBannersMapper"> | <mapper namespace="com.simple.mapper.WxBannersMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxBanners"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxBanners"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="face_pic_url" jdbcType="VARCHAR" property="facePicUrl" /> | <result column="face_pic_url" jdbcType="VARCHAR" property="facePicUrl" /> | ||||
| <result column="activity_type" jdbcType="INTEGER" property="activityType" /> | <result column="activity_type" jdbcType="INTEGER" property="activityType" /> | ||||
| @@ -20,16 +20,56 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != facePicUrl "> and `face_pic_url` = #{facePicUrl} </if> | |||||
| <if test=" null != activityType "> and `activity_type` = #{activityType} </if> | |||||
| <if test=" null != url "> and `url` = #{url} </if> | |||||
| <if test=" null != sortNum "> and `sort_num` = #{sortNum} </if> | |||||
| <if test=" null != createtime "> and `createtime` = #{createtime} </if> | |||||
| <if test=" null != uptime "> and `uptime` = #{uptime} </if> | |||||
| <if test=" null != desc "> and `desc` = #{desc} </if> | |||||
| <if test=" null != isEnable "> and `is_enable` = #{isEnable} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != facePicUrl "> | |||||
| and `face_pic_url` like concat('%', #{facePicUrl},'%') | |||||
| </if> | |||||
| <if test=" null != activityType "> | |||||
| and `activity_type` = #{activityType} | |||||
| </if> | |||||
| <if test=" null != url "> | |||||
| and `url` like concat('%', #{url},'%') | |||||
| </if> | |||||
| <if test=" null != sortNum "> | |||||
| and `sort_num` = #{sortNum} | |||||
| </if> | |||||
| <if test=" null != createtime "> | |||||
| and `createtime` = #{createtime} | |||||
| </if> | |||||
| <if test=" null != uptime "> | |||||
| and `uptime` = #{uptime} | |||||
| </if> | |||||
| <if test=" null != desc "> | |||||
| and `desc` like concat('%', #{desc},'%') | |||||
| </if> | |||||
| <if test=" null != isEnable "> | |||||
| and `is_enable` = #{isEnable} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxBusinessMapper"> | <mapper namespace="com.simple.mapper.WxBusinessMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxBusiness"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxBusiness"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="title" jdbcType="VARCHAR" property="title" /> | <result column="title" jdbcType="VARCHAR" property="title" /> | ||||
| </resultMap> | </resultMap> | ||||
| @@ -13,9 +13,21 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != title "> and `title` = #{title} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != title "> | |||||
| and `title` like concat('%', #{title},'%') | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxCLogMapper"> | <mapper namespace="com.simple.mapper.WxCLogMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCLog"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCLog"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="data" jdbcType="VARCHAR" property="data" /> | <result column="data" jdbcType="VARCHAR" property="data" /> | ||||
| <result column="create_date" jdbcType="TIMESTAMP" property="createDate" /> | <result column="create_date" jdbcType="TIMESTAMP" property="createDate" /> | ||||
| @@ -14,10 +14,26 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != data "> and `data` = #{data} </if> | |||||
| <if test=" null != createDate "> and `create_date` = #{createDate} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != data "> | |||||
| and `data` like concat('%', #{data},'%') | |||||
| </if> | |||||
| <if test=" null != createDate "> | |||||
| and `create_date` = #{createDate} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,9 +2,9 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxCUserCarsMapper"> | <mapper namespace="com.simple.mapper.WxCUserCarsMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCUserCars"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCUserCars"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="c_user_id" jdbcType="INTEGER" property="cUserId" /> | |||||
| <result column="c_user_id" jdbcType="BIGINT" property="cUserId" /> | |||||
| <result column="car_number" jdbcType="VARCHAR" property="carNumber" /> | <result column="car_number" jdbcType="VARCHAR" property="carNumber" /> | ||||
| </resultMap> | </resultMap> | ||||
| @@ -14,10 +14,26 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != cUserId "> and `c_user_id` = #{cUserId} </if> | |||||
| <if test=" null != carNumber "> and `car_number` = #{carNumber} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != cUserId "> | |||||
| and `c_user_id` = #{cUserId} | |||||
| </if> | |||||
| <if test=" null != carNumber "> | |||||
| and `car_number` like concat('%', #{carNumber},'%') | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,9 +2,9 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxCUserCloudMapper"> | <mapper namespace="com.simple.mapper.WxCUserCloudMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCUserCloud"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCUserCloud"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="c_user_id" jdbcType="INTEGER" property="cUserId" /> | |||||
| <result column="c_user_id" jdbcType="BIGINT" property="cUserId" /> | |||||
| <result column="cloud_data" jdbcType="VARCHAR" property="cloudData" /> | <result column="cloud_data" jdbcType="VARCHAR" property="cloudData" /> | ||||
| </resultMap> | </resultMap> | ||||
| @@ -14,10 +14,26 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != cUserId "> and `c_user_id` = #{cUserId} </if> | |||||
| <if test=" null != cloudData "> and `cloud_data` = #{cloudData} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != cUserId "> | |||||
| and `c_user_id` = #{cUserId} | |||||
| </if> | |||||
| <if test=" null != cloudData "> | |||||
| and `cloud_data` like concat('%', #{cloudData},'%') | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,9 +2,9 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxCUserEtcpTokenMapper"> | <mapper namespace="com.simple.mapper.WxCUserEtcpTokenMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCUserEtcpToken"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCUserEtcpToken"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="c_user_id" jdbcType="INTEGER" property="cUserId" /> | |||||
| <result column="c_user_id" jdbcType="BIGINT" property="cUserId" /> | |||||
| <result column="etcp_token" jdbcType="VARCHAR" property="etcpToken" /> | <result column="etcp_token" jdbcType="VARCHAR" property="etcpToken" /> | ||||
| <result column="etcp_create_time" jdbcType="TIMESTAMP" property="etcpCreateTime" /> | <result column="etcp_create_time" jdbcType="TIMESTAMP" property="etcpCreateTime" /> | ||||
| <result column="etcp_update_time" jdbcType="TIMESTAMP" property="etcpUpdateTime" /> | <result column="etcp_update_time" jdbcType="TIMESTAMP" property="etcpUpdateTime" /> | ||||
| @@ -16,12 +16,36 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != cUserId "> and `c_user_id` = #{cUserId} </if> | |||||
| <if test=" null != etcpToken "> and `etcp_token` = #{etcpToken} </if> | |||||
| <if test=" null != etcpCreateTime "> and `etcp_create_time` = #{etcpCreateTime} </if> | |||||
| <if test=" null != etcpUpdateTime "> and `etcp_update_time` = #{etcpUpdateTime} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != cUserId "> | |||||
| and `c_user_id` = #{cUserId} | |||||
| </if> | |||||
| <if test=" null != etcpToken "> | |||||
| and `etcp_token` like concat('%', #{etcpToken},'%') | |||||
| </if> | |||||
| <if test=" null != etcpCreateTime "> | |||||
| and `etcp_create_time` = #{etcpCreateTime} | |||||
| </if> | |||||
| <if test=" null != etcpUpdateTime "> | |||||
| and `etcp_update_time` = #{etcpUpdateTime} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxCUserMapper"> | <mapper namespace="com.simple.mapper.WxCUserMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCUser"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCUser"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="open_id" jdbcType="VARCHAR" property="openId" /> | <result column="open_id" jdbcType="VARCHAR" property="openId" /> | ||||
| <result column="union_id" jdbcType="VARCHAR" property="unionId" /> | <result column="union_id" jdbcType="VARCHAR" property="unionId" /> | ||||
| @@ -31,27 +31,111 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != openId "> and `open_id` = #{openId} </if> | |||||
| <if test=" null != unionId "> and `union_id` = #{unionId} </if> | |||||
| <if test=" null != nickName "> and `nick_name` = #{nickName} </if> | |||||
| <if test=" null != gender "> and `gender` = #{gender} </if> | |||||
| <if test=" null != avatarUrl "> and `avatar_url` = #{avatarUrl} </if> | |||||
| <if test=" null != phone "> and `phone` = #{phone} </if> | |||||
| <if test=" null != purePhone "> and `pure_phone` = #{purePhone} </if> | |||||
| <if test=" null != city "> and `city` = #{city} </if> | |||||
| <if test=" null != province "> and `province` = #{province} </if> | |||||
| <if test=" null != language "> and `language` = #{language} </if> | |||||
| <if test=" null != countryCode "> and `country_code` = #{countryCode} </if> | |||||
| <if test=" null != qrcodeSource "> and `qrcode_source` = #{qrcodeSource} </if> | |||||
| <if test=" null != registerIp "> and `register_ip` = #{registerIp} </if> | |||||
| <if test=" null != scene "> and `scene` = #{scene} </if> | |||||
| <if test=" null != sceneAddress "> and `scene_address` = #{sceneAddress} </if> | |||||
| <if test=" null != sessionKey "> and `session_key` = #{sessionKey} </if> | |||||
| <if test=" null != updateDate "> and `update_date` = #{updateDate} </if> | |||||
| <if test=" null != createDate "> and `create_date` = #{createDate} </if> | |||||
| <if test=" null != score "> and `score` = #{score} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != openId "> | |||||
| and `open_id` like concat('%', #{openId},'%') | |||||
| </if> | |||||
| <if test=" null != unionId "> | |||||
| and `union_id` like concat('%', #{unionId},'%') | |||||
| </if> | |||||
| <if test=" null != nickName "> | |||||
| and `nick_name` like concat('%', #{nickName},'%') | |||||
| </if> | |||||
| <if test=" null != gender "> | |||||
| and `gender` = #{gender} | |||||
| </if> | |||||
| <if test=" null != avatarUrl "> | |||||
| and `avatar_url` like concat('%', #{avatarUrl},'%') | |||||
| </if> | |||||
| <if test=" null != phone "> | |||||
| and `phone` like concat('%', #{phone},'%') | |||||
| </if> | |||||
| <if test=" null != purePhone "> | |||||
| and `pure_phone` like concat('%', #{purePhone},'%') | |||||
| </if> | |||||
| <if test=" null != city "> | |||||
| and `city` like concat('%', #{city},'%') | |||||
| </if> | |||||
| <if test=" null != province "> | |||||
| and `province` like concat('%', #{province},'%') | |||||
| </if> | |||||
| <if test=" null != language "> | |||||
| and `language` like concat('%', #{language},'%') | |||||
| </if> | |||||
| <if test=" null != countryCode "> | |||||
| and `country_code` like concat('%', #{countryCode},'%') | |||||
| </if> | |||||
| <if test=" null != qrcodeSource "> | |||||
| and `qrcode_source` like concat('%', #{qrcodeSource},'%') | |||||
| </if> | |||||
| <if test=" null != registerIp "> | |||||
| and `register_ip` like concat('%', #{registerIp},'%') | |||||
| </if> | |||||
| <if test=" null != scene "> | |||||
| and `scene` like concat('%', #{scene},'%') | |||||
| </if> | |||||
| <if test=" null != sceneAddress "> | |||||
| and `scene_address` like concat('%', #{sceneAddress},'%') | |||||
| </if> | |||||
| <if test=" null != sessionKey "> | |||||
| and `session_key` like concat('%', #{sessionKey},'%') | |||||
| </if> | |||||
| <if test=" null != updateDate "> | |||||
| and `update_date` = #{updateDate} | |||||
| </if> | |||||
| <if test=" null != createDate "> | |||||
| and `create_date` = #{createDate} | |||||
| </if> | |||||
| <if test=" null != score "> | |||||
| and `score` = #{score} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,9 +2,9 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxCUserTagsMapper"> | <mapper namespace="com.simple.mapper.WxCUserTagsMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCUserTags"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCUserTags"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="user_id" jdbcType="INTEGER" property="userId" /> | |||||
| <result column="user_id" jdbcType="BIGINT" property="userId" /> | |||||
| <result column="tags" jdbcType="VARCHAR" property="tags" /> | <result column="tags" jdbcType="VARCHAR" property="tags" /> | ||||
| </resultMap> | </resultMap> | ||||
| @@ -14,10 +14,26 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != userId "> and `user_id` = #{userId} </if> | |||||
| <if test=" null != tags "> and `tags` = #{tags} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != userId "> | |||||
| and `user_id` = #{userId} | |||||
| </if> | |||||
| <if test=" null != tags "> | |||||
| and `tags` like concat('%', #{tags},'%') | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,10 +2,10 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxCouponActionLogMapper"> | <mapper namespace="com.simple.mapper.WxCouponActionLogMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCouponActionLog"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCouponActionLog"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="coupon_id" jdbcType="INTEGER" property="couponId" /> | |||||
| <result column="user_id" jdbcType="INTEGER" property="userId" /> | |||||
| <result column="coupon_id" jdbcType="BIGINT" property="couponId" /> | |||||
| <result column="user_id" jdbcType="BIGINT" property="userId" /> | |||||
| <result column="action" jdbcType="VARCHAR" property="action" /> | <result column="action" jdbcType="VARCHAR" property="action" /> | ||||
| <result column="operation_time" jdbcType="TIMESTAMP" property="operationTime" /> | <result column="operation_time" jdbcType="TIMESTAMP" property="operationTime" /> | ||||
| </resultMap> | </resultMap> | ||||
| @@ -16,12 +16,36 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != couponId "> and `coupon_id` = #{couponId} </if> | |||||
| <if test=" null != userId "> and `user_id` = #{userId} </if> | |||||
| <if test=" null != action "> and `action` = #{action} </if> | |||||
| <if test=" null != operationTime "> and `operation_time` = #{operationTime} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != couponId "> | |||||
| and `coupon_id` = #{couponId} | |||||
| </if> | |||||
| <if test=" null != userId "> | |||||
| and `user_id` = #{userId} | |||||
| </if> | |||||
| <if test=" null != action "> | |||||
| and `action` like concat('%', #{action},'%') | |||||
| </if> | |||||
| <if test=" null != operationTime "> | |||||
| and `operation_time` = #{operationTime} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,9 +2,9 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxCouponActivityMapper"> | <mapper namespace="com.simple.mapper.WxCouponActivityMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCouponActivity"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCouponActivity"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="merchant_id" jdbcType="INTEGER" property="merchantId" /> | |||||
| <result column="merchant_id" jdbcType="BIGINT" property="merchantId" /> | |||||
| <result column="type" jdbcType="INTEGER" property="type" /> | <result column="type" jdbcType="INTEGER" property="type" /> | ||||
| <result column="cover_img" jdbcType="VARCHAR" property="coverImg" /> | <result column="cover_img" jdbcType="VARCHAR" property="coverImg" /> | ||||
| <result column="title" jdbcType="VARCHAR" property="title" /> | <result column="title" jdbcType="VARCHAR" property="title" /> | ||||
| @@ -33,29 +33,121 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != merchantId "> and `merchant_id` = #{merchantId} </if> | |||||
| <if test=" null != type "> and `type` = #{type} </if> | |||||
| <if test=" null != coverImg "> and `cover_img` = #{coverImg} </if> | |||||
| <if test=" null != title "> and `title` = #{title} </if> | |||||
| <if test=" null != subTitle "> and `sub_title` = #{subTitle} </if> | |||||
| <if test=" null != salePrice "> and `sale_price` = #{salePrice} </if> | |||||
| <if test=" null != usePrice "> and `use_price` = #{usePrice} </if> | |||||
| <if test=" null != useLimitQuantity "> and `use_limit_quantity` = #{useLimitQuantity} </if> | |||||
| <if test=" null != sendStartDate "> and `send_start_date` = #{sendStartDate} </if> | |||||
| <if test=" null != sendEndDate "> and `send_end_date` = #{sendEndDate} </if> | |||||
| <if test=" null != validStartDate "> and `valid_start_date` = #{validStartDate} </if> | |||||
| <if test=" null != validEndDate "> and `valid_end_date` = #{validEndDate} </if> | |||||
| <if test=" null != validDays "> and `valid_days` = #{validDays} </if> | |||||
| <if test=" null != detail "> and `detail` = #{detail} </if> | |||||
| <if test=" null != sendType "> and `send_type` = #{sendType} </if> | |||||
| <if test=" null != targetAd "> and `target_ad` = #{targetAd} </if> | |||||
| <if test=" null != businesses "> and `businesses` = #{businesses} </if> | |||||
| <if test=" null != price "> and `price` = #{price} </if> | |||||
| <if test=" null != number "> and `number` = #{number} </if> | |||||
| <if test=" null != total "> and `total` = #{total} </if> | |||||
| <if test=" null != status "> and `status` = #{status} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != merchantId "> | |||||
| and `merchant_id` = #{merchantId} | |||||
| </if> | |||||
| <if test=" null != type "> | |||||
| and `type` = #{type} | |||||
| </if> | |||||
| <if test=" null != coverImg "> | |||||
| and `cover_img` like concat('%', #{coverImg},'%') | |||||
| </if> | |||||
| <if test=" null != title "> | |||||
| and `title` like concat('%', #{title},'%') | |||||
| </if> | |||||
| <if test=" null != subTitle "> | |||||
| and `sub_title` like concat('%', #{subTitle},'%') | |||||
| </if> | |||||
| <if test=" null != salePrice "> | |||||
| and `sale_price` = #{salePrice} | |||||
| </if> | |||||
| <if test=" null != usePrice "> | |||||
| and `use_price` = #{usePrice} | |||||
| </if> | |||||
| <if test=" null != useLimitQuantity "> | |||||
| and `use_limit_quantity` = #{useLimitQuantity} | |||||
| </if> | |||||
| <if test=" null != sendStartDate "> | |||||
| and `send_start_date` = #{sendStartDate} | |||||
| </if> | |||||
| <if test=" null != sendEndDate "> | |||||
| and `send_end_date` = #{sendEndDate} | |||||
| </if> | |||||
| <if test=" null != validStartDate "> | |||||
| and `valid_start_date` = #{validStartDate} | |||||
| </if> | |||||
| <if test=" null != validEndDate "> | |||||
| and `valid_end_date` = #{validEndDate} | |||||
| </if> | |||||
| <if test=" null != validDays "> | |||||
| and `valid_days` = #{validDays} | |||||
| </if> | |||||
| <if test=" null != detail "> | |||||
| and `detail` like concat('%', #{detail},'%') | |||||
| </if> | |||||
| <if test=" null != sendType "> | |||||
| and `send_type` = #{sendType} | |||||
| </if> | |||||
| <if test=" null != targetAd "> | |||||
| and `target_ad` = #{targetAd} | |||||
| </if> | |||||
| <if test=" null != businesses "> | |||||
| and `businesses` like concat('%', #{businesses},'%') | |||||
| </if> | |||||
| <if test=" null != price "> | |||||
| and `price` = #{price} | |||||
| </if> | |||||
| <if test=" null != number "> | |||||
| and `number` = #{number} | |||||
| </if> | |||||
| <if test=" null != total "> | |||||
| and `total` = #{total} | |||||
| </if> | |||||
| <if test=" null != status "> | |||||
| and `status` = #{status} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,10 +2,10 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxCouponMapper"> | <mapper namespace="com.simple.mapper.WxCouponMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCoupon"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCoupon"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="activity_id" jdbcType="INTEGER" property="activityId" /> | |||||
| <result column="merchant_id" jdbcType="INTEGER" property="merchantId" /> | |||||
| <result column="activity_id" jdbcType="BIGINT" property="activityId" /> | |||||
| <result column="merchant_id" jdbcType="BIGINT" property="merchantId" /> | |||||
| <result column="type" jdbcType="INTEGER" property="type" /> | <result column="type" jdbcType="INTEGER" property="type" /> | ||||
| <result column="cover_img" jdbcType="VARCHAR" property="coverImg" /> | <result column="cover_img" jdbcType="VARCHAR" property="coverImg" /> | ||||
| <result column="title" jdbcType="VARCHAR" property="title" /> | <result column="title" jdbcType="VARCHAR" property="title" /> | ||||
| @@ -26,22 +26,86 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != activityId "> and `activity_id` = #{activityId} </if> | |||||
| <if test=" null != merchantId "> and `merchant_id` = #{merchantId} </if> | |||||
| <if test=" null != type "> and `type` = #{type} </if> | |||||
| <if test=" null != coverImg "> and `cover_img` = #{coverImg} </if> | |||||
| <if test=" null != title "> and `title` = #{title} </if> | |||||
| <if test=" null != subTitle "> and `sub_title` = #{subTitle} </if> | |||||
| <if test=" null != detail "> and `detail` = #{detail} </if> | |||||
| <if test=" null != price "> and `price` = #{price} </if> | |||||
| <if test=" null != salePrice "> and `sale_price` = #{salePrice} </if> | |||||
| <if test=" null != usePrice "> and `use_price` = #{usePrice} </if> | |||||
| <if test=" null != business "> and `business` = #{business} </if> | |||||
| <if test=" null != status "> and `status` = #{status} </if> | |||||
| <if test=" null != createDate "> and `create_date` = #{createDate} </if> | |||||
| <if test=" null != updateDate "> and `update_date` = #{updateDate} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != activityId "> | |||||
| and `activity_id` = #{activityId} | |||||
| </if> | |||||
| <if test=" null != merchantId "> | |||||
| and `merchant_id` = #{merchantId} | |||||
| </if> | |||||
| <if test=" null != type "> | |||||
| and `type` = #{type} | |||||
| </if> | |||||
| <if test=" null != coverImg "> | |||||
| and `cover_img` like concat('%', #{coverImg},'%') | |||||
| </if> | |||||
| <if test=" null != title "> | |||||
| and `title` like concat('%', #{title},'%') | |||||
| </if> | |||||
| <if test=" null != subTitle "> | |||||
| and `sub_title` like concat('%', #{subTitle},'%') | |||||
| </if> | |||||
| <if test=" null != detail "> | |||||
| and `detail` like concat('%', #{detail},'%') | |||||
| </if> | |||||
| <if test=" null != price "> | |||||
| and `price` = #{price} | |||||
| </if> | |||||
| <if test=" null != salePrice "> | |||||
| and `sale_price` = #{salePrice} | |||||
| </if> | |||||
| <if test=" null != usePrice "> | |||||
| and `use_price` = #{usePrice} | |||||
| </if> | |||||
| <if test=" null != business "> | |||||
| and `business` like concat('%', #{business},'%') | |||||
| </if> | |||||
| <if test=" null != status "> | |||||
| and `status` = #{status} | |||||
| </if> | |||||
| <if test=" null != createDate "> | |||||
| and `create_date` = #{createDate} | |||||
| </if> | |||||
| <if test=" null != updateDate "> | |||||
| and `update_date` = #{updateDate} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,15 +2,15 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxCouponRecordMapper"> | <mapper namespace="com.simple.mapper.WxCouponRecordMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCouponRecord"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCouponRecord"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="coupon_id" jdbcType="INTEGER" property="couponId" /> | |||||
| <result column="order_id" jdbcType="INTEGER" property="orderId" /> | |||||
| <result column="c_user_id" jdbcType="INTEGER" property="cUserId" /> | |||||
| <result column="coupon_id" jdbcType="BIGINT" property="couponId" /> | |||||
| <result column="order_id" jdbcType="BIGINT" property="orderId" /> | |||||
| <result column="c_user_id" jdbcType="BIGINT" property="cUserId" /> | |||||
| <result column="buy_date" jdbcType="TIMESTAMP" property="buyDate" /> | <result column="buy_date" jdbcType="TIMESTAMP" property="buyDate" /> | ||||
| <result column="limit_date" jdbcType="TIMESTAMP" property="limitDate" /> | <result column="limit_date" jdbcType="TIMESTAMP" property="limitDate" /> | ||||
| <result column="c_status" jdbcType="INTEGER" property="cStatus" /> | <result column="c_status" jdbcType="INTEGER" property="cStatus" /> | ||||
| <result column="b_user_id" jdbcType="INTEGER" property="bUserId" /> | |||||
| <result column="b_user_id" jdbcType="BIGINT" property="bUserId" /> | |||||
| <result column="verification_date" jdbcType="TIMESTAMP" property="verificationDate" /> | <result column="verification_date" jdbcType="TIMESTAMP" property="verificationDate" /> | ||||
| <result column="verification_status" jdbcType="INTEGER" property="verificationStatus" /> | <result column="verification_status" jdbcType="INTEGER" property="verificationStatus" /> | ||||
| </resultMap> | </resultMap> | ||||
| @@ -21,17 +21,61 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != couponId "> and `coupon_id` = #{couponId} </if> | |||||
| <if test=" null != orderId "> and `order_id` = #{orderId} </if> | |||||
| <if test=" null != cUserId "> and `c_user_id` = #{cUserId} </if> | |||||
| <if test=" null != buyDate "> and `buy_date` = #{buyDate} </if> | |||||
| <if test=" null != limitDate "> and `limit_date` = #{limitDate} </if> | |||||
| <if test=" null != cStatus "> and `c_status` = #{cStatus} </if> | |||||
| <if test=" null != bUserId "> and `b_user_id` = #{bUserId} </if> | |||||
| <if test=" null != verificationDate "> and `verification_date` = #{verificationDate} </if> | |||||
| <if test=" null != verificationStatus "> and `verification_status` = #{verificationStatus} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != couponId "> | |||||
| and `coupon_id` = #{couponId} | |||||
| </if> | |||||
| <if test=" null != orderId "> | |||||
| and `order_id` = #{orderId} | |||||
| </if> | |||||
| <if test=" null != cUserId "> | |||||
| and `c_user_id` = #{cUserId} | |||||
| </if> | |||||
| <if test=" null != buyDate "> | |||||
| and `buy_date` = #{buyDate} | |||||
| </if> | |||||
| <if test=" null != limitDate "> | |||||
| and `limit_date` = #{limitDate} | |||||
| </if> | |||||
| <if test=" null != cStatus "> | |||||
| and `c_status` = #{cStatus} | |||||
| </if> | |||||
| <if test=" null != bUserId "> | |||||
| and `b_user_id` = #{bUserId} | |||||
| </if> | |||||
| <if test=" null != verificationDate "> | |||||
| and `verification_date` = #{verificationDate} | |||||
| </if> | |||||
| <if test=" null != verificationStatus "> | |||||
| and `verification_status` = #{verificationStatus} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxCouponTypeMapper"> | <mapper namespace="com.simple.mapper.WxCouponTypeMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCouponType"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCouponType"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="title" jdbcType="VARCHAR" property="title" /> | <result column="title" jdbcType="VARCHAR" property="title" /> | ||||
| </resultMap> | </resultMap> | ||||
| @@ -12,8 +12,16 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != title "> and `title` = #{title} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != title "> | |||||
| and `title` like concat('%', #{title},'%') | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,9 +2,9 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxEtcpCouponRecordMapper"> | <mapper namespace="com.simple.mapper.WxEtcpCouponRecordMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxEtcpCouponRecord"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxEtcpCouponRecord"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="coupon_id" jdbcType="INTEGER" property="couponId" /> | |||||
| <result column="coupon_id" jdbcType="BIGINT" property="couponId" /> | |||||
| <result column="car_number" jdbcType="VARCHAR" property="carNumber" /> | <result column="car_number" jdbcType="VARCHAR" property="carNumber" /> | ||||
| <result column="park_id" jdbcType="VARCHAR" property="parkId" /> | <result column="park_id" jdbcType="VARCHAR" property="parkId" /> | ||||
| <result column="business_id" jdbcType="VARCHAR" property="businessId" /> | <result column="business_id" jdbcType="VARCHAR" property="businessId" /> | ||||
| @@ -21,17 +21,61 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != couponId "> and `coupon_id` = #{couponId} </if> | |||||
| <if test=" null != carNumber "> and `car_number` = #{carNumber} </if> | |||||
| <if test=" null != parkId "> and `park_id` = #{parkId} </if> | |||||
| <if test=" null != businessId "> and `business_id` = #{businessId} </if> | |||||
| <if test=" null != couponFreeId "> and `coupon_free_id` = #{couponFreeId} </if> | |||||
| <if test=" null != code "> and `code` = #{code} </if> | |||||
| <if test=" null != message "> and `message` = #{message} </if> | |||||
| <if test=" null != createDate "> and `create_date` = #{createDate} </if> | |||||
| <if test=" null != updateDate "> and `update_date` = #{updateDate} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != couponId "> | |||||
| and `coupon_id` = #{couponId} | |||||
| </if> | |||||
| <if test=" null != carNumber "> | |||||
| and `car_number` like concat('%', #{carNumber},'%') | |||||
| </if> | |||||
| <if test=" null != parkId "> | |||||
| and `park_id` like concat('%', #{parkId},'%') | |||||
| </if> | |||||
| <if test=" null != businessId "> | |||||
| and `business_id` like concat('%', #{businessId},'%') | |||||
| </if> | |||||
| <if test=" null != couponFreeId "> | |||||
| and `coupon_free_id` = #{couponFreeId} | |||||
| </if> | |||||
| <if test=" null != code "> | |||||
| and `code` = #{code} | |||||
| </if> | |||||
| <if test=" null != message "> | |||||
| and `message` like concat('%', #{message},'%') | |||||
| </if> | |||||
| <if test=" null != createDate "> | |||||
| and `create_date` = #{createDate} | |||||
| </if> | |||||
| <if test=" null != updateDate "> | |||||
| and `update_date` = #{updateDate} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxEtcpParkDissolutionMapper"> | <mapper namespace="com.simple.mapper.WxEtcpParkDissolutionMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxEtcpParkDissolution"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxEtcpParkDissolution"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="sign_no" jdbcType="VARCHAR" property="signNo" /> | <result column="sign_no" jdbcType="VARCHAR" property="signNo" /> | ||||
| </resultMap> | </resultMap> | ||||
| @@ -13,9 +13,21 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != signNo "> and `sign_no` = #{signNo} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != signNo "> | |||||
| and `sign_no` like concat('%', #{signNo},'%') | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxEtcpParkInMapper"> | <mapper namespace="com.simple.mapper.WxEtcpParkInMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxEtcpParkIn"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxEtcpParkIn"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="syn_id" jdbcType="VARCHAR" property="synId" /> | <result column="syn_id" jdbcType="VARCHAR" property="synId" /> | ||||
| <result column="plate_number" jdbcType="VARCHAR" property="plateNumber" /> | <result column="plate_number" jdbcType="VARCHAR" property="plateNumber" /> | ||||
| @@ -15,11 +15,31 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != synId "> and `syn_id` = #{synId} </if> | |||||
| <if test=" null != plateNumber "> and `plate_number` = #{plateNumber} </if> | |||||
| <if test=" null != parkName "> and `park_name` = #{parkName} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != synId "> | |||||
| and `syn_id` like concat('%', #{synId},'%') | |||||
| </if> | |||||
| <if test=" null != plateNumber "> | |||||
| and `plate_number` like concat('%', #{plateNumber},'%') | |||||
| </if> | |||||
| <if test=" null != parkName "> | |||||
| and `park_name` like concat('%', #{parkName},'%') | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxEtcpParkMsgSucMapper"> | <mapper namespace="com.simple.mapper.WxEtcpParkMsgSucMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxEtcpParkMsgSuc"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxEtcpParkMsgSuc"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="sign_no" jdbcType="VARCHAR" property="signNo" /> | <result column="sign_no" jdbcType="VARCHAR" property="signNo" /> | ||||
| </resultMap> | </resultMap> | ||||
| @@ -13,9 +13,21 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != signNo "> and `sign_no` = #{signNo} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != signNo "> | |||||
| and `sign_no` like concat('%', #{signNo},'%') | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxEtcpParkOrderunpayMapper"> | <mapper namespace="com.simple.mapper.WxEtcpParkOrderunpayMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxEtcpParkOrderunpay"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxEtcpParkOrderunpay"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="plate_number" jdbcType="VARCHAR" property="plateNumber" /> | <result column="plate_number" jdbcType="VARCHAR" property="plateNumber" /> | ||||
| <result column="code" jdbcType="INTEGER" property="code" /> | <result column="code" jdbcType="INTEGER" property="code" /> | ||||
| @@ -30,26 +30,106 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != plateNumber "> and `plate_number` = #{plateNumber} </if> | |||||
| <if test=" null != code "> and `code` = #{code} </if> | |||||
| <if test=" null != message "> and `message` = #{message} </if> | |||||
| <if test=" null != data "> and `data` = #{data} </if> | |||||
| <if test=" null != entranceTime "> and `entrance_time` = #{entranceTime} </if> | |||||
| <if test=" null != parkingFee "> and `parking_fee` = #{parkingFee} </if> | |||||
| <if test=" null != remainingFee "> and `remaining_fee` = #{remainingFee} </if> | |||||
| <if test=" null != paidFee "> and `paid_fee` = #{paidFee} </if> | |||||
| <if test=" null != parkingId "> and `parking_id` = #{parkingId} </if> | |||||
| <if test=" null != discountAmount "> and `discount_amount` = #{discountAmount} </if> | |||||
| <if test=" null != orderId "> and `order_id` = #{orderId} </if> | |||||
| <if test=" null != carNumber "> and `car_number` = #{carNumber} </if> | |||||
| <if test=" null != verificationInfo "> and `verification_info` = #{verificationInfo} </if> | |||||
| <if test=" null != synId "> and `syn_id` = #{synId} </if> | |||||
| <if test=" null != discountNo "> and `discount_no` = #{discountNo} </if> | |||||
| <if test=" null != status "> and `status` = #{status} </if> | |||||
| <if test=" null != createDate "> and `create_date` = #{createDate} </if> | |||||
| <if test=" null != updateDate "> and `update_date` = #{updateDate} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != plateNumber "> | |||||
| and `plate_number` like concat('%', #{plateNumber},'%') | |||||
| </if> | |||||
| <if test=" null != code "> | |||||
| and `code` = #{code} | |||||
| </if> | |||||
| <if test=" null != message "> | |||||
| and `message` like concat('%', #{message},'%') | |||||
| </if> | |||||
| <if test=" null != data "> | |||||
| and `data` like concat('%', #{data},'%') | |||||
| </if> | |||||
| <if test=" null != entranceTime "> | |||||
| and `entrance_time` like concat('%', #{entranceTime},'%') | |||||
| </if> | |||||
| <if test=" null != parkingFee "> | |||||
| and `parking_fee` = #{parkingFee} | |||||
| </if> | |||||
| <if test=" null != remainingFee "> | |||||
| and `remaining_fee` = #{remainingFee} | |||||
| </if> | |||||
| <if test=" null != paidFee "> | |||||
| and `paid_fee` = #{paidFee} | |||||
| </if> | |||||
| <if test=" null != parkingId "> | |||||
| and `parking_id` like concat('%', #{parkingId},'%') | |||||
| </if> | |||||
| <if test=" null != discountAmount "> | |||||
| and `discount_amount` = #{discountAmount} | |||||
| </if> | |||||
| <if test=" null != orderId "> | |||||
| and `order_id` like concat('%', #{orderId},'%') | |||||
| </if> | |||||
| <if test=" null != carNumber "> | |||||
| and `car_number` like concat('%', #{carNumber},'%') | |||||
| </if> | |||||
| <if test=" null != verificationInfo "> | |||||
| and `verification_info` like concat('%', #{verificationInfo},'%') | |||||
| </if> | |||||
| <if test=" null != synId "> | |||||
| and `syn_id` like concat('%', #{synId},'%') | |||||
| </if> | |||||
| <if test=" null != discountNo "> | |||||
| and `discount_no` = #{discountNo} | |||||
| </if> | |||||
| <if test=" null != status "> | |||||
| and `status` = #{status} | |||||
| </if> | |||||
| <if test=" null != createDate "> | |||||
| and `create_date` = #{createDate} | |||||
| </if> | |||||
| <if test=" null != updateDate "> | |||||
| and `update_date` = #{updateDate} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxEtcpParkOutMapper"> | <mapper namespace="com.simple.mapper.WxEtcpParkOutMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxEtcpParkOut"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxEtcpParkOut"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="syn_id" jdbcType="VARCHAR" property="synId" /> | <result column="syn_id" jdbcType="VARCHAR" property="synId" /> | ||||
| <result column="plate_number" jdbcType="VARCHAR" property="plateNumber" /> | <result column="plate_number" jdbcType="VARCHAR" property="plateNumber" /> | ||||
| @@ -15,11 +15,31 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != synId "> and `syn_id` = #{synId} </if> | |||||
| <if test=" null != plateNumber "> and `plate_number` = #{plateNumber} </if> | |||||
| <if test=" null != parkName "> and `park_name` = #{parkName} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != synId "> | |||||
| and `syn_id` like concat('%', #{synId},'%') | |||||
| </if> | |||||
| <if test=" null != plateNumber "> | |||||
| and `plate_number` like concat('%', #{plateNumber},'%') | |||||
| </if> | |||||
| <if test=" null != parkName "> | |||||
| and `park_name` like concat('%', #{parkName},'%') | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxEtcpParkTransactionMapper"> | <mapper namespace="com.simple.mapper.WxEtcpParkTransactionMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxEtcpParkTransaction"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxEtcpParkTransaction"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="pay_type" jdbcType="INTEGER" property="payType" /> | <result column="pay_type" jdbcType="INTEGER" property="payType" /> | ||||
| <result column="syn_id" jdbcType="VARCHAR" property="synId" /> | <result column="syn_id" jdbcType="VARCHAR" property="synId" /> | ||||
| @@ -22,18 +22,66 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != payType "> and `pay_type` = #{payType} </if> | |||||
| <if test=" null != synId "> and `syn_id` = #{synId} </if> | |||||
| <if test=" null != returnUrl "> and `return_url` = #{returnUrl} </if> | |||||
| <if test=" null != couponCode "> and `coupon_code` = #{couponCode} </if> | |||||
| <if test=" null != code "> and `code` = #{code} </if> | |||||
| <if test=" null != message "> and `message` = #{message} </if> | |||||
| <if test=" null != data "> and `data` = #{data} </if> | |||||
| <if test=" null != status "> and `status` = #{status} </if> | |||||
| <if test=" null != createDate "> and `create_date` = #{createDate} </if> | |||||
| <if test=" null != updateDate "> and `update_date` = #{updateDate} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != payType "> | |||||
| and `pay_type` = #{payType} | |||||
| </if> | |||||
| <if test=" null != synId "> | |||||
| and `syn_id` like concat('%', #{synId},'%') | |||||
| </if> | |||||
| <if test=" null != returnUrl "> | |||||
| and `return_url` like concat('%', #{returnUrl},'%') | |||||
| </if> | |||||
| <if test=" null != couponCode "> | |||||
| and `coupon_code` like concat('%', #{couponCode},'%') | |||||
| </if> | |||||
| <if test=" null != code "> | |||||
| and `code` = #{code} | |||||
| </if> | |||||
| <if test=" null != message "> | |||||
| and `message` like concat('%', #{message},'%') | |||||
| </if> | |||||
| <if test=" null != data "> | |||||
| and `data` like concat('%', #{data},'%') | |||||
| </if> | |||||
| <if test=" null != status "> | |||||
| and `status` = #{status} | |||||
| </if> | |||||
| <if test=" null != createDate "> | |||||
| and `create_date` = #{createDate} | |||||
| </if> | |||||
| <if test=" null != updateDate "> | |||||
| and `update_date` = #{updateDate} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxEtcpParkUnbindMapper"> | <mapper namespace="com.simple.mapper.WxEtcpParkUnbindMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxEtcpParkUnbind"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxEtcpParkUnbind"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="plate_number" jdbcType="VARCHAR" property="plateNumber" /> | <result column="plate_number" jdbcType="VARCHAR" property="plateNumber" /> | ||||
| </resultMap> | </resultMap> | ||||
| @@ -13,9 +13,21 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != plateNumber "> and `plate_number` = #{plateNumber} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != plateNumber "> | |||||
| and `plate_number` like concat('%', #{plateNumber},'%') | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,9 +2,9 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxFlashSaleMapper"> | <mapper namespace="com.simple.mapper.WxFlashSaleMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxFlashSale"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxFlashSale"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="activity_id" jdbcType="INTEGER" property="activityId" /> | |||||
| <result column="activity_id" jdbcType="BIGINT" property="activityId" /> | |||||
| <result column="createtime" jdbcType="TIMESTAMP" property="createtime" /> | <result column="createtime" jdbcType="TIMESTAMP" property="createtime" /> | ||||
| <result column="uptime" jdbcType="TIMESTAMP" property="uptime" /> | <result column="uptime" jdbcType="TIMESTAMP" property="uptime" /> | ||||
| <result column="is_enable" jdbcType="INTEGER" property="isEnable" /> | <result column="is_enable" jdbcType="INTEGER" property="isEnable" /> | ||||
| @@ -16,12 +16,36 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != activityId "> and `activity_id` = #{activityId} </if> | |||||
| <if test=" null != createtime "> and `createtime` = #{createtime} </if> | |||||
| <if test=" null != uptime "> and `uptime` = #{uptime} </if> | |||||
| <if test=" null != isEnable "> and `is_enable` = #{isEnable} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != activityId "> | |||||
| and `activity_id` = #{activityId} | |||||
| </if> | |||||
| <if test=" null != createtime "> | |||||
| and `createtime` = #{createtime} | |||||
| </if> | |||||
| <if test=" null != uptime "> | |||||
| and `uptime` = #{uptime} | |||||
| </if> | |||||
| <if test=" null != isEnable "> | |||||
| and `is_enable` = #{isEnable} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -13,9 +13,21 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != address "> and `address` = #{address} </if> | |||||
| <if test=" null != sign "> and `sign` = #{sign} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != address "> | |||||
| and `address` like concat('%', #{address},'%') | |||||
| </if> | |||||
| <if test=" null != sign "> | |||||
| and `sign` like concat('%', #{sign},'%') | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,9 +2,9 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxMallBuildingMapper"> | <mapper namespace="com.simple.mapper.WxMallBuildingMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxMallBuilding"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxMallBuilding"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="mall_id" jdbcType="INTEGER" property="mallId" /> | |||||
| <result column="mall_id" jdbcType="BIGINT" property="mallId" /> | |||||
| <result column="name" jdbcType="VARCHAR" property="name" /> | <result column="name" jdbcType="VARCHAR" property="name" /> | ||||
| <result column="floor_number" jdbcType="INTEGER" property="floorNumber" /> | <result column="floor_number" jdbcType="INTEGER" property="floorNumber" /> | ||||
| </resultMap> | </resultMap> | ||||
| @@ -15,11 +15,31 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != mallId "> and `mall_id` = #{mallId} </if> | |||||
| <if test=" null != name "> and `name` = #{name} </if> | |||||
| <if test=" null != floorNumber "> and `floor_number` = #{floorNumber} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != mallId "> | |||||
| and `mall_id` = #{mallId} | |||||
| </if> | |||||
| <if test=" null != name "> | |||||
| and `name` like concat('%', #{name},'%') | |||||
| </if> | |||||
| <if test=" null != floorNumber "> | |||||
| and `floor_number` = #{floorNumber} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,10 +2,10 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxMallFloorMapper"> | <mapper namespace="com.simple.mapper.WxMallFloorMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxMallFloor"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxMallFloor"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="mall_id" jdbcType="INTEGER" property="mallId" /> | |||||
| <result column="building_id" jdbcType="INTEGER" property="buildingId" /> | |||||
| <result column="mall_id" jdbcType="BIGINT" property="mallId" /> | |||||
| <result column="building_id" jdbcType="BIGINT" property="buildingId" /> | |||||
| <result column="floor_name" jdbcType="VARCHAR" property="floorName" /> | <result column="floor_name" jdbcType="VARCHAR" property="floorName" /> | ||||
| </resultMap> | </resultMap> | ||||
| @@ -15,11 +15,31 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != mallId "> and `mall_id` = #{mallId} </if> | |||||
| <if test=" null != buildingId "> and `building_id` = #{buildingId} </if> | |||||
| <if test=" null != floorName "> and `floor_name` = #{floorName} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != mallId "> | |||||
| and `mall_id` = #{mallId} | |||||
| </if> | |||||
| <if test=" null != buildingId "> | |||||
| and `building_id` = #{buildingId} | |||||
| </if> | |||||
| <if test=" null != floorName "> | |||||
| and `floor_name` like concat('%', #{floorName},'%') | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxMallMapper"> | <mapper namespace="com.simple.mapper.WxMallMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxMall"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxMall"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="name" jdbcType="VARCHAR" property="name" /> | <result column="name" jdbcType="VARCHAR" property="name" /> | ||||
| <result column="group" jdbcType="VARCHAR" property="group" /> | <result column="group" jdbcType="VARCHAR" property="group" /> | ||||
| @@ -23,19 +23,71 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != name "> and `name` = #{name} </if> | |||||
| <if test=" null != group "> and `group` = #{group} </if> | |||||
| <if test=" null != country "> and `country` = #{country} </if> | |||||
| <if test=" null != province "> and `province` = #{province} </if> | |||||
| <if test=" null != city "> and `city` = #{city} </if> | |||||
| <if test=" null != addr "> and `addr` = #{addr} </if> | |||||
| <if test=" null != wiwideId "> and `wiwide_id` = #{wiwideId} </if> | |||||
| <if test=" null != totalArea "> and `total_area` = #{totalArea} </if> | |||||
| <if test=" null != operatingArea "> and `operating_area` = #{operatingArea} </if> | |||||
| <if test=" null != parkArea "> and `park_area` = #{parkArea} </if> | |||||
| <if test=" null != parkPlaceNumber "> and `park_place_number` = #{parkPlaceNumber} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != name "> | |||||
| and `name` like concat('%', #{name},'%') | |||||
| </if> | |||||
| <if test=" null != group "> | |||||
| and `group` like concat('%', #{group},'%') | |||||
| </if> | |||||
| <if test=" null != country "> | |||||
| and `country` like concat('%', #{country},'%') | |||||
| </if> | |||||
| <if test=" null != province "> | |||||
| and `province` like concat('%', #{province},'%') | |||||
| </if> | |||||
| <if test=" null != city "> | |||||
| and `city` like concat('%', #{city},'%') | |||||
| </if> | |||||
| <if test=" null != addr "> | |||||
| and `addr` like concat('%', #{addr},'%') | |||||
| </if> | |||||
| <if test=" null != wiwideId "> | |||||
| and `wiwide_id` like concat('%', #{wiwideId},'%') | |||||
| </if> | |||||
| <if test=" null != totalArea "> | |||||
| and `total_area` = #{totalArea} | |||||
| </if> | |||||
| <if test=" null != operatingArea "> | |||||
| and `operating_area` = #{operatingArea} | |||||
| </if> | |||||
| <if test=" null != parkArea "> | |||||
| and `park_area` = #{parkArea} | |||||
| </if> | |||||
| <if test=" null != parkPlaceNumber "> | |||||
| and `park_place_number` = #{parkPlaceNumber} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -13,9 +13,21 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != merchantId "> and `merchant_id` = #{merchantId} </if> | |||||
| <if test=" null != etcpMerchantId "> and `etcp_merchant_id` = #{etcpMerchantId} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != merchantId "> | |||||
| and `merchant_id` = #{merchantId} | |||||
| </if> | |||||
| <if test=" null != etcpMerchantId "> | |||||
| and `etcp_merchant_id` like concat('%', #{etcpMerchantId},'%') | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxMerchantMapper"> | <mapper namespace="com.simple.mapper.WxMerchantMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxMerchant"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxMerchant"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="img_url" jdbcType="VARCHAR" property="imgUrl" /> | <result column="img_url" jdbcType="VARCHAR" property="imgUrl" /> | ||||
| <result column="name" jdbcType="VARCHAR" property="name" /> | <result column="name" jdbcType="VARCHAR" property="name" /> | ||||
| @@ -18,14 +18,46 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != imgUrl "> and `img_url` = #{imgUrl} </if> | |||||
| <if test=" null != name "> and `name` = #{name} </if> | |||||
| <if test=" null != linkPhone "> and `link_phone` = #{linkPhone} </if> | |||||
| <if test=" null != bankCard "> and `bank_card` = #{bankCard} </if> | |||||
| <if test=" null != bankName "> and `bank_name` = #{bankName} </if> | |||||
| <if test=" null != merchantId "> and `merchant_id` = #{merchantId} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != imgUrl "> | |||||
| and `img_url` like concat('%', #{imgUrl},'%') | |||||
| </if> | |||||
| <if test=" null != name "> | |||||
| and `name` like concat('%', #{name},'%') | |||||
| </if> | |||||
| <if test=" null != linkPhone "> | |||||
| and `link_phone` like concat('%', #{linkPhone},'%') | |||||
| </if> | |||||
| <if test=" null != bankCard "> | |||||
| and `bank_card` like concat('%', #{bankCard},'%') | |||||
| </if> | |||||
| <if test=" null != bankName "> | |||||
| and `bank_name` like concat('%', #{bankName},'%') | |||||
| </if> | |||||
| <if test=" null != merchantId "> | |||||
| and `merchant_id` like concat('%', #{merchantId},'%') | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,10 +2,10 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxMerchantShopMapper"> | <mapper namespace="com.simple.mapper.WxMerchantShopMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxMerchantShop"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxMerchantShop"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="merchant_id" jdbcType="INTEGER" property="merchantId" /> | |||||
| <result column="shop_id" jdbcType="INTEGER" property="shopId" /> | |||||
| <result column="merchant_id" jdbcType="BIGINT" property="merchantId" /> | |||||
| <result column="shop_id" jdbcType="BIGINT" property="shopId" /> | |||||
| </resultMap> | </resultMap> | ||||
| <sql id="allColumns"> | <sql id="allColumns"> | ||||
| @@ -14,10 +14,26 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != merchantId "> and `merchant_id` = #{merchantId} </if> | |||||
| <if test=" null != shopId "> and `shop_id` = #{shopId} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != merchantId "> | |||||
| and `merchant_id` = #{merchantId} | |||||
| </if> | |||||
| <if test=" null != shopId "> | |||||
| and `shop_id` = #{shopId} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,9 +2,9 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxMerchantTradeDaysMapper"> | <mapper namespace="com.simple.mapper.WxMerchantTradeDaysMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxMerchantTradeDays"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxMerchantTradeDays"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="merchant_id" jdbcType="INTEGER" property="merchantId" /> | |||||
| <result column="merchant_id" jdbcType="BIGINT" property="merchantId" /> | |||||
| <result column="trade_amt" jdbcType="DECIMAL" property="tradeAmt" /> | <result column="trade_amt" jdbcType="DECIMAL" property="tradeAmt" /> | ||||
| <result column="create_date" jdbcType="TIMESTAMP" property="createDate" /> | <result column="create_date" jdbcType="TIMESTAMP" property="createDate" /> | ||||
| </resultMap> | </resultMap> | ||||
| @@ -15,11 +15,31 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != merchantId "> and `merchant_id` = #{merchantId} </if> | |||||
| <if test=" null != tradeAmt "> and `trade_amt` = #{tradeAmt} </if> | |||||
| <if test=" null != createDate "> and `create_date` = #{createDate} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != merchantId "> | |||||
| and `merchant_id` = #{merchantId} | |||||
| </if> | |||||
| <if test=" null != tradeAmt "> | |||||
| and `trade_amt` = #{tradeAmt} | |||||
| </if> | |||||
| <if test=" null != createDate "> | |||||
| and `create_date` = #{createDate} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,17 +2,17 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxMsgConfigMapper"> | <mapper namespace="com.simple.mapper.WxMsgConfigMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxMsgConfig"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxMsgConfig"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="secret" jdbcType="VARCHAR" property="secret" /> | <result column="secret" jdbcType="VARCHAR" property="secret" /> | ||||
| <result column="publickey" jdbcType="VARCHAR" property="publickey" /> | <result column="publickey" jdbcType="VARCHAR" property="publickey" /> | ||||
| <result column="bid" jdbcType="VARCHAR" property="bid" /> | <result column="bid" jdbcType="VARCHAR" property="bid" /> | ||||
| <result column="recharge" jdbcType="INTEGER" property="recharge" /> | |||||
| <result column="remains" jdbcType="INTEGER" property="remains" /> | |||||
| <result column="total" jdbcType="INTEGER" property="total" /> | |||||
| <result column="recharge" jdbcType="BIGINT" property="recharge" /> | |||||
| <result column="remains" jdbcType="BIGINT" property="remains" /> | |||||
| <result column="total" jdbcType="BIGINT" property="total" /> | |||||
| <result column="account" jdbcType="VARCHAR" property="account" /> | <result column="account" jdbcType="VARCHAR" property="account" /> | ||||
| <result column="reminderstatus" jdbcType="INTEGER" property="reminderstatus" /> | <result column="reminderstatus" jdbcType="INTEGER" property="reminderstatus" /> | ||||
| <result column="reminder" jdbcType="INTEGER" property="reminder" /> | |||||
| <result column="reminder" jdbcType="BIGINT" property="reminder" /> | |||||
| <result column="phone" jdbcType="VARCHAR" property="phone" /> | <result column="phone" jdbcType="VARCHAR" property="phone" /> | ||||
| </resultMap> | </resultMap> | ||||
| @@ -22,18 +22,66 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != secret "> and `secret` = #{secret} </if> | |||||
| <if test=" null != publickey "> and `publickey` = #{publickey} </if> | |||||
| <if test=" null != bid "> and `bid` = #{bid} </if> | |||||
| <if test=" null != recharge "> and `recharge` = #{recharge} </if> | |||||
| <if test=" null != remains "> and `remains` = #{remains} </if> | |||||
| <if test=" null != total "> and `total` = #{total} </if> | |||||
| <if test=" null != account "> and `account` = #{account} </if> | |||||
| <if test=" null != reminderstatus "> and `reminderstatus` = #{reminderstatus} </if> | |||||
| <if test=" null != reminder "> and `reminder` = #{reminder} </if> | |||||
| <if test=" null != phone "> and `phone` = #{phone} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != secret "> | |||||
| and `secret` like concat('%', #{secret},'%') | |||||
| </if> | |||||
| <if test=" null != publickey "> | |||||
| and `publickey` like concat('%', #{publickey},'%') | |||||
| </if> | |||||
| <if test=" null != bid "> | |||||
| and `bid` like concat('%', #{bid},'%') | |||||
| </if> | |||||
| <if test=" null != recharge "> | |||||
| and `recharge` = #{recharge} | |||||
| </if> | |||||
| <if test=" null != remains "> | |||||
| and `remains` = #{remains} | |||||
| </if> | |||||
| <if test=" null != total "> | |||||
| and `total` = #{total} | |||||
| </if> | |||||
| <if test=" null != account "> | |||||
| and `account` like concat('%', #{account},'%') | |||||
| </if> | |||||
| <if test=" null != reminderstatus "> | |||||
| and `reminderstatus` = #{reminderstatus} | |||||
| </if> | |||||
| <if test=" null != reminder "> | |||||
| and `reminder` = #{reminder} | |||||
| </if> | |||||
| <if test=" null != phone "> | |||||
| and `phone` like concat('%', #{phone},'%') | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,9 +2,9 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxMsgMapper"> | <mapper namespace="com.simple.mapper.WxMsgMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxMsg"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxMsg"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="model_id" jdbcType="INTEGER" property="modelId" /> | |||||
| <result column="model_id" jdbcType="BIGINT" property="modelId" /> | |||||
| <result column="msg" jdbcType="VARCHAR" property="msg" /> | <result column="msg" jdbcType="VARCHAR" property="msg" /> | ||||
| <result column="sendtime" jdbcType="TIMESTAMP" property="sendtime" /> | <result column="sendtime" jdbcType="TIMESTAMP" property="sendtime" /> | ||||
| <result column="createtime" jdbcType="TIMESTAMP" property="createtime" /> | <result column="createtime" jdbcType="TIMESTAMP" property="createtime" /> | ||||
| @@ -21,17 +21,61 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != modelId "> and `model_id` = #{modelId} </if> | |||||
| <if test=" null != msg "> and `msg` = #{msg} </if> | |||||
| <if test=" null != sendtime "> and `sendtime` = #{sendtime} </if> | |||||
| <if test=" null != createtime "> and `createtime` = #{createtime} </if> | |||||
| <if test=" null != expectSendNumber "> and `expect_send_number` = #{expectSendNumber} </if> | |||||
| <if test=" null != successNumber "> and `success_number` = #{successNumber} </if> | |||||
| <if test=" null != errorNumber "> and `error_number` = #{errorNumber} </if> | |||||
| <if test=" null != returnResult "> and `return_result` = #{returnResult} </if> | |||||
| <if test=" null != phones "> and `phones` = #{phones} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != modelId "> | |||||
| and `model_id` = #{modelId} | |||||
| </if> | |||||
| <if test=" null != msg "> | |||||
| and `msg` like concat('%', #{msg},'%') | |||||
| </if> | |||||
| <if test=" null != sendtime "> | |||||
| and `sendtime` = #{sendtime} | |||||
| </if> | |||||
| <if test=" null != createtime "> | |||||
| and `createtime` = #{createtime} | |||||
| </if> | |||||
| <if test=" null != expectSendNumber "> | |||||
| and `expect_send_number` like concat('%', #{expectSendNumber},'%') | |||||
| </if> | |||||
| <if test=" null != successNumber "> | |||||
| and `success_number` like concat('%', #{successNumber},'%') | |||||
| </if> | |||||
| <if test=" null != errorNumber "> | |||||
| and `error_number` like concat('%', #{errorNumber},'%') | |||||
| </if> | |||||
| <if test=" null != returnResult "> | |||||
| and `return_result` like concat('%', #{returnResult},'%') | |||||
| </if> | |||||
| <if test=" null != phones "> | |||||
| and `phones` like concat('%', #{phones},'%') | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxMsgModelMapper"> | <mapper namespace="com.simple.mapper.WxMsgModelMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxMsgModel"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxMsgModel"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="name" jdbcType="VARCHAR" property="name" /> | <result column="name" jdbcType="VARCHAR" property="name" /> | ||||
| <result column="signature" jdbcType="VARCHAR" property="signature" /> | <result column="signature" jdbcType="VARCHAR" property="signature" /> | ||||
| @@ -17,13 +17,41 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != name "> and `name` = #{name} </if> | |||||
| <if test=" null != signature "> and `signature` = #{signature} </if> | |||||
| <if test=" null != content "> and `content` = #{content} </if> | |||||
| <if test=" null != createtime "> and `createtime` = #{createtime} </if> | |||||
| <if test=" null != status "> and `status` = #{status} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != name "> | |||||
| and `name` like concat('%', #{name},'%') | |||||
| </if> | |||||
| <if test=" null != signature "> | |||||
| and `signature` like concat('%', #{signature},'%') | |||||
| </if> | |||||
| <if test=" null != content "> | |||||
| and `content` like concat('%', #{content},'%') | |||||
| </if> | |||||
| <if test=" null != createtime "> | |||||
| and `createtime` = #{createtime} | |||||
| </if> | |||||
| <if test=" null != status "> | |||||
| and `status` = #{status} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxMsgSignatureMapper"> | <mapper namespace="com.simple.mapper.WxMsgSignatureMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxMsgSignature"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxMsgSignature"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="name" jdbcType="VARCHAR" property="name" /> | <result column="name" jdbcType="VARCHAR" property="name" /> | ||||
| <result column="createtime" jdbcType="TIMESTAMP" property="createtime" /> | <result column="createtime" jdbcType="TIMESTAMP" property="createtime" /> | ||||
| @@ -14,10 +14,26 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != name "> and `name` = #{name} </if> | |||||
| <if test=" null != createtime "> and `createtime` = #{createtime} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != name "> | |||||
| and `name` like concat('%', #{name},'%') | |||||
| </if> | |||||
| <if test=" null != createtime "> | |||||
| and `createtime` = #{createtime} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,10 +2,10 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxOrdersMapper"> | <mapper namespace="com.simple.mapper.WxOrdersMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxOrders"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxOrders"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="coupon_id" jdbcType="INTEGER" property="couponId" /> | |||||
| <result column="c_user_id" jdbcType="INTEGER" property="cUserId" /> | |||||
| <result column="coupon_id" jdbcType="BIGINT" property="couponId" /> | |||||
| <result column="c_user_id" jdbcType="BIGINT" property="cUserId" /> | |||||
| <result column="payment" jdbcType="DECIMAL" property="payment" /> | <result column="payment" jdbcType="DECIMAL" property="payment" /> | ||||
| <result column="status" jdbcType="INTEGER" property="status" /> | <result column="status" jdbcType="INTEGER" property="status" /> | ||||
| <result column="create_date" jdbcType="TIMESTAMP" property="createDate" /> | <result column="create_date" jdbcType="TIMESTAMP" property="createDate" /> | ||||
| @@ -18,14 +18,46 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != couponId "> and `coupon_id` = #{couponId} </if> | |||||
| <if test=" null != cUserId "> and `c_user_id` = #{cUserId} </if> | |||||
| <if test=" null != payment "> and `payment` = #{payment} </if> | |||||
| <if test=" null != status "> and `status` = #{status} </if> | |||||
| <if test=" null != createDate "> and `create_date` = #{createDate} </if> | |||||
| <if test=" null != updateDate "> and `update_date` = #{updateDate} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != couponId "> | |||||
| and `coupon_id` = #{couponId} | |||||
| </if> | |||||
| <if test=" null != cUserId "> | |||||
| and `c_user_id` = #{cUserId} | |||||
| </if> | |||||
| <if test=" null != payment "> | |||||
| and `payment` = #{payment} | |||||
| </if> | |||||
| <if test=" null != status "> | |||||
| and `status` = #{status} | |||||
| </if> | |||||
| <if test=" null != createDate "> | |||||
| and `create_date` = #{createDate} | |||||
| </if> | |||||
| <if test=" null != updateDate "> | |||||
| and `update_date` = #{updateDate} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -13,9 +13,21 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != parkId "> and `park_id` = #{parkId} </if> | |||||
| <if test=" null != etcpParkId "> and `etcp_park_id` = #{etcpParkId} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != parkId "> | |||||
| and `park_id` = #{parkId} | |||||
| </if> | |||||
| <if test=" null != etcpParkId "> | |||||
| and `etcp_park_id` like concat('%', #{etcpParkId},'%') | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxParkMapper"> | <mapper namespace="com.simple.mapper.WxParkMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxPark"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxPark"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="addr" jdbcType="VARCHAR" property="addr" /> | <result column="addr" jdbcType="VARCHAR" property="addr" /> | ||||
| <result column="number" jdbcType="INTEGER" property="number" /> | <result column="number" jdbcType="INTEGER" property="number" /> | ||||
| @@ -16,12 +16,36 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != addr "> and `addr` = #{addr} </if> | |||||
| <if test=" null != number "> and `number` = #{number} </if> | |||||
| <if test=" null != etcpParkId "> and `etcp_park_id` = #{etcpParkId} </if> | |||||
| <if test=" null != entryExit "> and `entry_exit` = #{entryExit} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != addr "> | |||||
| and `addr` like concat('%', #{addr},'%') | |||||
| </if> | |||||
| <if test=" null != number "> | |||||
| and `number` = #{number} | |||||
| </if> | |||||
| <if test=" null != etcpParkId "> | |||||
| and `etcp_park_id` like concat('%', #{etcpParkId},'%') | |||||
| </if> | |||||
| <if test=" null != entryExit "> | |||||
| and `entry_exit` = #{entryExit} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,12 +2,12 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxScoreHistoryMapper"> | <mapper namespace="com.simple.mapper.WxScoreHistoryMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxScoreHistory"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxScoreHistory"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="c_user_id" jdbcType="INTEGER" property="cUserId" /> | |||||
| <result column="c_user_id" jdbcType="BIGINT" property="cUserId" /> | |||||
| <result column="create_date" jdbcType="TIMESTAMP" property="createDate" /> | <result column="create_date" jdbcType="TIMESTAMP" property="createDate" /> | ||||
| <result column="valid_date" jdbcType="TIMESTAMP" property="validDate" /> | <result column="valid_date" jdbcType="TIMESTAMP" property="validDate" /> | ||||
| <result column="order_id" jdbcType="INTEGER" property="orderId" /> | |||||
| <result column="order_id" jdbcType="BIGINT" property="orderId" /> | |||||
| <result column="pay_type" jdbcType="INTEGER" property="payType" /> | <result column="pay_type" jdbcType="INTEGER" property="payType" /> | ||||
| <result column="pay_amount" jdbcType="DECIMAL" property="payAmount" /> | <result column="pay_amount" jdbcType="DECIMAL" property="payAmount" /> | ||||
| <result column="score_amount" jdbcType="INTEGER" property="scoreAmount" /> | <result column="score_amount" jdbcType="INTEGER" property="scoreAmount" /> | ||||
| @@ -19,15 +19,51 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != cUserId "> and `c_user_id` = #{cUserId} </if> | |||||
| <if test=" null != createDate "> and `create_date` = #{createDate} </if> | |||||
| <if test=" null != validDate "> and `valid_date` = #{validDate} </if> | |||||
| <if test=" null != orderId "> and `order_id` = #{orderId} </if> | |||||
| <if test=" null != payType "> and `pay_type` = #{payType} </if> | |||||
| <if test=" null != payAmount "> and `pay_amount` = #{payAmount} </if> | |||||
| <if test=" null != scoreAmount "> and `score_amount` = #{scoreAmount} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != cUserId "> | |||||
| and `c_user_id` = #{cUserId} | |||||
| </if> | |||||
| <if test=" null != createDate "> | |||||
| and `create_date` = #{createDate} | |||||
| </if> | |||||
| <if test=" null != validDate "> | |||||
| and `valid_date` = #{validDate} | |||||
| </if> | |||||
| <if test=" null != orderId "> | |||||
| and `order_id` = #{orderId} | |||||
| </if> | |||||
| <if test=" null != payType "> | |||||
| and `pay_type` = #{payType} | |||||
| </if> | |||||
| <if test=" null != payAmount "> | |||||
| and `pay_amount` = #{payAmount} | |||||
| </if> | |||||
| <if test=" null != scoreAmount "> | |||||
| and `score_amount` = #{scoreAmount} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxScoreRulesMapper"> | <mapper namespace="com.simple.mapper.WxScoreRulesMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxScoreRules"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxScoreRules"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="consumption_amount" jdbcType="DECIMAL" property="consumptionAmount" /> | <result column="consumption_amount" jdbcType="DECIMAL" property="consumptionAmount" /> | ||||
| <result column="score_number" jdbcType="INTEGER" property="scoreNumber" /> | <result column="score_number" jdbcType="INTEGER" property="scoreNumber" /> | ||||
| @@ -14,10 +14,26 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != consumptionAmount "> and `consumption_amount` = #{consumptionAmount} </if> | |||||
| <if test=" null != scoreNumber "> and `score_number` = #{scoreNumber} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != consumptionAmount "> | |||||
| and `consumption_amount` = #{consumptionAmount} | |||||
| </if> | |||||
| <if test=" null != scoreNumber "> | |||||
| and `score_number` = #{scoreNumber} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxScoreValidityPeriodMapper"> | <mapper namespace="com.simple.mapper.WxScoreValidityPeriodMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxScoreValidityPeriod"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxScoreValidityPeriod"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="year" jdbcType="VARCHAR" property="year" /> | <result column="year" jdbcType="VARCHAR" property="year" /> | ||||
| </resultMap> | </resultMap> | ||||
| @@ -13,9 +13,21 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != year "> and `year` = #{year} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != year "> | |||||
| and `year` like concat('%', #{year},'%') | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxShopMapper"> | <mapper namespace="com.simple.mapper.WxShopMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxShop"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxShop"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="title" jdbcType="VARCHAR" property="title" /> | <result column="title" jdbcType="VARCHAR" property="title" /> | ||||
| <result column="build_area" jdbcType="VARCHAR" property="buildArea" /> | <result column="build_area" jdbcType="VARCHAR" property="buildArea" /> | ||||
| @@ -22,18 +22,66 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != title "> and `title` = #{title} </if> | |||||
| <if test=" null != buildArea "> and `build_area` = #{buildArea} </if> | |||||
| <if test=" null != operationArea "> and `operation_area` = #{operationArea} </if> | |||||
| <if test=" null != building "> and `building` = #{building} </if> | |||||
| <if test=" null != floor "> and `floor` = #{floor} </if> | |||||
| <if test=" null != x "> and `x` = #{x} </if> | |||||
| <if test=" null != y "> and `y` = #{y} </if> | |||||
| <if test=" null != baiduPoi "> and `baidu_poi` = #{baiduPoi} </if> | |||||
| <if test=" null != createDate "> and `create_date` = #{createDate} </if> | |||||
| <if test=" null != updateDate "> and `update_date` = #{updateDate} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != title "> | |||||
| and `title` like concat('%', #{title},'%') | |||||
| </if> | |||||
| <if test=" null != buildArea "> | |||||
| and `build_area` like concat('%', #{buildArea},'%') | |||||
| </if> | |||||
| <if test=" null != operationArea "> | |||||
| and `operation_area` like concat('%', #{operationArea},'%') | |||||
| </if> | |||||
| <if test=" null != building "> | |||||
| and `building` like concat('%', #{building},'%') | |||||
| </if> | |||||
| <if test=" null != floor "> | |||||
| and `floor` = #{floor} | |||||
| </if> | |||||
| <if test=" null != x "> | |||||
| and `x` = #{x} | |||||
| </if> | |||||
| <if test=" null != y "> | |||||
| and `y` = #{y} | |||||
| </if> | |||||
| <if test=" null != baiduPoi "> | |||||
| and `baidu_poi` like concat('%', #{baiduPoi},'%') | |||||
| </if> | |||||
| <if test=" null != createDate "> | |||||
| and `create_date` = #{createDate} | |||||
| </if> | |||||
| <if test=" null != updateDate "> | |||||
| and `update_date` = #{updateDate} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxTagsMapper"> | <mapper namespace="com.simple.mapper.WxTagsMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxTags"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxTags"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="name" jdbcType="VARCHAR" property="name" /> | <result column="name" jdbcType="VARCHAR" property="name" /> | ||||
| <result column="type1" jdbcType="VARCHAR" property="type1" /> | <result column="type1" jdbcType="VARCHAR" property="type1" /> | ||||
| @@ -15,11 +15,31 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != name "> and `name` = #{name} </if> | |||||
| <if test=" null != type1 "> and `type1` = #{type1} </if> | |||||
| <if test=" null != type2 "> and `type2` = #{type2} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != name "> | |||||
| and `name` like concat('%', #{name},'%') | |||||
| </if> | |||||
| <if test=" null != type1 "> | |||||
| and `type1` like concat('%', #{type1},'%') | |||||
| </if> | |||||
| <if test=" null != type2 "> | |||||
| and `type2` like concat('%', #{type2},'%') | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||
| @@ -2,7 +2,7 @@ | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.simple.mapper.WxWebLogMapper"> | <mapper namespace="com.simple.mapper.WxWebLogMapper"> | ||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxWebLog"> | <resultMap id="BaseResultMap" type="com.simple.domain.po.WxWebLog"> | ||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <id column="id" jdbcType="BIGINT" property="id" /> | |||||
| <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" /> | ||||
| <result column="data" jdbcType="VARCHAR" property="data" /> | <result column="data" jdbcType="VARCHAR" property="data" /> | ||||
| <result column="create_date" jdbcType="TIMESTAMP" property="createDate" /> | <result column="create_date" jdbcType="TIMESTAMP" property="createDate" /> | ||||
| @@ -14,10 +14,26 @@ | |||||
| <sql id="dynamicWhereConditions"> | <sql id="dynamicWhereConditions"> | ||||
| where 1 = 1 | where 1 = 1 | ||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if> | |||||
| <if test=" null != data "> and `data` = #{data} </if> | |||||
| <if test=" null != createDate "> and `create_date` = #{createDate} </if> | |||||
| <if test=" null != id "> | |||||
| and `id` = #{id} | |||||
| </if> | |||||
| <if test=" null != tenantId "> | |||||
| and `tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != data "> | |||||
| and `data` like concat('%', #{data},'%') | |||||
| </if> | |||||
| <if test=" null != createDate "> | |||||
| and `create_date` = #{createDate} | |||||
| </if> | |||||
| <if test=" null != ids "> | <if test=" null != ids "> | ||||
| and id in | and id in | ||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | ||||