订单管理 付款统计

手动修改密码的示例 readme.md
This commit is contained in:
2024-03-08 16:38:02 +08:00
parent 2c96f2835a
commit 3b59b87cf5
4 changed files with 14 additions and 82 deletions

View File

@@ -18,6 +18,7 @@ package cn.ysk.cashier.config.security.rest;
import cn.hutool.core.util.IdUtil;
import cn.ysk.cashier.config.security.config.bean.LoginCodeEnum;
import cn.ysk.cashier.config.security.security.TokenProvider;
import cn.ysk.cashier.utils.*;
import com.wf.captcha.base.Captcha;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -37,10 +38,6 @@ import cn.ysk.cashier.config.security.service.dto.JwtUserDto;
import cn.ysk.cashier.config.security.service.OnlineUserService;
import cn.ysk.cashier.pojo.shop.TbShopInfo;
import cn.ysk.cashier.repository.shop.TbShopInfoRepository;
import cn.ysk.cashier.utils.RsaUtils;
import cn.ysk.cashier.utils.RedisUtils;
import cn.ysk.cashier.utils.SecurityUtils;
import cn.ysk.cashier.utils.StringUtils;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;

View File

@@ -54,10 +54,10 @@ public class TbOrderInfoController {
tbOrderInfoService.download(tbOrderInfoService.queryAll(criteria), response);
}
@GetMapping
@PostMapping("/date")
@Log("查询订单")
@ApiOperation("查询订单")
public ResponseEntity<Object> queryTbOrderInfo(TbOrderInfoQueryCriteria criteria, Pageable pageable){
public ResponseEntity<Object> queryTbOrderInfo(@RequestBody TbOrderInfoQueryCriteria criteria, Pageable pageable){
return new ResponseEntity<>(tbOrderInfoService.queryAll(criteria,pageable),HttpStatus.OK);
}

View File

@@ -46,7 +46,6 @@ public class TbProductStockDetailController {
@Log("导出数据")
@ApiOperation("导出数据")
@GetMapping(value = "/download")
@PreAuthorize("@el.check('tbProductStockDetail:list')")
public void exportTbProductStockDetail(HttpServletResponse response, TbProductStockDetailQueryCriteria criteria) throws IOException {
tbProductStockDetailService.download(tbProductStockDetailService.queryAll(criteria), response);
}
@@ -54,7 +53,6 @@ public class TbProductStockDetailController {
@GetMapping
@Log("查询/product/Stock")
@ApiOperation("查询/product/Stock")
@PreAuthorize("@el.check('tbProductStockDetail:list')")
public ResponseEntity<Object> queryTbProductStockDetail(TbProductStockDetailQueryCriteria criteria, Pageable pageable){
return new ResponseEntity<>(tbProductStockDetailService.queryAll(criteria,pageable),HttpStatus.OK);
}
@@ -80,7 +78,6 @@ public class TbProductStockDetailController {
@PostMapping
@Log("新增/product/Stock")
@ApiOperation("新增/product/Stock")
@PreAuthorize("@el.check('tbProductStockDetail:add')")
public ResponseEntity<Object> createTbProductStockDetail(@Validated @RequestBody TbProductStockDetail resources){
return new ResponseEntity<>(tbProductStockDetailService.create(resources),HttpStatus.CREATED);
}
@@ -88,7 +85,6 @@ public class TbProductStockDetailController {
@PutMapping
@Log("修改/product/Stock")
@ApiOperation("修改/product/Stock")
@PreAuthorize("@el.check('tbProductStockDetail:edit')")
public ResponseEntity<Object> updateTbProductStockDetail(@Validated @RequestBody TbProductStockDetail resources){
tbProductStockDetailService.update(resources);
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
@@ -97,7 +93,6 @@ public class TbProductStockDetailController {
@DeleteMapping
@Log("删除/product/Stock")
@ApiOperation("删除/product/Stock")
@PreAuthorize("@el.check('tbProductStockDetail:del')")
public ResponseEntity<Object> deleteTbProductStockDetail(@RequestBody Long[] ids) {
tbProductStockDetailService.deleteAll(ids);
return new ResponseEntity<>(HttpStatus.OK);