Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design code for prepayment business #117

Merged
merged 13 commits into from
Oct 26, 2023
774 changes: 0 additions & 774 deletions Cargo.lock

This file was deleted.

6 changes: 0 additions & 6 deletions Cargo.toml

This file was deleted.

3 changes: 3 additions & 0 deletions air/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
tokio = "1.33.0"
tensorflow = { version = "0.21.0", features = ["tensorflow_gpu"] }
tensorflow-sys = "0.24.0"
10 changes: 0 additions & 10 deletions airpi/Cargo.toml

This file was deleted.

12 changes: 0 additions & 12 deletions airpi/src/dataset/lib.rs

This file was deleted.

15 changes: 0 additions & 15 deletions airpi/src/main.rs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ public WarehouseController(WarehouseService warehouseService) {
this.warehouseService = warehouseService;
}

@PostMapping("list")
public Response<Page<WarehouseVO>> getWarehouseList(@RequestBody QueryWarehouseDTO warehouseDTO) {
return warehouseService.getWarehouseList(warehouseDTO);
@PostMapping("pageList")
public Response<Page<WarehouseVO>> getWarehousePageList(@RequestBody QueryWarehouseDTO warehouseDTO) {
return warehouseService.getWarehousePageList(warehouseDTO);
}

@GetMapping("getWarehouse")
Expand All @@ -56,4 +56,9 @@ public Response<String> deleteWarehouse(@RequestParam("ids") List<Long> ids) {
public Response<String> updateStatus(@RequestParam("ids") List<Long> ids, @RequestParam("status") Integer status) {
return warehouseService.updateBatchStatus(ids, status);
}

@GetMapping("list")
public Response<List<WarehouseVO>> getWarehouseList() {
return warehouseService.getWarehouseList();
}
}
12 changes: 9 additions & 3 deletions api/src/main/kotlin/com/wansensoft/api/basic/MemberController.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import com.wansensoft.utils.response.Response
import com.wansensoft.vo.basic.MemberVO
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.DeleteMapping
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import org.springframework.web.bind.annotation.RequestBody
Expand All @@ -29,9 +30,9 @@ import org.springframework.web.bind.annotation.RequestParam
@RequestMapping("/basic/member")
class MemberController (private val memberService: MemberService){

@PostMapping("/list")
fun getMemberList(@RequestBody memberDTO: QueryMemberDTO) : Response<Page<MemberVO>> {
return memberService.getMemberList(memberDTO)
@PostMapping("/pageList")
fun getMemberPageList(@RequestBody memberDTO: QueryMemberDTO) : Response<Page<MemberVO>> {
return memberService.getMemberPageList(memberDTO)
}

@PostMapping("/addOrUpdate")
Expand All @@ -48,4 +49,9 @@ class MemberController (private val memberService: MemberService){
fun updateMemberStatus(@RequestParam("ids") ids: List<Long>, @RequestParam("status") status: Int) : Response<String> {
return memberService.updateMemberStatus(ids, status)
}

@GetMapping("/list")
fun getMemberList() : Response<List<MemberVO>> {
return memberService.getMemberList()
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Copyright 2023-2033 WanSen AI Team, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://opensource.wansenai.com/apache2.0/
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
* OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.wansensoft.api.financial

class AdvanceChargeController {

}
19 changes: 19 additions & 0 deletions dao/src/main/java/com/wansensoft/mappers/system/SysFileMapper.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright 2023-2033 WanSen AI Team, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://opensource.wansenai.com/apache2.0/
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
* OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.wansensoft.mappers.system;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wansensoft.entities.system.SysFile;

public interface SysFileMapper extends BaseMapper<SysFile> {
}
5 changes: 5 additions & 0 deletions dao/src/main/resources/mapper_xml/SysFileMapper.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.wansensoft.mappers.system.SysFileMapper">

</mapper>
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@
*/
package com.wansensoft.entities.financial;

import java.io.Serial;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

import lombok.*;
import lombok.experimental.Accessors;

/**
Expand All @@ -28,12 +29,16 @@
* </p>
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("financial_main")
public class FinancialMain implements Serializable {

private static final long serialVersionUID = 1L;
@Serial
private static final long serialVersionUID = 71651561123L;

/**
* 主键
Expand Down Expand Up @@ -89,7 +94,7 @@ public class FinancialMain implements Serializable {
/**
* 单据来源,0-pc,1-手机
*/
private Boolean receiptSource;
private Integer receiptSource;

/**
* 单据日期
Expand All @@ -102,14 +107,14 @@ public class FinancialMain implements Serializable {
private String remark;

/**
* 附件名称
* 附件名称 多个用,号分隔
*/
private String fileName;
private String fileId;

/**
* 状态,0未审核、1已审核、9审核中
*/
private Boolean status;
private Integer status;

/**
* 创建时间
Expand All @@ -134,7 +139,7 @@ public class FinancialMain implements Serializable {
/**
* 删除标记,0未删除,1删除
*/
private Boolean deleteFlag;
private Integer deleteFlag;


}
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@
*/
package com.wansensoft.entities.financial;

import java.io.Serial;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

import lombok.*;
import lombok.experimental.Accessors;

/**
Expand All @@ -28,12 +29,16 @@
* </p>
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("financial_sub")
public class FinancialSub implements Serializable {

private static final long serialVersionUID = 1L;
@Serial
private static final long serialVersionUID = 74651615L;

/**
* 主键
Expand All @@ -47,9 +52,9 @@ public class FinancialSub implements Serializable {
private Long tenantId;

/**
* 表头Id
* 财务主表id
*/
private Long tableHeaderId;
private Long financialMainId;

/**
* 账户Id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serial;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
Expand All @@ -31,7 +33,8 @@
@TableName("sys_config")
public class SysConfig implements Serializable {

private static final long serialVersionUID = 1L;
@Serial
private static final long serialVersionUID = 61416156L;

/**
* 主键
Expand Down
73 changes: 73 additions & 0 deletions domain/src/main/java/com/wansensoft/entities/system/SysFile.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/*
* Copyright 2023-2033 WanSen AI Team, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://opensource.wansenai.com/apache2.0/
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
* OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.wansensoft.entities.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_file")
public class SysFile implements Serializable {

@Serial
private static final long serialVersionUID = 9161563216532L;

@TableId(value = "id", type = IdType.NONE)
private Long id;

private String uId;

private String fileName;

private String fileUrl;

private String fileDownloadUrl;

private String fileType;

private Long fileSize;

/**
* 创建时间
*/
private LocalDateTime createTime;

/**
* 修改时间
*/
private LocalDateTime updateTime;

/**
* 创建人
*/
private Long createBy;

/**
* 修改人
*/
private Long updateBy;

private Integer deleteFlag;
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serial;
import java.time.LocalDateTime;
import java.io.Serializable;

Expand All @@ -35,7 +37,8 @@
@Builder
public class SysUserDeptRel implements Serializable {

private static final long serialVersionUID = 1L;
@Serial
private static final long serialVersionUID = 71918916161L;

/**
* 主键
Expand Down
Loading