Commit 2a11f9c0 by 杨卫

feat:1047852:我的事项,添加事项

1 parent d1ccff21
...@@ -225,9 +225,7 @@ public class BiAnalyseBackgroundController { ...@@ -225,9 +225,7 @@ public class BiAnalyseBackgroundController {
@ServiceMethod(method = "dj.api.script.province.organization.list", needInSession = NeedInSessionType.YES) @ServiceMethod(method = "dj.api.script.province.organization.list", needInSession = NeedInSessionType.YES)
public RopResponse<RpcPagination<ProvinceOrganizationResp>> provinceOrganizationList(ProvinceOrganizationQryPageReq request) { public RopResponse<RpcPagination<ProvinceOrganizationResp>> provinceOrganizationList(ProvinceOrganizationQryPageReq request) {
try { try {
RpcPagination<?> rpcPagination = new RpcPagination<>(); RpcPagination<?> rpcPagination = CommonUtil.getRpcPagination(MerchantProfitRecordQryDTO.class);
rpcPagination.setPageNum(request.getPageNum());
rpcPagination.setPageSize(request.getPageSize());
RpcResponse<RpcPagination<ProvinceOrganizationDTO>> response = biAnalyseBackgroundRemote.provinceOrganizationList(rpcPagination); RpcResponse<RpcPagination<ProvinceOrganizationDTO>> response = biAnalyseBackgroundRemote.provinceOrganizationList(rpcPagination);
if (response.isFailed()) { if (response.isFailed()) {
...@@ -299,11 +297,11 @@ public class BiAnalyseBackgroundController { ...@@ -299,11 +297,11 @@ public class BiAnalyseBackgroundController {
.orElseThrow(() -> new RpcServiceException(BiErrorEnum.LOGIN_USER_NOT_EXIST)); .orElseThrow(() -> new RpcServiceException(BiErrorEnum.LOGIN_USER_NOT_EXIST));
String userName = loginUserDTO.getUserName(); String userName = loginUserDTO.getUserName();
String loginAccount = loginUserDTO.getLoginAccout(); String uuid = loginUserDTO.getUuid();
MerchantBiMatterHandleDTO merchantBiMatterHandleDTO = BeanUtil.copyProperties(request, MerchantBiMatterHandleDTO.class); MerchantBiMatterHandleDTO merchantBiMatterHandleDTO = BeanUtil.copyProperties(request, MerchantBiMatterHandleDTO.class);
merchantBiMatterHandleDTO.setOperator(userName); merchantBiMatterHandleDTO.setOperator(userName);
merchantBiMatterHandleDTO.setOperatorUniqueKey(loginAccount); merchantBiMatterHandleDTO.setOperatorUniqueKey(uuid);
RpcResponse<Boolean> rpcResponse = biAnalyseBackgroundRemote.merchantBiMatterHandle(merchantBiMatterHandleDTO); RpcResponse<Boolean> rpcResponse = biAnalyseBackgroundRemote.merchantBiMatterHandle(merchantBiMatterHandleDTO);
if (rpcResponse.isFailed()) { if (rpcResponse.isFailed()) {
throw new RpcServiceException(rpcResponse.getError(), rpcResponse.getMessage()); throw new RpcServiceException(rpcResponse.getError(), rpcResponse.getMessage());
......
...@@ -15,8 +15,10 @@ public class BiAnalyseBackgroundControllerTest extends BaseControllerTest { ...@@ -15,8 +15,10 @@ public class BiAnalyseBackgroundControllerTest extends BaseControllerTest {
public void testMerchantProfitRecordPage() throws Exception { public void testMerchantProfitRecordPage() throws Exception {
MultiValueMap<String, String> params = new LinkedMultiValueMap<String, String>(); MultiValueMap<String, String> params = new LinkedMultiValueMap<String, String>();
params.add("v", "1.0.0"); params.add("v", "1.0.0");
params.add("monthYear", "2025-10");
params.add("method", "dj.api.script.merchant.profit.record.page"); params.add("method", "dj.api.script.merchant.profit.record.page");
params.add("sessionId", "9551b3d6-4486-45ee-9141-ee91f3de604b"); params.add("currentPage", "5");
params.add("sessionId", "a03ee900-f6ac-47c9-8f04-3019a6ea331c");
System.out.println(post(params)); System.out.println(post(params));
} }
...@@ -28,9 +30,9 @@ public class BiAnalyseBackgroundControllerTest extends BaseControllerTest { ...@@ -28,9 +30,9 @@ public class BiAnalyseBackgroundControllerTest extends BaseControllerTest {
params.add("method", "dj.api.script.merchant.profit.record.add"); params.add("method", "dj.api.script.merchant.profit.record.add");
params.add("storeId", "44190381"); params.add("storeId", "44190381");
params.add("businessType", "2"); params.add("businessType", "2");
params.add("monthYear", "202510"); params.add("monthYear", "2024-10");
params.add("profitAmount", "123.23"); params.add("profitAmount", "123.23");
params.add("sessionId", "e5536def-32aa-4de5-bce6-94ee77456afc"); params.add("sessionId", "a03ee900-f6ac-47c9-8f04-3019a6ea331c");
System.out.println(post(params)); System.out.println(post(params));
} }
...@@ -63,8 +65,8 @@ public class BiAnalyseBackgroundControllerTest extends BaseControllerTest { ...@@ -63,8 +65,8 @@ public class BiAnalyseBackgroundControllerTest extends BaseControllerTest {
params.add("v", "1.0.0"); params.add("v", "1.0.0");
params.add("method", "dj.api.script.merchant.bi.matter.handle"); params.add("method", "dj.api.script.merchant.bi.matter.handle");
params.add("id", "2"); params.add("id", "2");
params.add("handlingStrategy", "giao"); params.add("handlingStrategy", "giaogiaogiaogiao,hahahaha,nika lufu");
params.add("sessionId", "e5536def-32aa-4de5-bce6-94ee77456afc"); params.add("sessionId", "6daef60d-58aa-4503-a4b8-d7d55785f452");
System.out.println(post(params)); System.out.println(post(params));
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!