Merge branch 'master' into cc_20251028_decoration
# Conflicts: # coolstore-partner-common/src/main/java/com/cool/store/enums/ErrorCodeEnum.java
This commit is contained in:
@@ -28,8 +28,9 @@ public class BigRegionController {
|
||||
|
||||
@PostMapping("/queryAllBigRegion")
|
||||
@ApiOperation("获取所有可选择的大区")
|
||||
public ResponseResult<List<BigRegionDTO>> queryContentInfo(@RequestParam(required = false) String keyword) {
|
||||
return ResponseResult.success(bigRegionService.queryAllBigRegion(keyword));
|
||||
public ResponseResult<List<BigRegionDTO>> queryContentInfo(@RequestParam(required = false) String keyword,
|
||||
@RequestParam(required = false) Integer joinBrand) {
|
||||
return ResponseResult.success(bigRegionService.queryAllBigRegion(keyword, joinBrand));
|
||||
}
|
||||
|
||||
@PostMapping("/queryBigRegion")
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.cool.store.controller.webb;
|
||||
|
||||
import com.cool.store.request.recipe.RevenueDataRequest;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.ThirdFoodService;
|
||||
import com.cool.store.vo.recipe.RevenueDataVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 数据看板 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author wangff
|
||||
* @since 2025/10/30
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pc/databoard")
|
||||
@Api(tags = "数据看板")
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
public class DataBoardController {
|
||||
private final ThirdFoodService thirdFoodService;
|
||||
|
||||
@ApiOperation("门店营收")
|
||||
@PostMapping("/revenueData")
|
||||
public ResponseResult<List<RevenueDataVO>> getStoreRevenueData(@RequestBody @Valid RevenueDataRequest request) {
|
||||
return ResponseResult.success(thirdFoodService.getRevenueData(request));
|
||||
}
|
||||
}
|
||||
@@ -8,6 +8,7 @@ import com.cool.store.dto.FoodTokenDTO;
|
||||
import com.cool.store.dto.GetAccessTokenDTO;
|
||||
import com.cool.store.dto.HqtTokenDTO;
|
||||
import com.cool.store.dto.ModifyPasswordDTO;
|
||||
import com.cool.store.dto.huoma.*;
|
||||
import com.cool.store.dto.wechat.CallbackMessageDTO;
|
||||
import com.cool.store.dto.wechat.WechatTemplateMessageDTO;
|
||||
import com.cool.store.entity.*;
|
||||
@@ -41,6 +42,8 @@ import com.cool.store.service.impl.CommonService;
|
||||
import com.cool.store.service.impl.OrderSysInfoServiceImpl;
|
||||
import com.cool.store.service.impl.UserAuthMappingServiceImpl;
|
||||
import com.cool.store.service.wechat.WechatTemplateService;
|
||||
import com.cool.store.service.xinfa.XinFaBusinessService;
|
||||
import com.cool.store.service.xinfa.XinFaDeviceService;
|
||||
import com.cool.store.utils.CoolDateUtils;
|
||||
import com.cool.store.utils.RedisConstantUtil;
|
||||
import com.cool.store.utils.RedisUtilPool;
|
||||
@@ -605,5 +608,34 @@ public class PCTestController {
|
||||
return ApiResponse.success(true);
|
||||
}
|
||||
|
||||
@Resource
|
||||
XinFaBusinessService xinFaBusinessService;
|
||||
@ApiOperation("测试门店设备信息")
|
||||
@GetMapping("/getStoreXinFaDeviceDetail")
|
||||
public ResponseResult<List<StoreXinFaDeviceDetail>> getStoreXinFaDeviceDetail(@RequestParam("storeNum")String storeNum) {
|
||||
return ResponseResult.success(xinFaBusinessService.getStoreXinFaDeviceDetail(storeNum));
|
||||
}
|
||||
|
||||
@ApiOperation("测试标签信息")
|
||||
@GetMapping("/getAccountAllTags")
|
||||
public ResponseResult<List<TagDetailDTO>> getAccountAllTags(@RequestParam("storeNum")String storeNum,
|
||||
@RequestParam("deviceName")String deviceName) {
|
||||
List<TagDetailDTO> accountAllTags = xinFaBusinessService.getAccountAllTags(storeNum,deviceName);
|
||||
return ResponseResult.success(accountAllTags);
|
||||
}
|
||||
|
||||
@ApiOperation("获取节目列表")
|
||||
@PostMapping("/getProgramList")
|
||||
public ResponseResult<List<ProgramResponseDTO>> getProgramList(@RequestBody ProgramReqDTO programReqDTO) {
|
||||
List<ProgramResponseDTO> accountAllTags = xinFaBusinessService.getProgramList(programReqDTO);
|
||||
return ResponseResult.success(accountAllTags);
|
||||
}
|
||||
|
||||
@ApiOperation("发布/上架")
|
||||
@PostMapping("/publishProgram")
|
||||
public ResponseResult<Boolean> publishProgram(@RequestBody PublishDTO publishDTO) {
|
||||
Boolean publishStatus = xinFaBusinessService.publishProgram(publishDTO);
|
||||
return ResponseResult.success(publishStatus);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.cool.store.controller.webc;
|
||||
|
||||
import com.cool.store.dto.recipe.RecipeSpLaunchDTO;
|
||||
import com.cool.store.request.recipe.RevenueDataRequest;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.ThirdFoodService;
|
||||
import com.cool.store.vo.recipe.RevenueDataVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 数据看板 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author wangff
|
||||
* @since 2025/10/30
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/mini/databoard")
|
||||
@Api(tags = "Mini数据看板")
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
public class MiniDataBoardController {
|
||||
private final ThirdFoodService thirdFoodService;
|
||||
|
||||
@ApiOperation("门店营收")
|
||||
@PostMapping("/revenueData")
|
||||
public ResponseResult<List<RevenueDataVO>> getStoreRevenueData(@RequestBody @Valid RevenueDataRequest request) {
|
||||
return ResponseResult.success(thirdFoodService.getRevenueData(request));
|
||||
}
|
||||
|
||||
@ApiOperation("查询菜品服务包上新数据")
|
||||
@PostMapping("/recipeSpLaunch")
|
||||
public ResponseResult<RecipeSpLaunchDTO> getRecipeSpLaunchData(@RequestBody @Valid RevenueDataRequest request) {
|
||||
return ResponseResult.success(thirdFoodService.getRecipeServiceLaunch(request));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.cool.store.controller.webc;
|
||||
|
||||
import com.cool.store.dto.huoma.*;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.xinfa.XinFaBusinessService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/11/5 17:49
|
||||
* @Version 1.0
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/mini/xinfa")
|
||||
@Api(tags = "小程序-信发")
|
||||
@Slf4j
|
||||
public class MiniXinFaController {
|
||||
|
||||
@Resource
|
||||
XinFaBusinessService xinFaBusinessService;
|
||||
@ApiOperation("测试门店设备信息")
|
||||
@GetMapping("/getStoreXinFaDeviceDetail")
|
||||
public ResponseResult<List<StoreXinFaDeviceDetail>> getStoreXinFaDeviceDetail(@RequestParam("storeNum")String storeNum) {
|
||||
return ResponseResult.success(xinFaBusinessService.getStoreXinFaDeviceDetail(storeNum));
|
||||
}
|
||||
|
||||
@ApiOperation("测试标签信息")
|
||||
@PostMapping("/getAccountAllTags")
|
||||
public ResponseResult<List<TagDetailDTO>> getAccountAllTags(@RequestBody AccountTagDTO tagDTO) {
|
||||
List<TagDetailDTO> accountAllTags = xinFaBusinessService.getAccountAllTags(tagDTO.getStoreNum(), tagDTO.getDeviceName());
|
||||
return ResponseResult.success(accountAllTags);
|
||||
}
|
||||
|
||||
@ApiOperation("获取节目列表")
|
||||
@PostMapping("/getProgramList")
|
||||
public ResponseResult<List<ProgramResponseDTO>> getProgramList(@RequestBody ProgramReqDTO programReqDTO) {
|
||||
List<ProgramResponseDTO> accountAllTags = xinFaBusinessService.getProgramList(programReqDTO);
|
||||
return ResponseResult.success(accountAllTags);
|
||||
}
|
||||
|
||||
@ApiOperation("发布/上架")
|
||||
@PostMapping("/publishProgram")
|
||||
public ResponseResult<Boolean> publishProgram(@RequestBody PublishDTO publishDTO) {
|
||||
Boolean publishStatus = xinFaBusinessService.publishProgram(publishDTO);
|
||||
return ResponseResult.success(publishStatus);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -20,6 +20,8 @@ import com.cool.store.job.XxlJobHandler;
|
||||
import com.cool.store.mapper.HyOpenAreaInfoMapper;
|
||||
import com.cool.store.request.ShopListSuccessOpenRequest;
|
||||
import com.cool.store.request.xfsgFirstOrderListRequest;
|
||||
import com.cool.store.request.xgj.FranchiseFeeCallBackRequest;
|
||||
import com.cool.store.request.xgj.ReceiptCallBackRequest;
|
||||
import com.cool.store.response.MiniShopsResponse;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.response.caipin.StoreUserResponse;
|
||||
@@ -39,6 +41,7 @@ import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalTime;
|
||||
import java.time.temporal.ChronoUnit;
|
||||
@@ -85,6 +88,27 @@ public class TestController {
|
||||
ThirdFoodService thirdFoodService;
|
||||
@Autowired
|
||||
StoreService storeService;
|
||||
@Resource
|
||||
LinePayDAO linePayDAO;
|
||||
@Resource
|
||||
OpenApiService openApiService;
|
||||
|
||||
@PostMapping("/testXgjCallback")
|
||||
public ResponseResult<Boolean> testXgjCallback(Long linePayId) {
|
||||
LinePayDO linePayDO = linePayDAO.getById(linePayId);
|
||||
ReceiptCallBackRequest receiptRequest = new ReceiptCallBackRequest();
|
||||
receiptRequest.setReceiptId(linePayDO.getPaymentReceiptCode());
|
||||
receiptRequest.setClaimStatus(1);
|
||||
openApiService.changeReceiptStatus(receiptRequest);
|
||||
FranchiseFeeCallBackRequest franchiseRequest = new FranchiseFeeCallBackRequest();
|
||||
franchiseRequest.setShopId(linePayDO.getShopId());
|
||||
franchiseRequest.setPayableFee(linePayDO.getAmount());
|
||||
franchiseRequest.setPaidFees(linePayDO.getAmount());
|
||||
franchiseRequest.setRemainingFee(BigDecimal.ZERO);
|
||||
franchiseRequest.setPaymentStatus(2);
|
||||
openApiService.changePaymentStatus(franchiseRequest);
|
||||
return ResponseResult.success(true);
|
||||
}
|
||||
|
||||
@PostMapping("/getFirstOrders")
|
||||
public ResponseResult<xfsgFirstOderListResponse> getFirstOrders(@RequestBody xfsgFirstOrderListRequest storeCodeList) {
|
||||
|
||||
@@ -141,4 +141,19 @@ hqt.token.client.secret=rYe9Cwug5LwQNIBJAiW0a7weF9CAhYCD
|
||||
wechat.mp.appId=wx4a18ef8bb41aa55c
|
||||
wechat.mp.appSecret=793904b58f4ecdead3bbe4312c5f5c45
|
||||
#xiaochengxu appid
|
||||
wechat.miniapp.appId=wxd77a2761c1911ee1
|
||||
wechat.miniapp.appId=wxd77a2761c1911ee1
|
||||
|
||||
huoMa.token.url = https://www.huoMayunping.com/api/SAASLogin/merchant
|
||||
huoMa.id.url = https://www.huomayunping.com/api/reportCenter/executeSql
|
||||
huoMa.store.device.detail.url = https://www.huomayunping.com/api/terminal/search
|
||||
huoMa.get.point.terminal.url = https://www.huoMayunping.com/api/terminal/getPointTerminalInfos
|
||||
huoMa.get.tag.url = https://www.huomayunping.com/api/tag/search
|
||||
huoMa.get.program.url = https://www.huomayunping.com/api/program/search
|
||||
huoMa.get.publish.url = https://www.huomayunping.com/api/channelPublish/target/v2/quick-publish
|
||||
huoMa.direct.stores.account = 18375320931
|
||||
huoMa.direct.stores.password = Huoma@123456.
|
||||
huoMa.franchise.stores.account = 13345565081
|
||||
huoMa.franchise.stores.password = Huoma@123456.
|
||||
huoMa.restaurant.stores.account = 15167817007
|
||||
huoMa.restaurant.stores.password = Huoma@123456.
|
||||
|
||||
|
||||
@@ -144,4 +144,18 @@ hqt.token.client.secret=rYe9Cwug5LwQNIBJAiW0a7weF9CAhYCD
|
||||
wechat.mp.appId=wx4a18ef8bb41aa55c
|
||||
wechat.mp.appSecret=793904b58f4ecdead3bbe4312c5f5c45
|
||||
#xiaochengxu appid
|
||||
wechat.miniapp.appId=wxd77a2761c1911ee1
|
||||
wechat.miniapp.appId=wxd77a2761c1911ee1
|
||||
|
||||
huoMa.token.url = https://www.huoMayunping.com/api/SAASLogin/merchant
|
||||
huoMa.id.url = https://www.huomayunping.com/api/reportCenter/executeSql
|
||||
huoMa.store.device.detail.url = https://www.huomayunping.com/api/terminal/search
|
||||
huoMa.get.point.terminal.url = https://www.huoMayunping.com/api/terminal/getPointTerminalInfos
|
||||
huoMa.get.tag.url = https://www.huomayunping.com/api/tag/search
|
||||
huoMa.get.program.url = https://www.huomayunping.com/api/program/search
|
||||
huoMa.get.publish.url = https://www.huomayunping.com/api/channelPublish/target/v2/quick-publish
|
||||
huoMa.direct.stores.account = 18375320931
|
||||
huoMa.direct.stores.password = Huoma@123456.
|
||||
huoMa.franchise.stores.account = 13345565081
|
||||
huoMa.franchise.stores.password = Huoma@123456.
|
||||
huoMa.restaurant.stores.account = 15167817007
|
||||
huoMa.restaurant.stores.password = Huoma@123456.
|
||||
@@ -154,3 +154,18 @@ wechat.miniapp.appId=wxd77a2761c1911ee1
|
||||
|
||||
zx.iot.appId=p-ts3PhNyf
|
||||
zx.iot.appSecret=X4cVmfxM+
|
||||
|
||||
|
||||
huoMa.token.url = https://www.huoMayunping.com/api/SAASLogin/merchant
|
||||
huoMa.id.url = https://www.huomayunping.com/api/reportCenter/executeSql
|
||||
huoMa.store.device.detail.url = https://www.huomayunping.com/api/terminal/search
|
||||
huoMa.get.point.terminal.url = https://www.huoMayunping.com/api/terminal/getPointTerminalInfos
|
||||
huoMa.get.tag.url = https://www.huomayunping.com/api/tag/search
|
||||
huoMa.get.program.url = https://www.huomayunping.com/api/program/search
|
||||
huoMa.get.publish.url = https://www.huomayunping.com/api/channelPublish/target/v2/quick-publish
|
||||
huoMa.direct.stores.account = 18375320931
|
||||
huoMa.direct.stores.password = Huoma@123456.
|
||||
huoMa.franchise.stores.account = 13345565081
|
||||
huoMa.franchise.stores.password = Huoma@123456.
|
||||
huoMa.restaurant.stores.account = 15167817007
|
||||
huoMa.restaurant.stores.password = Huoma@123456.
|
||||
|
||||
Reference in New Issue
Block a user