Browse Source
Merge branch 'milestone-20250723-wwl' into jihaipeng/feature-20250714184358-抽奖众筹
Merge branch 'milestone-20250723-wwl' into jihaipeng/feature-20250714184358-抽奖众筹
# Conflicts:解决冲突 # lottery-system/lottery-pojo/src/main/java/com/lottery/entity/FundingUser.java # lottery-system/lottery-pojo/src/main/java/com/lottery/vo/WinUserVo.java # lottery-system/lottery-service/src/main/java/com/lottery/admin/service/Impl/AdminUserServiceImpl.javadev
15 changed files with 329 additions and 156 deletions
-
26lottery-system/lottery-pojo/src/main/java/com/lottery/dto/ApiUrlResp.java
-
2lottery-system/lottery-pojo/src/main/java/com/lottery/entity/FundingUser.java
-
2lottery-system/lottery-pojo/src/main/java/com/lottery/entity/WinnerRecord.java
-
20lottery-system/lottery-pojo/src/main/java/com/lottery/vo/FundingUserNewVo.java
-
23lottery-system/lottery-pojo/src/main/java/com/lottery/vo/ImportResultVo.java
-
1lottery-system/lottery-pojo/src/main/java/com/lottery/vo/WinUserVo.java
-
29lottery-system/lottery-service/src/main/java/com/lottery/admin/controller/TongBuController.java
-
12lottery-system/lottery-service/src/main/java/com/lottery/admin/mapper/AdminUserMapper.java
-
10lottery-system/lottery-service/src/main/java/com/lottery/admin/mapper/IFundingMapper.java
-
2lottery-system/lottery-service/src/main/java/com/lottery/admin/service/IFundingService.java
-
245lottery-system/lottery-service/src/main/java/com/lottery/admin/service/Impl/AdminUserDetailServiceImpl.java
-
54lottery-system/lottery-service/src/main/java/com/lottery/admin/service/Impl/AdminUserServiceImpl.java
-
37lottery-system/lottery-service/src/main/java/com/lottery/admin/service/Impl/FundingServiceImpl.java
-
2lottery-system/lottery-service/src/main/java/com/lottery/api/service/Impl/UserDetailServiceImpl.java
-
14lottery-system/pom.xml
@ -0,0 +1,26 @@ |
|||
package com.lottery.dto; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @program: lottery |
|||
* @ClassName ApiUrlResp |
|||
* @description: |
|||
* @author: wwl |
|||
* @create: 2025-07-26 14:12 |
|||
* @Version 1.0 |
|||
**/ |
|||
@Data |
|||
@JsonIgnoreProperties(ignoreUnknown = true) |
|||
public class ApiUrlResp { |
|||
|
|||
private int code; |
|||
private String msg; |
|||
private Data data; |
|||
|
|||
@lombok.Data |
|||
public static class Data { |
|||
private String loc_market; |
|||
} |
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.lottery.vo; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.IdType; |
|||
import com.baomidou.mybatisplus.annotation.TableId; |
|||
import lombok.Data; |
|||
|
|||
import java.time.LocalDateTime; |
|||
|
|||
/** |
|||
* @program: lottery |
|||
* @ClassName FundingUserNewVo |
|||
* @description: |
|||
* @author: wwl |
|||
* @create: 2025-07-26 13:49 |
|||
* @Version 1.0 |
|||
**/ |
|||
@Data |
|||
public class FundingUserNewVo { |
|||
|
|||
} |
@ -0,0 +1,23 @@ |
|||
package com.lottery.vo; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @program: lottery |
|||
* @ClassName ImportResultVo |
|||
* @description: |
|||
* @author: wwl |
|||
* @create: 2025-07-26 17:10 |
|||
* @Version 1.0 |
|||
**/ |
|||
// 导入结果内部类 |
|||
@Data |
|||
public class ImportResultVo { |
|||
private int successCount; |
|||
private int addedCount; |
|||
private int updatedCount; |
|||
private int skipCount; |
|||
private List<String> invalidJwCodes; |
|||
} |
@ -0,0 +1,29 @@ |
|||
package com.lottery.admin.controller; |
|||
|
|||
import com.lottery.admin.service.IFundingService; |
|||
import com.lottery.result.Result; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
/** |
|||
* @program: lottery |
|||
* @ClassName TongBuController |
|||
* @description: |
|||
* @author: wwl |
|||
* @create: 2025-07-26 13:46 |
|||
* @Version 1.0 |
|||
**/ |
|||
@RestController |
|||
@RequestMapping("/admin/funding") |
|||
public class TongBuController { |
|||
|
|||
@Autowired |
|||
private IFundingService fundingService; |
|||
|
|||
@PostMapping("/flush") |
|||
public boolean flushData() throws Exception { |
|||
return fundingService.flushData(); |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue