提交修改

This commit is contained in:
quyixiao 2025-10-15 22:02:51 +08:00
parent a31991fb0c
commit 387eb33edd
3 changed files with 10 additions and 19 deletions

View File

@ -54,5 +54,5 @@ public interface VvBuyerDao extends BaseMapper<VvBuyerEntity> {
@LIMIT
VvBuyerEntity selectVvBuyerInfo(String buyerName, String buyerWeixin, String buyerPhone);
VvBuyerEntity selectVvBuyerInfo(String buyerName,@OR String buyerWeixin,@OR String buyerPhone);
}

View File

@ -25,7 +25,7 @@ public class AppIndexPageRequest {
private Integer categoryId3;
//销售价格传ASC DESC
//销售价格传ASC 升序 DESC
private String salePriceSort;
// 按真实销量排序传ASC DESC

View File

@ -1,10 +1,9 @@
package com.heyu.api.controller.mm;
package com.heyu.api.controller.vv;
import com.heyu.api.data.utils.R;
import com.heyu.api.oss.OssFileUploadService;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.ObjectUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@ -19,33 +18,25 @@ import java.util.Map;
@Slf4j
@RestController
@RequestMapping("/mm/upload")
public class UploadOssController {
@RequestMapping("/app/upload")
public class AppUploadOssController {
@Autowired
private OssFileUploadService ossFileUploadService;
/**
*post man 配置
* post man 配置
* https://blog.csdn.net/maowendi/article/details/80537304
*
*
* http://localhost:8888/mm/upload/file
* <p>
* <p>
* http://localhost:8888/app/upload/file file
*/
@PostMapping("/file")
public R uploadFile(HttpServletRequest request, HttpServletResponse response ,@RequestParam("file") MultipartFile file) {
String userName = ObjectUtils.toString(request.getParameter("userPhone"), "");
String type = ObjectUtils.toString(request.getParameter("type"), "");
public R uploadFile(HttpServletRequest request, HttpServletResponse response, @RequestParam("file") MultipartFile file) {
List<Map<String, Object>> data = ossFileUploadService.uploadImages(new MultipartFile[]{file});
return R.ok().setData(data);
}
}