Showing
4 changed files
with
0 additions
and
66 deletions
@@ -26,8 +26,6 @@ public interface SellerWalletMapper { | @@ -26,8 +26,6 @@ public interface SellerWalletMapper { | ||
26 | 26 | ||
27 | SellerWallet selectByUidNType(SellerWallet condition); | 27 | SellerWallet selectByUidNType(SellerWallet condition); |
28 | 28 | ||
29 | - void updateMoneyForTest(); | ||
30 | - | ||
31 | int changeAllMoneyToAvail(@Param("uid") Integer uid, @Param("updateTime") Integer updateTime); | 29 | int changeAllMoneyToAvail(@Param("uid") Integer uid, @Param("updateTime") Integer updateTime); |
32 | 30 | ||
33 | int rejoin(@Param("uid") Integer uid, @Param("amount") BigDecimal amount | 31 | int rejoin(@Param("uid") Integer uid, @Param("amount") BigDecimal amount |
@@ -180,8 +180,4 @@ | @@ -180,8 +180,4 @@ | ||
180 | update seller_wallet set amount = amount + lock_amount ,lock_amount = 0,update_time = #{updateTime,jdbcType=INTEGER} where uid = #{uid} | 180 | update seller_wallet set amount = amount + lock_amount ,lock_amount = 0,update_time = #{updateTime,jdbcType=INTEGER} where uid = #{uid} |
181 | </update> | 181 | </update> |
182 | 182 | ||
183 | - <update id="updateMoneyForTest"> | ||
184 | - update seller_wallet set amount = amount + 10 where id = 3 | ||
185 | - </update> | ||
186 | - | ||
187 | </mapper> | 183 | </mapper> |
product/src/main/java/com/yohoufo/product/controller/test/ExampleResultFactory.java
deleted
100644 → 0
1 | -package com.yohoufo.product.controller.test; | ||
2 | - | ||
3 | -public class ExampleResultFactory { | ||
4 | - | ||
5 | - public static Object createData() { | ||
6 | - String methodName = Thread.currentThread().getStackTrace()[2].getMethodName(); | ||
7 | - switch (methodName) { | ||
8 | - case "queryProductDetailBySKN": | ||
9 | - return 1; | ||
10 | - default: | ||
11 | - return null; | ||
12 | - } | ||
13 | - } | ||
14 | - | ||
15 | -} |
product/src/main/java/com/yohoufo/product/controller/test/TestSynDbController.java
deleted
100644 → 0
1 | -package com.yohoufo.product.controller.test; | ||
2 | - | ||
3 | -import com.yoho.tools.docs.ApiOperation; | ||
4 | -import com.yohoufo.common.ApiResponse; | ||
5 | -import com.yohoufo.common.annotation.IgnoreSession; | ||
6 | -import com.yohoufo.common.annotation.IgnoreSignature; | ||
7 | -import com.yohoufo.dal.order.SellerWalletMapper; | ||
8 | -import org.slf4j.Logger; | ||
9 | -import org.slf4j.LoggerFactory; | ||
10 | -import org.springframework.beans.factory.annotation.Autowired; | ||
11 | -import org.springframework.web.bind.annotation.RequestMapping; | ||
12 | -import org.springframework.web.bind.annotation.RestController; | ||
13 | - | ||
14 | -import java.util.concurrent.atomic.AtomicInteger; | ||
15 | - | ||
16 | -/** | ||
17 | - * Created by li.ma on 2018/11/21. | ||
18 | - */ | ||
19 | -@RestController | ||
20 | -public class TestSynDbController { | ||
21 | - | ||
22 | - private final Logger LOG = LoggerFactory.getLogger(TestSynDbController.class); | ||
23 | - | ||
24 | - @Autowired | ||
25 | - private SellerWalletMapper sellerWalletMapperl; | ||
26 | - | ||
27 | - private AtomicInteger count = new AtomicInteger(0); | ||
28 | - | ||
29 | - @ApiOperation(name = "ufo.product.testSynDb", desc="测试") | ||
30 | - @IgnoreSignature | ||
31 | - @IgnoreSession | ||
32 | - @RequestMapping(params = "method=ufo.product.testSynDb") | ||
33 | - public ApiResponse testSynDb() { | ||
34 | - | ||
35 | - try { | ||
36 | - sellerWalletMapperl.updateMoneyForTest(); | ||
37 | - count.addAndGet(1); | ||
38 | - }catch (Throwable e) { | ||
39 | - LOG.error("1999922222222344"); | ||
40 | - } | ||
41 | - | ||
42 | - LOG.info("testSynDb count is {}", count.get()); | ||
43 | - return new ApiResponse.ApiResponseBuilder().code(200).message("热搜词列表").build(); | ||
44 | - } | ||
45 | -} |
-
Please register or login to post a comment