Commit 3a078276 by 邹磊浩

修改代码

parent a931106a
......@@ -51,8 +51,8 @@ wechat:
merchantSerialNumber: 微信支付密钥对应的序列号
apiV3key: 微信支付apiV3key
notifyUrl: 微信支付回调地址
miniProgramAppId: 小程序apppid(h5的时候不需要)
miniProgramSecret: 小程序Secret(h5的时候不需要)
miniProgramAppId: wxb323afcbe152514f
miniProgramSecret: f975fc175dad70717f9a09384b55a9f7
sms:
enabled: true
# 阿里云 dysmsapi.aliyuncs.com
......
......@@ -156,8 +156,8 @@ xss:
urlPatterns: /system/*,/monitor/*,/tool/*
extra:
wx:
appid: wxappid
secret: wxsecret
appid: wxb323afcbe152514f
secret: f975fc175dad70717f9a09384b55a9f7
redirect: ""
scheduling:
enabled: true
......
package com.cyl.h5.controller;
import com.cyl.manager.act.domain.entity.ActivityApplyInfo;
import com.cyl.manager.act.domain.query.ActivityApplyInfoQuery;
import com.cyl.manager.act.service.ActivityApplyInfoService;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.enums.BusinessType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 活动报名信息Controller
*
* @author zcc
* @date 2024-07-31
*/
@Api(description = "小程序-活动报名接口")
@RestController
@RequestMapping("/h5/activityApplyInfo")
public class H5ActivityApplyInfoController extends BaseController {
@Autowired
private ActivityApplyInfoService service;
@ApiOperation("我的报名列表")
@PostMapping("/list")
public ResponseEntity<Page<ActivityApplyInfo>> list(@RequestBody ActivityApplyInfoQuery query, Pageable page) {
query.setUserId(getUserId());
List<ActivityApplyInfo> list = service.selectList(query, page);
return ResponseEntity.ok(new PageImpl<>(list, page, ((com.github.pagehelper.Page) list).getTotal()));
}
@ApiOperation("获取活动报名信息详细信息")
@GetMapping(value = "/{id}")
public ResponseEntity<ActivityApplyInfo> getInfo(@PathVariable("id") Long id) {
return ResponseEntity.ok(service.selectById(id));
}
@ApiOperation("修改活动报名信息")
@Log(title = "活动报名信息", businessType = BusinessType.UPDATE)
@PutMapping
public ResponseEntity<Integer> edit(@RequestBody ActivityApplyInfo activityApplyInfo) {
return ResponseEntity.ok(service.update(activityApplyInfo));
}
}
package com.cyl.h5.controller;
import com.cyl.manager.act.domain.entity.ActivityInfo;
import com.cyl.manager.act.domain.query.ActivityInfoQuery;
import com.cyl.manager.act.service.ActivityInfoService;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.enums.BusinessType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 活动信息Controller
*
* @author zcc
* @date 2024-07-31
*/
@Api(description ="小程序-活动列表接口")
@RestController
@RequestMapping("/h5/activityInfo")
public class H5ActivityInfoController extends BaseController {
@Autowired
private ActivityInfoService service;
@ApiOperation("查询活动信息列表")
@PostMapping("/list")
public ResponseEntity<Page<ActivityInfo>> list(@RequestBody ActivityInfoQuery query, Pageable page) {
List<ActivityInfo> list = service.selectList(query, page);
return ResponseEntity.ok(new PageImpl<>(list, page, ((com.github.pagehelper.Page)list).getTotal()));
}
@ApiOperation("获取活动信息详细信息")
@GetMapping(value = "/{id}")
public ResponseEntity<ActivityInfo> getInfo(@PathVariable("id") Long id) {
return ResponseEntity.ok(service.selectById(id));
}
}
package com.cyl.h5.controller;
import com.cyl.manager.oth.domain.entity.ScenicSpotInfo;
import com.cyl.manager.oth.domain.query.ScenicSpotInfoQuery;
import com.cyl.manager.oth.service.ScenicSpotInfoService;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.enums.BusinessType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 展馆&景点信息Controller
*
* @author zcc
* @date 2024-08-01
*/
@Api(description ="小程序-展馆&景点信息接口列表")
@RestController
@RequestMapping("/h5/scenicSpotInfo")
public class H5ScenicSpotInfoController extends BaseController {
@Autowired
private ScenicSpotInfoService service;
@ApiOperation("查询展馆&景点信息列表")
@PostMapping("/list")
public ResponseEntity<Page<ScenicSpotInfo>> list(@RequestBody ScenicSpotInfoQuery query, Pageable page) {
List<ScenicSpotInfo> list = service.selectList(query, page);
return ResponseEntity.ok(new PageImpl<>(list, page, ((com.github.pagehelper.Page)list).getTotal()));
}
@ApiOperation("获取展馆&景点信息详细信息")
@GetMapping(value = "/{id}")
public ResponseEntity<ScenicSpotInfo> getInfo(@PathVariable("id") Long id) {
return ResponseEntity.ok(service.selectById(id));
}
}
......@@ -168,7 +168,7 @@ public class H5MemberService {
}
H5SmsLoginForm request = JSON.parseObject(new String(Base64Utils.decodeFromString(data)), H5SmsLoginForm.class);
//校验验证码
this.validateVerifyCode(request.getUuid(), request.getMobile(), request.getCode());
// this.validateVerifyCode(request.getUuid(), request.getMobile(), request.getCode());
//查会员
QueryWrapper<Member> qw = new QueryWrapper<>();
qw.eq("phone_encrypted", AesCryptoUtils.encrypt(aesKey, request.getMobile()));
......
......@@ -32,7 +32,7 @@ import com.ruoyi.common.utils.poi.ExcelUtil;
*/
@Api(description ="活动信息接口列表")
@RestController
@RequestMapping("/mall/activityInfo")
@RequestMapping("/act/activityInfo")
public class ActivityInfoController extends BaseController {
@Autowired
private ActivityInfoService service;
......
......@@ -22,4 +22,6 @@ public class ActivityApplyInfoQuery {
@ApiModelProperty("核销人员")
private String cancelUserName;
private Long userId;
}
......@@ -57,6 +57,9 @@ public class ActivityApplyInfoService {
if (StringUtils.isNotEmpty(cancelUserName)) {
qw.like("cancel_user_name", cancelUserName);
}
if (null != query.getUserId()) {
qw.eq("user_id", query.getUserId());
}
String activityTitle = query.getActivityTitle();
if (StringUtils.isNotEmpty(activityTitle)) {
qw.like("activity_title", activityTitle);
......
package com.cyl.manager.oth.controller;
import java.util.List;
import com.cyl.manager.oth.domain.entity.AgreementInfo;
import com.cyl.manager.oth.domain.query.AgreementInfoQuery;
import com.cyl.manager.oth.domain.vo.AgreementInfoVO;
import com.cyl.manager.oth.service.AgreementInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Page;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
/**
* 协议管理信息Controller
*
* @author zcc
* @date 2024-08-01
*/
@Api(description ="协议管理信息接口列表")
@RestController
@RequestMapping("/oth/agreementInfo")
public class AgreementInfoController extends BaseController {
@Autowired
private AgreementInfoService service;
@ApiOperation("查询协议管理信息列表")
@PreAuthorize("@ss.hasPermi('oth:agreementInfo:list')")
@PostMapping("/list")
public ResponseEntity<Page<AgreementInfo>> list(@RequestBody AgreementInfoQuery query, Pageable page) {
List<AgreementInfo> list = service.selectList(query, page);
return ResponseEntity.ok(new PageImpl<>(list, page, ((com.github.pagehelper.Page)list).getTotal()));
}
@ApiOperation("获取协议管理信息详细信息")
@PreAuthorize("@ss.hasPermi('oth:agreementInfo:query')")
@GetMapping(value = "/{id}")
public ResponseEntity<AgreementInfo> getInfo(@PathVariable("id") Long id) {
return ResponseEntity.ok(service.selectById(id));
}
@ApiOperation("新增协议管理信息")
@PreAuthorize("@ss.hasPermi('oth:agreementInfo:add')")
@Log(title = "协议管理信息", businessType = BusinessType.INSERT)
@PostMapping
public ResponseEntity<Integer> add(@RequestBody AgreementInfo agreementInfo) {
return ResponseEntity.ok(service.insert(agreementInfo));
}
@ApiOperation("修改协议管理信息")
@PreAuthorize("@ss.hasPermi('oth:agreementInfo:edit')")
@Log(title = "协议管理信息", businessType = BusinessType.UPDATE)
@PutMapping
public ResponseEntity<Integer> edit(@RequestBody AgreementInfo agreementInfo) {
return ResponseEntity.ok(service.update(agreementInfo));
}
@ApiOperation("删除协议管理信息")
@PreAuthorize("@ss.hasPermi('oth:agreementInfo:remove')")
@Log(title = "协议管理信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public ResponseEntity<Integer> remove(@PathVariable Long[] ids) {
return ResponseEntity.ok(service.deleteByIds(ids));
}
}
package com.cyl.manager.oth.controller;
import java.util.List;
import com.cyl.manager.oth.domain.entity.BlackImgInfo;
import com.cyl.manager.oth.domain.query.BlackImgInfoQuery;
import com.cyl.manager.oth.service.BlackImgInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Page;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
/**
* 背景图管理信息Controller
*
* @author zcc
* @date 2024-08-01
*/
@Api(description ="背景图管理信息接口列表")
@RestController
@RequestMapping("/oth/blackImgInfo")
public class BlackImgInfoController extends BaseController {
@Autowired
private BlackImgInfoService service;
@ApiOperation("查询背景图管理信息列表")
@PreAuthorize("@ss.hasPermi('oth:blackImgInfo:list')")
@PostMapping("/list")
public ResponseEntity<Page<BlackImgInfo>> list(@RequestBody BlackImgInfoQuery query, Pageable page) {
List<BlackImgInfo> list = service.selectList(query, page);
return ResponseEntity.ok(new PageImpl<>(list, page, ((com.github.pagehelper.Page)list).getTotal()));
}
@ApiOperation("获取背景图管理信息详细信息")
@PreAuthorize("@ss.hasPermi('oth:blackImgInfo:query')")
@GetMapping(value = "/{id}")
public ResponseEntity<BlackImgInfo> getInfo(@PathVariable("id") Long id) {
return ResponseEntity.ok(service.selectById(id));
}
@ApiOperation("新增背景图管理信息")
@PreAuthorize("@ss.hasPermi('oth:blackImgInfo:add')")
@Log(title = "背景图管理信息", businessType = BusinessType.INSERT)
@PostMapping
public ResponseEntity<Integer> add(@RequestBody BlackImgInfo blackImgInfo) {
return ResponseEntity.ok(service.insert(blackImgInfo));
}
@ApiOperation("修改背景图管理信息")
@PreAuthorize("@ss.hasPermi('oth:blackImgInfo:edit')")
@Log(title = "背景图管理信息", businessType = BusinessType.UPDATE)
@PutMapping
public ResponseEntity<Integer> edit(@RequestBody BlackImgInfo blackImgInfo) {
return ResponseEntity.ok(service.update(blackImgInfo));
}
@ApiOperation("删除背景图管理信息")
@PreAuthorize("@ss.hasPermi('oth:blackImgInfo:remove')")
@Log(title = "背景图管理信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public ResponseEntity<Integer> remove(@PathVariable Long[] ids) {
return ResponseEntity.ok(service.deleteByIds(ids));
}
}
package com.cyl.manager.oth.controller;
import java.util.List;
import com.cyl.manager.oth.domain.entity.PosterInfo;
import com.cyl.manager.oth.domain.query.PosterInfoQuery;
import com.cyl.manager.oth.service.PosterInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Page;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
/**
* 主引流海报信息Controller
*
* @author zcc
* @date 2024-08-01
*/
@Api(description ="主引流海报信息接口列表")
@RestController
@RequestMapping("/oth/posterInfo")
public class PosterInfoController extends BaseController {
@Autowired
private PosterInfoService service;
@ApiOperation("查询主引流海报信息列表")
@PreAuthorize("@ss.hasPermi('oth:posterInfo:list')")
@PostMapping("/list")
public ResponseEntity<Page<PosterInfo>> list(@RequestBody PosterInfoQuery query, Pageable page) {
List<PosterInfo> list = service.selectList(query, page);
return ResponseEntity.ok(new PageImpl<>(list, page, ((com.github.pagehelper.Page)list).getTotal()));
}
@ApiOperation("获取主引流海报信息详细信息")
@PreAuthorize("@ss.hasPermi('oth:posterInfo:query')")
@GetMapping(value = "/{id}")
public ResponseEntity<PosterInfo> getInfo(@PathVariable("id") Long id) {
return ResponseEntity.ok(service.selectById(id));
}
@ApiOperation("新增主引流海报信息")
@PreAuthorize("@ss.hasPermi('oth:posterInfo:add')")
@Log(title = "主引流海报信息", businessType = BusinessType.INSERT)
@PostMapping
public ResponseEntity<Integer> add(@RequestBody PosterInfo posterInfo) {
return ResponseEntity.ok(service.insert(posterInfo));
}
@ApiOperation("修改主引流海报信息")
@PreAuthorize("@ss.hasPermi('oth:posterInfo:edit')")
@Log(title = "主引流海报信息", businessType = BusinessType.UPDATE)
@PutMapping
public ResponseEntity<Integer> edit(@RequestBody PosterInfo posterInfo) {
return ResponseEntity.ok(service.update(posterInfo));
}
@ApiOperation("删除主引流海报信息")
@PreAuthorize("@ss.hasPermi('oth:posterInfo:remove')")
@Log(title = "主引流海报信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public ResponseEntity<Integer> remove(@PathVariable Long[] ids) {
return ResponseEntity.ok(service.deleteByIds(ids));
}
}
package com.cyl.manager.oth.controller;
import java.util.List;
import com.cyl.manager.oth.domain.entity.SalesAddressInfo;
import com.cyl.manager.oth.domain.query.SalesAddressInfoQuery;
import com.cyl.manager.oth.service.SalesAddressInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Page;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
/**
* 退货地址信息Controller
*
* @author zcc
* @date 2024-08-01
*/
@Api(description ="退货地址信息接口列表")
@RestController
@RequestMapping("/oth/salesAddressInfo")
public class SalesAddressInfoController extends BaseController {
@Autowired
private SalesAddressInfoService service;
@ApiOperation("查询退货地址信息列表")
@PreAuthorize("@ss.hasPermi('oth:salesAddressInfo:list')")
@PostMapping("/list")
public ResponseEntity<Page<SalesAddressInfo>> list(@RequestBody SalesAddressInfoQuery query, Pageable page) {
List<SalesAddressInfo> list = service.selectList(query, page);
return ResponseEntity.ok(new PageImpl<>(list, page, ((com.github.pagehelper.Page)list).getTotal()));
}
@ApiOperation("获取退货地址信息详细信息")
@PreAuthorize("@ss.hasPermi('oth:salesAddressInfo:query')")
@GetMapping(value = "/{id}")
public ResponseEntity<SalesAddressInfo> getInfo(@PathVariable("id") Long id) {
return ResponseEntity.ok(service.selectById(id));
}
@ApiOperation("新增退货地址信息")
@PreAuthorize("@ss.hasPermi('oth:salesAddressInfo:add')")
@Log(title = "退货地址信息", businessType = BusinessType.INSERT)
@PostMapping
public ResponseEntity<Integer> add(@RequestBody SalesAddressInfo salesAddressInfo) {
return ResponseEntity.ok(service.insert(salesAddressInfo));
}
@ApiOperation("修改退货地址信息")
@PreAuthorize("@ss.hasPermi('oth:salesAddressInfo:edit')")
@Log(title = "退货地址信息", businessType = BusinessType.UPDATE)
@PutMapping
public ResponseEntity<Integer> edit(@RequestBody SalesAddressInfo salesAddressInfo) {
return ResponseEntity.ok(service.update(salesAddressInfo));
}
@ApiOperation("删除退货地址信息")
@PreAuthorize("@ss.hasPermi('oth:salesAddressInfo:remove')")
@Log(title = "退货地址信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public ResponseEntity<Integer> remove(@PathVariable Long[] ids) {
return ResponseEntity.ok(service.deleteByIds(ids));
}
}
package com.cyl.manager.oth.controller;
import java.util.List;
import com.cyl.manager.oth.domain.entity.ScenicSpotInfo;
import com.cyl.manager.oth.domain.query.ScenicSpotInfoQuery;
import com.cyl.manager.oth.service.ScenicSpotInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Page;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.enums.BusinessType;
/**
* 展馆&景点信息Controller
*
* @author zcc
* @date 2024-08-01
*/
@Api(description ="展馆&景点信息接口列表")
@RestController
@RequestMapping("/oth/scenicSpotInfo")
public class ScenicSpotInfoController extends BaseController {
@Autowired
private ScenicSpotInfoService service;
@ApiOperation("查询展馆&景点信息列表")
@PreAuthorize("@ss.hasPermi('oth:scenicSpotInfo:list')")
@PostMapping("/list")
public ResponseEntity<Page<ScenicSpotInfo>> list(@RequestBody ScenicSpotInfoQuery query, Pageable page) {
List<ScenicSpotInfo> list = service.selectList(query, page);
return ResponseEntity.ok(new PageImpl<>(list, page, ((com.github.pagehelper.Page)list).getTotal()));
}
@ApiOperation("获取展馆&景点信息详细信息")
@PreAuthorize("@ss.hasPermi('oth:scenicSpotInfo:query')")
@GetMapping(value = "/{id}")
public ResponseEntity<ScenicSpotInfo> getInfo(@PathVariable("id") Long id) {
return ResponseEntity.ok(service.selectById(id));
}
@ApiOperation("新增展馆&景点信息")
@PreAuthorize("@ss.hasPermi('oth:scenicSpotInfo:add')")
@Log(title = "展馆&景点信息", businessType = BusinessType.INSERT)
@PostMapping
public ResponseEntity<Integer> add(@RequestBody ScenicSpotInfo scenicSpotInfo) {
return ResponseEntity.ok(service.insert(scenicSpotInfo));
}
@ApiOperation("修改展馆&景点信息")
@PreAuthorize("@ss.hasPermi('oth:scenicSpotInfo:edit')")
@Log(title = "展馆&景点信息", businessType = BusinessType.UPDATE)
@PutMapping
public ResponseEntity<Integer> edit(@RequestBody ScenicSpotInfo scenicSpotInfo) {
return ResponseEntity.ok(service.update(scenicSpotInfo));
}
@ApiOperation("删除展馆&景点信息")
@PreAuthorize("@ss.hasPermi('oth:scenicSpotInfo:remove')")
@Log(title = "展馆&景点信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public ResponseEntity<Integer> remove(@PathVariable Long[] ids) {
return ResponseEntity.ok(service.deleteByIds(ids));
}
}
package com.cyl.manager.oth.controller;
import java.util.List;
import com.cyl.manager.oth.domain.entity.SlideshowInfo;
import com.cyl.manager.oth.domain.query.SlideshowInfoQuery;
import com.cyl.manager.oth.service.SlideshowInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Page;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
/**
* 轮播图信息Controller
*
* @author zcc
* @date 2024-08-01
*/
@Api(description ="轮播图信息接口列表")
@RestController
@RequestMapping("/oth/slideshowInfo")
public class SlideshowInfoController extends BaseController {
@Autowired
private SlideshowInfoService service;
@ApiOperation("查询轮播图信息列表")
@PreAuthorize("@ss.hasPermi('oth:slideshowInfo:list')")
@PostMapping("/list")
public ResponseEntity<Page<SlideshowInfo>> list(@RequestBody SlideshowInfoQuery query, Pageable page) {
List<SlideshowInfo> list = service.selectList(query, page);
return ResponseEntity.ok(new PageImpl<>(list, page, ((com.github.pagehelper.Page)list).getTotal()));
}
@ApiOperation("获取轮播图信息详细信息")
@PreAuthorize("@ss.hasPermi('oth:slideshowInfo:query')")
@GetMapping(value = "/{id}")
public ResponseEntity<SlideshowInfo> getInfo(@PathVariable("id") Long id) {
return ResponseEntity.ok(service.selectById(id));
}
@ApiOperation("新增轮播图信息")
@PreAuthorize("@ss.hasPermi('oth:slideshowInfo:add')")
@Log(title = "轮播图信息", businessType = BusinessType.INSERT)
@PostMapping
public ResponseEntity<Integer> add(@RequestBody SlideshowInfo slideshowInfo) {
return ResponseEntity.ok(service.insert(slideshowInfo));
}
@ApiOperation("修改轮播图信息")
@PreAuthorize("@ss.hasPermi('oth:slideshowInfo:edit')")
@Log(title = "轮播图信息", businessType = BusinessType.UPDATE)
@PutMapping
public ResponseEntity<Integer> edit(@RequestBody SlideshowInfo slideshowInfo) {
return ResponseEntity.ok(service.update(slideshowInfo));
}
@ApiOperation("删除轮播图信息")
@PreAuthorize("@ss.hasPermi('oth:slideshowInfo:remove')")
@Log(title = "轮播图信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public ResponseEntity<Integer> remove(@PathVariable Long[] ids) {
return ResponseEntity.ok(service.deleteByIds(ids));
}
}
package com.cyl.manager.oth.domain.entity;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseAudit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
/**
* 协议管理信息对象 agreement_info
*
* @author zcc
*/
@ApiModel(description="协议管理信息对象")
@Data
@TableName("agreement_info")
public class AgreementInfo extends BaseAudit {
private static final long serialVersionUID = 1L;
@ApiModelProperty("主键")
private Long id;
@ApiModelProperty("协议内容")
@Excel(name = "协议内容")
private String content;
@ApiModelProperty("类型(0:用户协议,1:隐私协议,2:购买须知)")
@Excel(name = "类型", readConverterExp = "0=:用户协议,1:隐私协议,2:购买须知")
private String type;
}
package com.cyl.manager.oth.domain.entity;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseAudit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
/**
* 背景图管理信息对象 black_img_info
*
* @author zcc
*/
@ApiModel(description="背景图管理信息对象")
@Data
@TableName("black_img_info")
public class BlackImgInfo extends BaseAudit {
private static final long serialVersionUID = 1L;
@ApiModelProperty("主键")
private Long id;
@ApiModelProperty("背景图url")
@Excel(name = "背景图url")
private String imgUrl;
@ApiModelProperty("类型(0:首页,1:产品分类,2:我的)")
@Excel(name = "类型", readConverterExp = "0=:首页,1:产品分类,2:我的")
private String type;
}
package com.cyl.manager.oth.domain.entity;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseAudit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
/**
* 主引流海报信息对象 poster_info
*
* @author zcc
*/
@ApiModel(description="主引流海报信息对象")
@Data
@TableName("poster_info")
public class PosterInfo extends BaseAudit {
private static final long serialVersionUID = 1L;
@ApiModelProperty("主键")
private Long id;
@ApiModelProperty("海报url")
@Excel(name = "海报url")
private String posterUrl;
@ApiModelProperty("跳转链接")
@Excel(name = "跳转链接")
private String skipLink;
@ApiModelProperty("备注")
@Excel(name = "备注")
private String remark;
}
package com.cyl.manager.oth.domain.entity;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseAudit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
/**
* 退货地址信息对象 sales_address_info
*
* @author zcc
*/
@ApiModel(description="退货地址信息对象")
@Data
@TableName("sales_address_info")
public class SalesAddressInfo extends BaseAudit {
private static final long serialVersionUID = 1L;
@ApiModelProperty("主键")
private Long id;
@ApiModelProperty("收件人姓名")
@Excel(name = "收件人姓名")
private String recipientsName;
@ApiModelProperty("手机号")
@Excel(name = "手机号")
private String phone;
@ApiModelProperty("收货地址(省市区)")
@Excel(name = "收货地址", readConverterExp = "省=市区")
private String address;
@ApiModelProperty("详细地址")
@Excel(name = "详细地址")
private String addressDetail;
}
package com.cyl.manager.oth.domain.entity;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseAudit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
/**
* 展馆&景点信息对象 scenic_spot_info
*
* @author zcc
*/
@ApiModel(description="展馆&景点信息对象")
@Data
@TableName("scenic_spot_info")
public class ScenicSpotInfo extends BaseAudit {
private static final long serialVersionUID = 1L;
@ApiModelProperty("主键")
private Long id;
@ApiModelProperty("展示方式(0:图文展示,1:图片展示)")
@Excel(name = "展示方式", readConverterExp = "0=:图文展示,1:图片展示")
private String showType;
@ApiModelProperty("展馆&景点名称")
@Excel(name = "展馆&景点名称")
private String name;
@ApiModelProperty("显示顺序")
@Excel(name = "显示顺序")
private Integer orderNum;
@ApiModelProperty("背景图url")
@Excel(name = "背景图url")
private String backUrl;
@ApiModelProperty("封面图url")
@Excel(name = "封面图url")
private String coverUrl;
@ApiModelProperty("展馆&景点介绍")
@Excel(name = "展馆&景点介绍")
private String introduce;
@ApiModelProperty("相关产品id")
@Excel(name = "相关产品id")
private Long productId;
@ApiModelProperty("备注")
@Excel(name = "备注")
private String remark;
private String delFlag;
}
package com.cyl.manager.oth.domain.entity;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseAudit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
/**
* 轮播图信息对象 slideshow_info
*
* @author zcc
*/
@ApiModel(description="轮播图信息对象")
@Data
@TableName("slideshow_info")
public class SlideshowInfo extends BaseAudit {
private static final long serialVersionUID = 1L;
@ApiModelProperty("主键")
private Long id;
@ApiModelProperty("轮播图url")
@Excel(name = "轮播图url")
private String imgUrl;
@ApiModelProperty("轮播图名称")
@Excel(name = "轮播图名称")
private String name;
@ApiModelProperty("跳转链接")
@Excel(name = "跳转链接")
private String skipLink;
@ApiModelProperty("显示顺序")
@Excel(name = "显示顺序")
private Integer orderNum;
@ApiModelProperty("删除标志(0代表存在 2代表删除)")
private String delFlag;
}
package com.cyl.manager.oth.domain.query;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* 协议管理信息 查询 对象
*
* @author zcc
*/
@ApiModel(description="协议管理信息 查询 对象")
@Data
public class AgreementInfoQuery {
@ApiModelProperty("类型(0:用户协议,1:隐私协议,2:购买须知)")
private String type;
}
package com.cyl.manager.oth.domain.query;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* 背景图管理信息 查询 对象
*
* @author zcc
*/
@ApiModel(description="背景图管理信息 查询 对象")
@Data
public class BlackImgInfoQuery {
@ApiModelProperty("类型(0:首页,1:产品分类,2:我的) 精确匹配")
private String type;
}
package com.cyl.manager.oth.domain.query;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* 主引流海报信息 查询 对象
*
* @author zcc
*/
@ApiModel(description="主引流海报信息 查询 对象")
@Data
public class PosterInfoQuery {
@ApiModelProperty("海报url 精确匹配")
private String posterUrl;
@ApiModelProperty("跳转链接 精确匹配")
private String skipLink;
}
package com.cyl.manager.oth.domain.query;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* 退货地址信息 查询 对象
*
* @author zcc
*/
@ApiModel(description="退货地址信息 查询 对象")
@Data
public class SalesAddressInfoQuery {
}
package com.cyl.manager.oth.domain.query;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* 展馆&景点信息 查询 对象
*
* @author zcc
*/
@ApiModel(description="展馆&景点信息 查询 对象")
@Data
public class ScenicSpotInfoQuery {
@ApiModelProperty("展示方式(0:图文展示,1:图片展示) 精确匹配")
private String showType;
@ApiModelProperty("展馆&景点名称 精确匹配")
private String nameLike;
@ApiModelProperty("显示顺序 精确匹配")
private Integer orderNum;
@ApiModelProperty("背景图url 精确匹配")
private String backUrl;
@ApiModelProperty("封面图url 精确匹配")
private String coverUrl;
@ApiModelProperty("展馆&景点介绍 精确匹配")
private String introduce;
@ApiModelProperty("相关产品id 精确匹配")
private Long productId;
}
package com.cyl.manager.oth.domain.query;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* 轮播图信息 查询 对象
*
* @author zcc
*/
@ApiModel(description="轮播图信息 查询 对象")
@Data
public class SlideshowInfoQuery {
@ApiModelProperty("轮播图名称 精确匹配")
private String nameLike;
}
package com.cyl.manager.oth.domain.vo;
import com.ruoyi.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseAudit;
import lombok.Data;
/**
* 协议管理信息 数据视图对象
*
* @author zcc
*/
@Data
public class AgreementInfoVO extends BaseAudit {
/** 主键 */
private Long id;
/** 协议内容 */
@Excel(name = "协议内容")
private String content;
/** 类型(0:用户协议,1:隐私协议,2:购买须知) */
@Excel(name = "类型", readConverterExp = "0=:用户协议,1:隐私协议,2:购买须知")
private String type;
}
package com.cyl.manager.oth.domain.vo;
import com.ruoyi.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseAudit;
import lombok.Data;
/**
* 背景图管理信息 数据视图对象
*
* @author zcc
*/
@Data
public class BlackImgInfoVO extends BaseAudit {
/** 主键 */
private Long id;
/** 背景图url */
@Excel(name = "背景图url")
private String imgUrl;
/** 类型(0:首页,1:产品分类,2:我的) */
@Excel(name = "类型", readConverterExp = "0=:首页,1:产品分类,2:我的")
private String type;
}
package com.cyl.manager.oth.domain.vo;
import com.ruoyi.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseAudit;
import lombok.Data;
/**
* 主引流海报信息 数据视图对象
*
* @author zcc
*/
@Data
public class PosterInfoVO extends BaseAudit {
/** 主键 */
private Long id;
/** 海报url */
@Excel(name = "海报url")
private String posterUrl;
/** 跳转链接 */
@Excel(name = "跳转链接")
private String skipLink;
/** 备注 */
@Excel(name = "备注")
private String remark;
}
package com.cyl.manager.oth.domain.vo;
import com.ruoyi.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseAudit;
import lombok.Data;
/**
* 退货地址信息 数据视图对象
*
* @author zcc
*/
@Data
public class SalesAddressInfoVO extends BaseAudit {
/** 主键 */
private Long id;
/** 收件人姓名 */
@Excel(name = "收件人姓名")
private String recipientsName;
/** 手机号 */
@Excel(name = "手机号")
private String phone;
/** 收货地址(省市区) */
@Excel(name = "收货地址", readConverterExp = "省=市区")
private String address;
/** 详细地址 */
@Excel(name = "详细地址")
private String addressDetail;
}
package com.cyl.manager.oth.domain.vo;
import com.ruoyi.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseAudit;
import lombok.Data;
/**
* 展馆&景点信息 数据视图对象
*
* @author zcc
*/
@Data
public class ScenicSpotInfoVO extends BaseAudit {
/** 主键 */
private Long id;
/** 展示方式(0:图文展示,1:图片展示) */
@Excel(name = "展示方式", readConverterExp = "0=:图文展示,1:图片展示")
private String showType;
/** 展馆&景点名称 */
@Excel(name = "展馆&景点名称")
private String name;
/** 显示顺序 */
@Excel(name = "显示顺序")
private Integer orderNum;
/** 背景图url */
@Excel(name = "背景图url")
private String backUrl;
/** 封面图url */
@Excel(name = "封面图url")
private String coverUrl;
/** 展馆&景点介绍 */
@Excel(name = "展馆&景点介绍")
private String introduce;
/** 相关产品id */
@Excel(name = "相关产品id")
private Long productId;
/** 备注 */
@Excel(name = "备注")
private String remark;
}
package com.cyl.manager.oth.domain.vo;
import com.ruoyi.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseAudit;
import lombok.Data;
/**
* 轮播图信息 数据视图对象
*
* @author zcc
*/
@Data
public class SlideshowInfoVO extends BaseAudit {
/** 主键 */
private Long id;
/** 轮播图url */
@Excel(name = "轮播图url")
private String imgUrl;
/** 轮播图名称 */
@Excel(name = "轮播图名称")
private String name;
/** 跳转链接 */
@Excel(name = "跳转链接")
private String skipLink;
/** 显示顺序 */
@Excel(name = "显示顺序")
private Integer orderNum;
}
package com.cyl.manager.oth.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cyl.manager.oth.domain.entity.AgreementInfo;
import org.apache.ibatis.annotations.Param;
/**
* 协议管理信息Mapper接口
*
* @author zcc
*/
public interface AgreementInfoMapper extends BaseMapper<AgreementInfo> {
/**
* 查询协议管理信息列表
*
* @param agreementInfo 协议管理信息
* @return 协议管理信息集合
*/
List<AgreementInfo> selectByEntity(AgreementInfo agreementInfo);
/**
* 批量软删除
* @param ids
* @return
*/
int updateDelFlagByIds(@Param("ids") Long[] ids);
}
package com.cyl.manager.oth.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cyl.manager.oth.domain.entity.BlackImgInfo;
import org.apache.ibatis.annotations.Param;
/**
* 背景图管理信息Mapper接口
*
* @author zcc
*/
public interface BlackImgInfoMapper extends BaseMapper<BlackImgInfo> {
/**
* 查询背景图管理信息列表
*
* @param blackImgInfo 背景图管理信息
* @return 背景图管理信息集合
*/
List<BlackImgInfo> selectByEntity(BlackImgInfo blackImgInfo);
/**
* 批量软删除
* @param ids
* @return
*/
int updateDelFlagByIds(@Param("ids") Long[] ids);
}
package com.cyl.manager.oth.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cyl.manager.oth.domain.entity.PosterInfo;
import org.apache.ibatis.annotations.Param;
/**
* 主引流海报信息Mapper接口
*
* @author zcc
*/
public interface PosterInfoMapper extends BaseMapper<PosterInfo> {
/**
* 查询主引流海报信息列表
*
* @param posterInfo 主引流海报信息
* @return 主引流海报信息集合
*/
List<PosterInfo> selectByEntity(PosterInfo posterInfo);
/**
* 批量软删除
* @param ids
* @return
*/
int updateDelFlagByIds(@Param("ids") Long[] ids);
}
package com.cyl.manager.oth.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cyl.manager.oth.domain.entity.SalesAddressInfo;
import org.apache.ibatis.annotations.Param;
/**
* 退货地址信息Mapper接口
*
* @author zcc
*/
public interface SalesAddressInfoMapper extends BaseMapper<SalesAddressInfo> {
/**
* 查询退货地址信息列表
*
* @param salesAddressInfo 退货地址信息
* @return 退货地址信息集合
*/
List<SalesAddressInfo> selectByEntity(SalesAddressInfo salesAddressInfo);
/**
* 批量软删除
* @param ids
* @return
*/
int updateDelFlagByIds(@Param("ids") Long[] ids);
}
package com.cyl.manager.oth.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cyl.manager.oth.domain.entity.ScenicSpotInfo;
import org.apache.ibatis.annotations.Param;
/**
* 展馆&景点信息Mapper接口
*
* @author zcc
*/
public interface ScenicSpotInfoMapper extends BaseMapper<ScenicSpotInfo> {
/**
* 查询展馆&景点信息列表
*
* @param scenicSpotInfo 展馆&景点信息
* @return 展馆&景点信息集合
*/
List<ScenicSpotInfo> selectByEntity(ScenicSpotInfo scenicSpotInfo);
/**
* 批量软删除
* @param ids
* @return
*/
int updateDelFlagByIds(@Param("ids") Long[] ids);
}
package com.cyl.manager.oth.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cyl.manager.oth.domain.entity.SlideshowInfo;
import org.apache.ibatis.annotations.Param;
/**
* 轮播图信息Mapper接口
*
* @author zcc
*/
public interface SlideshowInfoMapper extends BaseMapper<SlideshowInfo> {
/**
* 查询轮播图信息列表
*
* @param slideshowInfo 轮播图信息
* @return 轮播图信息集合
*/
List<SlideshowInfo> selectByEntity(SlideshowInfo slideshowInfo);
/**
* 批量软删除
* @param ids
* @return
*/
int updateDelFlagByIds(@Param("ids") Long[] ids);
}
package com.cyl.manager.oth.service;
import java.util.Arrays;
import java.util.List;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.cyl.manager.oth.domain.entity.AgreementInfo;
import com.cyl.manager.oth.domain.query.AgreementInfoQuery;
import com.cyl.manager.oth.mapper.AgreementInfoMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
/**
* 协议管理信息Service业务层处理
*
* @author zcc
*/
@Service
public class AgreementInfoService {
@Autowired
private AgreementInfoMapper agreementInfoMapper;
/**
* 查询协议管理信息
*
* @param id 协议管理信息主键
* @return 协议管理信息
*/
public AgreementInfo selectById(Long id) {
return agreementInfoMapper.selectById(id);
}
/**
* 查询协议管理信息列表
*
* @param query 查询条件
* @param page 分页条件
* @return 协议管理信息
*/
public List<AgreementInfo> selectList(AgreementInfoQuery query, Pageable page) {
if (page != null) {
PageHelper.startPage(page.getPageNumber() + 1, page.getPageSize());
}
LambdaQueryWrapper<AgreementInfo> qw = new LambdaQueryWrapper<>();
qw.eq(AgreementInfo::getType, query.getType());
return agreementInfoMapper.selectList(qw);
}
/**
* 新增协议管理信息
*
* @param agreementInfo 协议管理信息
* @return 结果
*/
public int insert(AgreementInfo agreementInfo) {
agreementInfo.setCreateTime(LocalDateTime.now());
return agreementInfoMapper.insert(agreementInfo);
}
/**
* 修改协议管理信息
*
* @param agreementInfo 协议管理信息
* @return 结果
*/
public int update(AgreementInfo agreementInfo) {
return agreementInfoMapper.updateById(agreementInfo);
}
/**
* 批量删除协议管理信息
*
* @param ids 需要删除的协议管理信息主键
* @return 结果
*/
public int deleteByIds(Long[] ids) {
return agreementInfoMapper.updateDelFlagByIds(ids);
}
/**
* 删除协议管理信息信息
*
* @param id 协议管理信息主键
* @return 结果
*/
public int deleteById(Long id) {
Long[] ids = {id};
return agreementInfoMapper.updateDelFlagByIds(ids);
}
}
package com.cyl.manager.oth.service;
import java.util.Arrays;
import java.util.List;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.cyl.manager.oth.domain.entity.BlackImgInfo;
import com.cyl.manager.oth.domain.query.BlackImgInfoQuery;
import com.cyl.manager.oth.mapper.BlackImgInfoMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
/**
* 背景图管理信息Service业务层处理
*
*
* @author zcc
*/
@Service
public class BlackImgInfoService {
@Autowired
private BlackImgInfoMapper blackImgInfoMapper;
/**
* 查询背景图管理信息
*
* @param id 背景图管理信息主键
* @return 背景图管理信息
*/
public BlackImgInfo selectById(Long id) {
return blackImgInfoMapper.selectById(id);
}
/**
* 查询背景图管理信息列表
*
* @param query 查询条件
* @param page 分页条件
* @return 背景图管理信息
*/
public List<BlackImgInfo> selectList(BlackImgInfoQuery query, Pageable page) {
if (page != null) {
PageHelper.startPage(page.getPageNumber() + 1, page.getPageSize());
}
QueryWrapper<BlackImgInfo> qw = new QueryWrapper<>();
String type = query.getType();
if (!StringUtils.isEmpty(type)) {
qw.eq("type", type);
}
return blackImgInfoMapper.selectList(qw);
}
/**
* 新增背景图管理信息
*
* @param blackImgInfo 背景图管理信息
* @return 结果
*/
public int insert(BlackImgInfo blackImgInfo) {
blackImgInfo.setCreateTime(LocalDateTime.now());
return blackImgInfoMapper.insert(blackImgInfo);
}
/**
* 修改背景图管理信息
*
* @param blackImgInfo 背景图管理信息
* @return 结果
*/
public int update(BlackImgInfo blackImgInfo) {
return blackImgInfoMapper.updateById(blackImgInfo);
}
/**
* 批量删除背景图管理信息
*
* @param ids 需要删除的背景图管理信息主键
* @return 结果
*/
public int deleteByIds(Long[] ids) {
return blackImgInfoMapper.updateDelFlagByIds(ids);
}
/**
* 删除背景图管理信息信息
*
* @param id 背景图管理信息主键
* @return 结果
*/
public int deleteById(Long id) {
Long[] ids = {id};
return blackImgInfoMapper.updateDelFlagByIds(ids);
}
}
package com.cyl.manager.oth.service;
import java.util.Arrays;
import java.util.List;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.cyl.manager.oth.domain.entity.PosterInfo;
import com.cyl.manager.oth.domain.query.PosterInfoQuery;
import com.cyl.manager.oth.mapper.PosterInfoMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
/**
* 主引流海报信息Service业务层处理
*
*
* @author zcc
*/
@Service
public class PosterInfoService {
@Autowired
private PosterInfoMapper posterInfoMapper;
/**
* 查询主引流海报信息
*
* @param id 主引流海报信息主键
* @return 主引流海报信息
*/
public PosterInfo selectById(Long id) {
return posterInfoMapper.selectById(id);
}
/**
* 查询主引流海报信息列表
*
* @param query 查询条件
* @param page 分页条件
* @return 主引流海报信息
*/
public List<PosterInfo> selectList(PosterInfoQuery query, Pageable page) {
if (page != null) {
PageHelper.startPage(page.getPageNumber() + 1, page.getPageSize());
}
QueryWrapper<PosterInfo> qw = new QueryWrapper<>();
String posterUrl = query.getPosterUrl();
if (!StringUtils.isEmpty(posterUrl)) {
qw.eq("poster_url", posterUrl);
}
String skipLink = query.getSkipLink();
if (!StringUtils.isEmpty(skipLink)) {
qw.eq("skip_link", skipLink);
}
return posterInfoMapper.selectList(qw);
}
/**
* 新增主引流海报信息
*
* @param posterInfo 主引流海报信息
* @return 结果
*/
public int insert(PosterInfo posterInfo) {
posterInfo.setCreateTime(LocalDateTime.now());
return posterInfoMapper.insert(posterInfo);
}
/**
* 修改主引流海报信息
*
* @param posterInfo 主引流海报信息
* @return 结果
*/
public int update(PosterInfo posterInfo) {
return posterInfoMapper.updateById(posterInfo);
}
/**
* 批量删除主引流海报信息
*
* @param ids 需要删除的主引流海报信息主键
* @return 结果
*/
public int deleteByIds(Long[] ids) {
return posterInfoMapper.updateDelFlagByIds(ids);
}
/**
* 删除主引流海报信息信息
*
* @param id 主引流海报信息主键
* @return 结果
*/
public int deleteById(Long id) {
Long[] ids = {id};
return posterInfoMapper.updateDelFlagByIds(ids);
}
}
package com.cyl.manager.oth.service;
import java.util.Arrays;
import java.util.List;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.cyl.manager.oth.domain.entity.SalesAddressInfo;
import com.cyl.manager.oth.domain.query.SalesAddressInfoQuery;
import com.cyl.manager.oth.mapper.SalesAddressInfoMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
/**
* 退货地址信息Service业务层处理
*
*
* @author zcc
*/
@Service
public class SalesAddressInfoService {
@Autowired
private SalesAddressInfoMapper salesAddressInfoMapper;
/**
* 查询退货地址信息
*
* @param id 退货地址信息主键
* @return 退货地址信息
*/
public SalesAddressInfo selectById(Long id) {
return salesAddressInfoMapper.selectById(id);
}
/**
* 查询退货地址信息列表
*
* @param query 查询条件
* @param page 分页条件
* @return 退货地址信息
*/
public List<SalesAddressInfo> selectList(SalesAddressInfoQuery query, Pageable page) {
if (page != null) {
PageHelper.startPage(page.getPageNumber() + 1, page.getPageSize());
}
QueryWrapper<SalesAddressInfo> qw = new QueryWrapper<>();
return salesAddressInfoMapper.selectList(qw);
}
/**
* 新增退货地址信息
*
* @param salesAddressInfo 退货地址信息
* @return 结果
*/
public int insert(SalesAddressInfo salesAddressInfo) {
salesAddressInfo.setCreateTime(LocalDateTime.now());
return salesAddressInfoMapper.insert(salesAddressInfo);
}
/**
* 修改退货地址信息
*
* @param salesAddressInfo 退货地址信息
* @return 结果
*/
public int update(SalesAddressInfo salesAddressInfo) {
return salesAddressInfoMapper.updateById(salesAddressInfo);
}
/**
* 批量删除退货地址信息
*
* @param ids 需要删除的退货地址信息主键
* @return 结果
*/
public int deleteByIds(Long[] ids) {
return salesAddressInfoMapper.updateDelFlagByIds(ids);
}
/**
* 删除退货地址信息信息
*
* @param id 退货地址信息主键
* @return 结果
*/
public int deleteById(Long id) {
Long[] ids = {id};
return salesAddressInfoMapper.updateDelFlagByIds(ids);
}
}
package com.cyl.manager.oth.service;
import java.util.Arrays;
import java.util.List;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.cyl.manager.oth.domain.entity.ScenicSpotInfo;
import com.cyl.manager.oth.domain.query.ScenicSpotInfoQuery;
import com.cyl.manager.oth.mapper.ScenicSpotInfoMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
/**
* 展馆&景点信息Service业务层处理
*
*
* @author zcc
*/
@Service
public class ScenicSpotInfoService {
@Autowired
private ScenicSpotInfoMapper scenicSpotInfoMapper;
/**
* 查询展馆&景点信息
*
* @param id 展馆&景点信息主键
* @return 展馆&景点信息
*/
public ScenicSpotInfo selectById(Long id) {
return scenicSpotInfoMapper.selectById(id);
}
/**
* 查询展馆&景点信息列表
*
* @param query 查询条件
* @param page 分页条件
* @return 展馆&景点信息
*/
public List<ScenicSpotInfo> selectList(ScenicSpotInfoQuery query, Pageable page) {
if (page != null) {
PageHelper.startPage(page.getPageNumber() + 1, page.getPageSize());
}
QueryWrapper<ScenicSpotInfo> qw = new QueryWrapper<>();
qw.eq("del_flag","0");
String showType = query.getShowType();
if (!StringUtils.isEmpty(showType)) {
qw.eq("show_type", showType);
}
String nameLike = query.getNameLike();
if (!StringUtils.isEmpty(nameLike)) {
qw.like("name", nameLike);
}
Integer orderNum = query.getOrderNum();
if (orderNum != null) {
qw.eq("order_num", orderNum);
}
String backUrl = query.getBackUrl();
if (!StringUtils.isEmpty(backUrl)) {
qw.eq("back_url", backUrl);
}
String coverUrl = query.getCoverUrl();
if (!StringUtils.isEmpty(coverUrl)) {
qw.eq("cover_url", coverUrl);
}
String introduce = query.getIntroduce();
if (!StringUtils.isEmpty(introduce)) {
qw.eq("introduce", introduce);
}
Long productId = query.getProductId();
if (productId != null) {
qw.eq("product_id", productId);
}
return scenicSpotInfoMapper.selectList(qw);
}
/**
* 新增展馆&景点信息
*
* @param scenicSpotInfo 展馆&景点信息
* @return 结果
*/
public int insert(ScenicSpotInfo scenicSpotInfo) {
scenicSpotInfo.setDelFlag("0");
scenicSpotInfo.setCreateTime(LocalDateTime.now());
return scenicSpotInfoMapper.insert(scenicSpotInfo);
}
/**
* 修改展馆&景点信息
*
* @param scenicSpotInfo 展馆&景点信息
* @return 结果
*/
public int update(ScenicSpotInfo scenicSpotInfo) {
return scenicSpotInfoMapper.updateById(scenicSpotInfo);
}
/**
* 批量删除展馆&景点信息
*
* @param ids 需要删除的展馆&景点信息主键
* @return 结果
*/
public int deleteByIds(Long[] ids) {
return scenicSpotInfoMapper.updateDelFlagByIds(ids);
}
/**
* 删除展馆&景点信息信息
*
* @param id 展馆&景点信息主键
* @return 结果
*/
public int deleteById(Long id) {
Long[] ids = {id};
return scenicSpotInfoMapper.updateDelFlagByIds(ids);
}
}
package com.cyl.manager.oth.service;
import java.util.Arrays;
import java.util.List;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.cyl.manager.oth.domain.entity.SlideshowInfo;
import com.cyl.manager.oth.domain.query.SlideshowInfoQuery;
import com.cyl.manager.oth.mapper.SlideshowInfoMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
/**
* 轮播图信息Service业务层处理
*
*
* @author zcc
*/
@Service
public class SlideshowInfoService {
@Autowired
private SlideshowInfoMapper slideshowInfoMapper;
/**
* 查询轮播图信息
*
* @param id 轮播图信息主键
* @return 轮播图信息
*/
public SlideshowInfo selectById(Long id) {
return slideshowInfoMapper.selectById(id);
}
/**
* 查询轮播图信息列表
*
* @param query 查询条件
* @param page 分页条件
* @return 轮播图信息
*/
public List<SlideshowInfo> selectList(SlideshowInfoQuery query, Pageable page) {
if (page != null) {
PageHelper.startPage(page.getPageNumber() + 1, page.getPageSize());
}
QueryWrapper<SlideshowInfo> qw = new QueryWrapper<>();
qw.eq("del_flag",0);
String nameLike = query.getNameLike();
if (!StringUtils.isEmpty(nameLike)) {
qw.like("name", nameLike);
}
return slideshowInfoMapper.selectList(qw);
}
/**
* 新增轮播图信息
*
* @param slideshowInfo 轮播图信息
* @return 结果
*/
public int insert(SlideshowInfo slideshowInfo) {
slideshowInfo.setCreateTime(LocalDateTime.now());
return slideshowInfoMapper.insert(slideshowInfo);
}
/**
* 修改轮播图信息
*
* @param slideshowInfo 轮播图信息
* @return 结果
*/
public int update(SlideshowInfo slideshowInfo) {
return slideshowInfoMapper.updateById(slideshowInfo);
}
/**
* 批量删除轮播图信息
*
* @param ids 需要删除的轮播图信息主键
* @return 结果
*/
public int deleteByIds(Long[] ids) {
return slideshowInfoMapper.updateDelFlagByIds(ids);
}
/**
* 删除轮播图信息信息
*
* @param id 轮播图信息主键
* @return 结果
*/
public int deleteById(Long id) {
Long[] ids = {id};
return slideshowInfoMapper.updateDelFlagByIds(ids);
}
}
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cyl.manager.oth.mapper.AgreementInfoMapper">
<resultMap type="AgreementInfo" id="AgreementInfoResult">
<result property="id" column="id"/>
<result property="content" column="content"/>
<result property="type" column="type"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
</resultMap>
<sql id="selectAgreementInfoVo">
select id, content, type, create_by, create_time, update_by, update_time
from agreement_info
</sql>
<select id="selectByEntity" parameterType="AgreementInfo" resultMap="AgreementInfoResult">
<include refid="selectAgreementInfoVo"/>
<where>
</where>
</select>
<update id="updateDelFlagByIds">
update agreement_info set del_flag=1
<where>
id in
<foreach collection="ids" open="(" item="it" close=")" separator=",">#{it}</foreach>
</where>
</update>
</mapper>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cyl.manager.oth.mapper.BlackImgInfoMapper">
<resultMap type="BlackImgInfo" id="BlackImgInfoResult">
<result property="id" column="id"/>
<result property="imgUrl" column="img_url"/>
<result property="type" column="type"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectBlackImgInfoVo">
select id, img_url, type, create_by, create_time, update_by, update_time from black_img_info
</sql>
<select id="selectByEntity" parameterType="BlackImgInfo" resultMap="BlackImgInfoResult">
<include refid="selectBlackImgInfoVo"/>
<where>
<if test="type != null and type != ''"> and type = #{type}</if>
</where>
</select>
<update id="updateDelFlagByIds">
update black_img_info set del_flag=1
<where>
id in <foreach collection="ids" open="(" item="it" close=")" separator=",">#{it}</foreach>
</where>
</update>
</mapper>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cyl.manager.oth.mapper.PosterInfoMapper">
<resultMap type="PosterInfo" id="PosterInfoResult">
<result property="id" column="id"/>
<result property="posterUrl" column="poster_url"/>
<result property="skipLink" column="skip_link"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
<result property="remark" column="remark"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectPosterInfoVo">
select id, poster_url, skip_link, create_by, create_time, update_by, update_time, remark from poster_info
</sql>
<select id="selectByEntity" parameterType="PosterInfo" resultMap="PosterInfoResult">
<include refid="selectPosterInfoVo"/>
<where>
<if test="posterUrl != null and posterUrl != ''"> and poster_url = #{posterUrl}</if>
<if test="skipLink != null and skipLink != ''"> and skip_link = #{skipLink}</if>
</where>
</select>
<update id="updateDelFlagByIds">
update poster_info set del_flag=1
<where>
id in <foreach collection="ids" open="(" item="it" close=")" separator=",">#{it}</foreach>
</where>
</update>
</mapper>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cyl.manager.oth.mapper.SalesAddressInfoMapper">
<resultMap type="SalesAddressInfo" id="SalesAddressInfoResult">
<result property="id" column="id"/>
<result property="recipientsName" column="recipients_name"/>
<result property="phone" column="phone"/>
<result property="address" column="address"/>
<result property="addressDetail" column="address_detail"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectSalesAddressInfoVo">
select id, recipients_name, phone, address, address_detail, create_by, create_time, update_by, update_time from sales_address_info
</sql>
<select id="selectByEntity" parameterType="SalesAddressInfo" resultMap="SalesAddressInfoResult">
<include refid="selectSalesAddressInfoVo"/>
<where>
</where>
</select>
<update id="updateDelFlagByIds">
update sales_address_info set del_flag=1
<where>
id in <foreach collection="ids" open="(" item="it" close=")" separator=",">#{it}</foreach>
</where>
</update>
</mapper>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cyl.manager.oth.mapper.ScenicSpotInfoMapper">
<resultMap type="ScenicSpotInfo" id="ScenicSpotInfoResult">
<result property="id" column="id"/>
<result property="showType" column="show_type"/>
<result property="name" column="name"/>
<result property="orderNum" column="order_num"/>
<result property="backUrl" column="back_url"/>
<result property="coverUrl" column="cover_url"/>
<result property="introduce" column="introduce"/>
<result property="productId" column="product_id"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
<result property="remark" column="remark"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time" />
<result property="delFlag" column="del_flag" />
</resultMap>
<sql id="selectScenicSpotInfoVo">
select id, show_type, name, order_num, back_url, cover_url, introduce, product_id, create_by, create_time, update_by, update_time, remark from scenic_spot_info
</sql>
<select id="selectByEntity" parameterType="ScenicSpotInfo" resultMap="ScenicSpotInfoResult">
<include refid="selectScenicSpotInfoVo"/>
<where>
<if test="showType != null and showType != ''"> and show_type = #{showType}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="orderNum != null "> and order_num = #{orderNum}</if>
<if test="backUrl != null and backUrl != ''"> and back_url = #{backUrl}</if>
<if test="coverUrl != null and coverUrl != ''"> and cover_url = #{coverUrl}</if>
<if test="introduce != null and introduce != ''"> and introduce = #{introduce}</if>
<if test="productId != null "> and product_id = #{productId}</if>
</where>
</select>
<update id="updateDelFlagByIds">
update scenic_spot_info set del_flag=1
<where>
id in <foreach collection="ids" open="(" item="it" close=")" separator=",">#{it}</foreach>
</where>
</update>
</mapper>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cyl.mall.mapper.SlideshowInfoMapper">
<resultMap type="SlideshowInfo" id="SlideshowInfoResult">
<result property="id" column="id"/>
<result property="imgUrl" column="img_url"/>
<result property="name" column="name"/>
<result property="skipLink" column="skip_link"/>
<result property="orderNum" column="order_num"/>
<result property="delFlag" column="del_flag"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectSlideshowInfoVo">
select id, img_url, name, skip_link, order_num, del_flag, create_by, create_time, update_by, update_time from slideshow_info
</sql>
<select id="selectByEntity" parameterType="SlideshowInfo" resultMap="SlideshowInfoResult">
<include refid="selectSlideshowInfoVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
</where>
</select>
<update id="updateDelFlagByIds">
update slideshow_info set del_flag=1
<where>
id in <foreach collection="ids" open="(" item="it" close=")" separator=",">#{it}</foreach>
</where>
</update>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment