提交修改

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 @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; private Integer categoryId3;
//销售价格传ASC DESC //销售价格传ASC 升序 DESC
private String salePriceSort; private String salePriceSort;
// 按真实销量排序传ASC DESC // 按真实销量排序传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.data.utils.R;
import com.heyu.api.oss.OssFileUploadService; import com.heyu.api.oss.OssFileUploadService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.ObjectUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
@ -19,33 +18,25 @@ import java.util.Map;
@Slf4j @Slf4j
@RestController @RestController
@RequestMapping("/mm/upload") @RequestMapping("/app/upload")
public class UploadOssController { public class AppUploadOssController {
@Autowired @Autowired
private OssFileUploadService ossFileUploadService; private OssFileUploadService ossFileUploadService;
/** /**
*post man 配置 * post man 配置
* https://blog.csdn.net/maowendi/article/details/80537304 * https://blog.csdn.net/maowendi/article/details/80537304
* * <p>
* * <p>
* http://localhost:8888/mm/upload/file * http://localhost:8888/app/upload/file file
*/ */
@PostMapping("/file") @PostMapping("/file")
public R uploadFile(HttpServletRequest request, HttpServletResponse response ,@RequestParam("file") MultipartFile 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"), "");
List<Map<String, Object>> data = ossFileUploadService.uploadImages(new MultipartFile[]{file}); List<Map<String, Object>> data = ossFileUploadService.uploadImages(new MultipartFile[]{file});
return R.ok().setData(data); return R.ok().setData(data);
} }
} }