Commit 0d8fc5f1 by 陶光胜

Merge branch 'developer' into 'master'

Developer

See merge request !7
parents 63d59c19 34457bdf
package com.gic.finance.constant;
/**
* 商户基础服务开通状态
* @ClassName: BasicServiceStatusEnum

* @Description: 

* @author guojuxing

* @date 2020/9/11 2:11 PM

*/
public enum BasicServiceStatusEnum {
/**
* 服务开通
*/
SERVICE_OPEN(1, "服务开通"),
/**
* 服务续费
*/
SERVICE_RENEWAL(2, "服务续费"),
/**
* 版本升级
*/
VERSION_UPGRADE(3, "版本升级"),
/**
* license扩容
*/
LICENSE_EXPAN(4, "license扩容");
private Integer status;
private String description;
BasicServiceStatusEnum(Integer status, String description) {
this.status = status;
this.description = description;
}
public static BasicServiceStatusEnum getByStatus(Integer status) {
for (BasicServiceStatusEnum basicServiceStatusEnum : values()) {
if (basicServiceStatusEnum.getStatus().equals(status)) {
return basicServiceStatusEnum;
}
}
return null;
}
public Integer getStatus() {
return status;
}
public BasicServiceStatusEnum setStatus(Integer status) {
this.status = status;
return this;
}
public String getDescription() {
return description;
}
public BasicServiceStatusEnum setDescription(String description) {
this.description = description;
return this;
}
}
...@@ -8,7 +8,13 @@ package com.gic.finance.constant; ...@@ -8,7 +8,13 @@ package com.gic.finance.constant;
*/ */
public enum EnterprisePlatformTypeEnum { public enum EnterprisePlatformTypeEnum {
/**
* GIC
*/
GIC(1, "GIC"), GIC(1, "GIC"),
/**
* 好办
*/
HAO_BAN(2, "好办"); HAO_BAN(2, "好办");
private int code; private int code;
......
...@@ -7,7 +7,13 @@ package com.gic.finance.constant; ...@@ -7,7 +7,13 @@ package com.gic.finance.constant;
* @date 2019/8/13 10:56 AM
 * @date 2019/8/13 10:56 AM

*/ */
public enum InitiatorTypeEnum { public enum InitiatorTypeEnum {
/**
* 商户
*/
ENTERPRISE(1, "商户"), ENTERPRISE(1, "商户"),
/**
* 运维后台
*/
OPERATION(2, "运维后台"); OPERATION(2, "运维后台");
private int code; private int code;
...@@ -18,6 +24,18 @@ public enum InitiatorTypeEnum { ...@@ -18,6 +24,18 @@ public enum InitiatorTypeEnum {
this.message = message; this.message = message;
} }
public static InitiatorTypeEnum getByCode(Integer code) {
if (code == null) {
return null;
}
for (InitiatorTypeEnum typeEnum : values()) {
if (code.intValue() == typeEnum.getCode()) {
return typeEnum;
}
}
return null;
}
public static String getMessageByCode(Integer code) { public static String getMessageByCode(Integer code) {
if (code == null) { if (code == null) {
return "--"; return "--";
......
...@@ -7,12 +7,33 @@ package com.gic.finance.constant; ...@@ -7,12 +7,33 @@ package com.gic.finance.constant;
* @date 2019/8/14 2:30 PM
 * @date 2019/8/14 2:30 PM

*/ */
public enum InvoiceStatusEnum { public enum InvoiceStatusEnum {
/**
* 待审核
*/
TO_BE_ISSUED(1, "待审核"), TO_BE_ISSUED(1, "待审核"),
/**
* 待邮寄
*/
TO_BE_MAILED(2, "待邮寄"), TO_BE_MAILED(2, "待邮寄"),
/**
* 已邮寄
*/
MAILED(3, "已邮寄"), MAILED(3, "已邮寄"),
/**
* 已驳回
*/
REJECT(4, "已驳回"), REJECT(4, "已驳回"),
/**
* 已取消
*/
CANCEL(5, "已取消"), CANCEL(5, "已取消"),
/**
* 待发送
*/
TO_BE_SEND(6, "待发送"), TO_BE_SEND(6, "待发送"),
/**
* 已发送
*/
SEND(7, "已发送"); SEND(7, "已发送");
private int code; private int code;
......
...@@ -7,7 +7,13 @@ package com.gic.finance.constant; ...@@ -7,7 +7,13 @@ package com.gic.finance.constant;
* @date 2019/8/14 2:35 PM
 * @date 2019/8/14 2:35 PM

*/ */
public enum InvoiceTypeEnum { public enum InvoiceTypeEnum {
/**
* 电子普通发票
*/
NORMAL(1, "电子普通发票"), NORMAL(1, "电子普通发票"),
/**
* 纸质增值税专用发票
*/
VAT_INVOICE(2, "纸质增值税专用发票"); VAT_INVOICE(2, "纸质增值税专用发票");
private int code; private int code;
......
...@@ -7,8 +7,17 @@ package com.gic.finance.constant; ...@@ -7,8 +7,17 @@ package com.gic.finance.constant;
* @date 2019/8/13 10:56 AM
 * @date 2019/8/13 10:56 AM

*/ */
public enum InvoiceUseStatusEnum { public enum InvoiceUseStatusEnum {
/**
* 启用
*/
ENABLE(1, "启用"), ENABLE(1, "启用"),
/**
* 停用
*/
DISABLE(2, "停用"), DISABLE(2, "停用"),
/**
* 删除
*/
DELETE(3, "删除"); DELETE(3, "删除");
private int code; private int code;
......
...@@ -8,10 +8,25 @@ package com.gic.finance.constant; ...@@ -8,10 +8,25 @@ package com.gic.finance.constant;
* @date 2019/8/9 1:41 PM
 * @date 2019/8/9 1:41 PM

*/ */
public enum OrderTypeEnum { public enum OrderTypeEnum {
/**
* 充值
*/
RECHARGE(1, "充值"), RECHARGE(1, "充值"),
/**
* 短信套餐
*/
SHORT_MESSAGE_PACKAGE(2, "短信套餐"), SHORT_MESSAGE_PACKAGE(2, "短信套餐"),
/**
* 服务
*/
SERVICE(3, "服务"), SERVICE(3, "服务"),
/**
* 拓展包
*/
EXTENSION_PACKAGE(4, "拓展包"), EXTENSION_PACKAGE(4, "拓展包"),
/**
* 套餐包
*/
PACKAGE(5, "套餐包"); PACKAGE(5, "套餐包");
private int code; private int code;
......
package com.gic.finance.constant;
/**
* 支付渠道
* @ClassName: PayEnum

* @Description: 

* @author guojuxing

* @date 2020/9/11 2:21 PM

*/
public enum PayEnum {
}
...@@ -8,9 +8,21 @@ package com.gic.finance.constant; ...@@ -8,9 +8,21 @@ package com.gic.finance.constant;
* @date 2019/8/9 1:37 PM
 * @date 2019/8/9 1:37 PM

*/ */
public enum TransferAccountApprovalStatusEnum { public enum TransferAccountApprovalStatusEnum {
/**
* 待审批
*/
TO_BE_APPROVED(1, "待审批"), TO_BE_APPROVED(1, "待审批"),
/**
* 已取消
*/
CANCEL(2, "已取消"), CANCEL(2, "已取消"),
/**
* 已驳回
*/
REJECT(3, "已驳回"), REJECT(3, "已驳回"),
/**
* 审批通过
*/
AGREE(4, "审批通过"); AGREE(4, "审批通过");
private int code; private int code;
......
...@@ -7,7 +7,13 @@ package com.gic.finance.constant; ...@@ -7,7 +7,13 @@ package com.gic.finance.constant;
* @date 2019/8/14 2:35 PM
 * @date 2019/8/14 2:35 PM

*/ */
public enum WithdrawalApplyTypeEnum { public enum WithdrawalApplyTypeEnum {
/**
* 服务商
*/
SERVICE_PROVIDER(1, "服务商"), SERVICE_PROVIDER(1, "服务商"),
/**
* 供应商
*/
SUPPLIER(2, "供应商"); SUPPLIER(2, "供应商");
private int code; private int code;
......
...@@ -7,10 +7,25 @@ package com.gic.finance.constant; ...@@ -7,10 +7,25 @@ package com.gic.finance.constant;
* @date 2019/8/14 2:30 PM
 * @date 2019/8/14 2:30 PM

*/ */
public enum WithdrawalStatusEnum { public enum WithdrawalStatusEnum {
/**
* 待审核
*/
TO_BE_EXAMINE(1, "待审核"), TO_BE_EXAMINE(1, "待审核"),
/**
* 审核通过
*/
PASS(2, "审核通过"), PASS(2, "审核通过"),
/**
* 已完成
*/
COMPLETE(3, "已完成"), COMPLETE(3, "已完成"),
/**
* 已驳回
*/
REJECT(5, "已驳回"), REJECT(5, "已驳回"),
/**
* 已取消
*/
CANCEL(4, "已取消"); CANCEL(4, "已取消");
private int code; private int code;
......
...@@ -381,4 +381,9 @@ public class CashWithdrawalDTO implements Serializable{ ...@@ -381,4 +381,9 @@ public class CashWithdrawalDTO implements Serializable{
public void setCashProvider(String cashProvider) { public void setCashProvider(String cashProvider) {
this.cashProvider = cashProvider; this.cashProvider = cashProvider;
} }
@Override
public String toString() {
return super.toString();
}
} }
...@@ -157,4 +157,9 @@ public class InvoiceAccountDTO implements Serializable{ ...@@ -157,4 +157,9 @@ public class InvoiceAccountDTO implements Serializable{
public void setUpdateTime(Date updateTime) { public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime; this.updateTime = updateTime;
} }
@Override
public String toString() {
return super.toString();
}
} }
...@@ -476,4 +476,9 @@ public class InvoiceManageDTO implements Serializable { ...@@ -476,4 +476,9 @@ public class InvoiceManageDTO implements Serializable {
this.businessLicense = businessLicense; this.businessLicense = businessLicense;
return this; return this;
} }
@Override
public String toString() {
return super.toString();
}
} }
...@@ -13,11 +13,17 @@ public class OperationUserInfoDTO implements Serializable{ ...@@ -13,11 +13,17 @@ public class OperationUserInfoDTO implements Serializable{
private static final long serialVersionUID = -570322634465207981L; private static final long serialVersionUID = -570322634465207981L;
private Integer id; private Integer id;
// 用户登录名(账号) /**
* 用户登录名(账号)
*/
private String loginName; private String loginName;
// 用户真实姓名 /**
* 用户真实姓名
*/
private String realName; private String realName;
// 用户手机号', /**
* 用户手机号',
*/
private String userMobile; private String userMobile;
public Integer getId() { public Integer getId() {
...@@ -51,4 +57,9 @@ public class OperationUserInfoDTO implements Serializable{ ...@@ -51,4 +57,9 @@ public class OperationUserInfoDTO implements Serializable{
public void setUserMobile(String userMobile) { public void setUserMobile(String userMobile) {
this.userMobile = userMobile; this.userMobile = userMobile;
} }
@Override
public String toString() {
return super.toString();
}
} }
...@@ -154,4 +154,9 @@ public class PayAccountDTO implements Serializable{ ...@@ -154,4 +154,9 @@ public class PayAccountDTO implements Serializable{
public void setSeq(Integer seq) { public void setSeq(Integer seq) {
this.seq = seq; this.seq = seq;
} }
@Override
public String toString() {
return super.toString();
}
} }
...@@ -331,4 +331,8 @@ public class TransferAccountsApprovalDTO implements Serializable{ ...@@ -331,4 +331,8 @@ public class TransferAccountsApprovalDTO implements Serializable{
this.orderType = orderType; this.orderType = orderType;
} }
@Override
public String toString() {
return super.toString();
}
} }
...@@ -248,4 +248,9 @@ public class InvoiceCallbackDTO implements Serializable{ ...@@ -248,4 +248,9 @@ public class InvoiceCallbackDTO implements Serializable{
this.businessLicense = businessLicense; this.businessLicense = businessLicense;
return this; return this;
} }
@Override
public String toString() {
return super.toString();
}
} }
...@@ -52,6 +52,7 @@ public interface CashWithdrawalApiService { ...@@ -52,6 +52,7 @@ public interface CashWithdrawalApiService {
* @Description: * @Description:

 * @author guojuxing 
 * @author guojuxing
* @param id
 * @param id

* @param dto
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
 * @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>


 */ 
 */
ServiceResponse<Void> approval(Integer id, OperationUserInfoDTO dto); ServiceResponse<Void> approval(Integer id, OperationUserInfoDTO dto);
...@@ -73,6 +74,7 @@ public interface CashWithdrawalApiService { ...@@ -73,6 +74,7 @@ public interface CashWithdrawalApiService {

 * @author guojuxing 
 * @author guojuxing
* @param id 主键 * @param id 主键
* @param rejectReason
 驳回理由 * @param rejectReason
 驳回理由
* @param dto
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
 * @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>


 */ 
 */
ServiceResponse<Void> reject(Integer id, String rejectReason, OperationUserInfoDTO dto); ServiceResponse<Void> reject(Integer id, String rejectReason, OperationUserInfoDTO dto);
......
...@@ -45,6 +45,7 @@ public interface InvoiceManageApiService { ...@@ -45,6 +45,7 @@ public interface InvoiceManageApiService {
* @param invoiceManageId * @param invoiceManageId
* @param expressMailName * @param expressMailName
* @param expressMailNumber
 * @param expressMailNumber

* @param dto
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
 * @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>


 */ 
 */
ServiceResponse<Void> invoice(Integer invoiceManageId, String expressMailName, String expressMailNumber, OperationUserInfoDTO dto); ServiceResponse<Void> invoice(Integer invoiceManageId, String expressMailName, String expressMailNumber, OperationUserInfoDTO dto);
...@@ -65,6 +66,7 @@ public interface InvoiceManageApiService { ...@@ -65,6 +66,7 @@ public interface InvoiceManageApiService {

 * @author guojuxing 
 * @author guojuxing
* @param invoiceManageId * @param invoiceManageId
* @param rejectReason
 驳回理由 * @param rejectReason
 驳回理由
* @param dto
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
 * @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>


 */ 
 */
ServiceResponse<Void> rejectInvoice(Integer invoiceManageId, String rejectReason, OperationUserInfoDTO dto); ServiceResponse<Void> rejectInvoice(Integer invoiceManageId, String rejectReason, OperationUserInfoDTO dto);
......
...@@ -104,6 +104,7 @@ public interface TransferAccountsApprovalApiService { ...@@ -104,6 +104,7 @@ public interface TransferAccountsApprovalApiService {

 * @author guojuxing 
 * @author guojuxing
* @param transferApprovalId * @param transferApprovalId
* @param accountAmount
 * @param accountAmount

* @param userInfoDTO
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
 * @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>


 */ 
 */
ServiceResponse<Void> agreeApproval(Integer transferApprovalId, Double accountAmount, OperationUserInfoDTO userInfoDTO); ServiceResponse<Void> agreeApproval(Integer transferApprovalId, Double accountAmount, OperationUserInfoDTO userInfoDTO);
...@@ -114,6 +115,7 @@ public interface TransferAccountsApprovalApiService { ...@@ -114,6 +115,7 @@ public interface TransferAccountsApprovalApiService {
* @Description: * @Description:

 * @author guojuxing 
 * @author guojuxing
* @param transferApprovalId
 转账审批主键 * @param transferApprovalId
 转账审批主键
* @param userInfoDTO
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>
 * @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>


 */ 
 */
ServiceResponse<Void> rejectApproval(Integer transferApprovalId, OperationUserInfoDTO userInfoDTO); ServiceResponse<Void> rejectApproval(Integer transferApprovalId, OperationUserInfoDTO userInfoDTO);
......
...@@ -4,7 +4,13 @@ import com.gic.finance.entity.TabCashWithdrawal; ...@@ -4,7 +4,13 @@ import com.gic.finance.entity.TabCashWithdrawal;
import com.gic.finance.qo.CashWithdrawalQueryListQO; import com.gic.finance.qo.CashWithdrawalQueryListQO;
import java.util.List; import java.util.List;
/**
* 提现
* @ClassName: TabCashWithdrawalMapper

* @Description: 

* @author guojuxing

* @date 2020/9/11 11:36 AM

*/
public interface TabCashWithdrawalMapper { public interface TabCashWithdrawalMapper {
/** /**
* 根据主键删除 * 根据主键删除
...@@ -64,5 +70,13 @@ public interface TabCashWithdrawalMapper { ...@@ -64,5 +70,13 @@ public interface TabCashWithdrawalMapper {

 */ 
 */
List<TabCashWithdrawal> listCashWithdrawal(CashWithdrawalQueryListQO params); List<TabCashWithdrawal> listCashWithdrawal(CashWithdrawalQueryListQO params);
/**
* 根据流水号查询
* @Title: getBySerialNumber

* @Description:

* @author guojuxing
* @param serialNumber

* @return com.gic.finance.entity.TabCashWithdrawal


*/
TabCashWithdrawal getBySerialNumber(String serialNumber); TabCashWithdrawal getBySerialNumber(String serialNumber);
} }
\ No newline at end of file
...@@ -3,7 +3,13 @@ package com.gic.finance.dao.mapper; ...@@ -3,7 +3,13 @@ package com.gic.finance.dao.mapper;
import com.gic.finance.entity.TabInvoiceAccount; import com.gic.finance.entity.TabInvoiceAccount;
import java.util.List; import java.util.List;
/**
* 发票账号管理
* @ClassName: TabInvoiceAccountMapper

* @Description: 

* @author guojuxing

* @date 2020/9/11 11:35 AM

*/
public interface TabInvoiceAccountMapper { public interface TabInvoiceAccountMapper {
/** /**
* 根据主键删除 * 根据主键删除
......
...@@ -5,7 +5,13 @@ import com.gic.finance.qo.InvoiceManageListQueryQO; ...@@ -5,7 +5,13 @@ import com.gic.finance.qo.InvoiceManageListQueryQO;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
/**
* 发票
* @ClassName: TabInvoiceManageMapper

* @Description: 

* @author guojuxing

* @date 2020/9/11 11:35 AM

*/
public interface TabInvoiceManageMapper { public interface TabInvoiceManageMapper {
/** /**
* 根据主键删除 * 根据主键删除
......
...@@ -4,7 +4,13 @@ import com.gic.finance.entity.TabPayAccount; ...@@ -4,7 +4,13 @@ import com.gic.finance.entity.TabPayAccount;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
/**
* 开户
* @ClassName: TabPayAccountMapper

* @Description: 

* @author guojuxing

* @date 2020/9/11 11:36 AM

*/
public interface TabPayAccountMapper { public interface TabPayAccountMapper {
/** /**
* 根据主键删除 * 根据主键删除
...@@ -72,6 +78,13 @@ public interface TabPayAccountMapper { ...@@ -72,6 +78,13 @@ public interface TabPayAccountMapper {

 */ 
 */
int getMaxSort(); int getMaxSort();
/**
* 查询排序之最小的值
* @Title: getMinSort

* @Description:

* @author guojuxing 

* @return int


*/
int getMinSort(); int getMinSort();
/** /**
......
...@@ -6,7 +6,13 @@ import org.apache.ibatis.annotations.Param; ...@@ -6,7 +6,13 @@ import org.apache.ibatis.annotations.Param;
import com.gic.finance.entity.TabTransferAccountsApproval; import com.gic.finance.entity.TabTransferAccountsApproval;
import java.util.List; import java.util.List;
/**
* 转账审批
* @ClassName: TabTransferAccountsApprovalMapper

* @Description: 

* @author guojuxing

* @date 2020/9/11 11:33 AM

*/
public interface TabTransferAccountsApprovalMapper { public interface TabTransferAccountsApprovalMapper {
/** /**
* 根据主键删除 * 根据主键删除
...@@ -76,5 +82,13 @@ public interface TabTransferAccountsApprovalMapper { ...@@ -76,5 +82,13 @@ public interface TabTransferAccountsApprovalMapper {

 */ 
 */
List<TabTransferAccountsApproval> listTransferAccountsApproval(TransferListQueryQO params); List<TabTransferAccountsApproval> listTransferAccountsApproval(TransferListQueryQO params);
/**
* 根据订单流水号查询转账审批记录
* @Title: listByOrderSerialNumber

* @Description:

* @author guojuxing
* @param orderSerialNumberList

* @return java.util.List<com.gic.finance.entity.TabTransferAccountsApproval>


*/
List<TabTransferAccountsApproval> listByOrderSerialNumber(@Param("list") List<String> orderSerialNumberList); List<TabTransferAccountsApproval> listByOrderSerialNumber(@Param("list") List<String> orderSerialNumberList);
} }
\ No newline at end of file
...@@ -3,7 +3,11 @@ package com.gic.finance.entity; ...@@ -3,7 +3,11 @@ package com.gic.finance.entity;
import java.util.Date; import java.util.Date;
/** /**
* tab_cash_withdrawal * 提现
* @ClassName: TabCashWithdrawal

* @Description: 

* @author guojuxing

* @date 2020/9/11 11:36 AM

*/ */
public class TabCashWithdrawal { public class TabCashWithdrawal {
/** /**
......
...@@ -3,7 +3,11 @@ package com.gic.finance.entity; ...@@ -3,7 +3,11 @@ package com.gic.finance.entity;
import java.util.Date; import java.util.Date;
/** /**
* tab_invoice_account * 发票管理
* @ClassName: TabInvoiceAccount

* @Description: 

* @author guojuxing

* @date 2020/9/11 11:34 AM

*/ */
public class TabInvoiceAccount { public class TabInvoiceAccount {
/** /**
......
...@@ -3,7 +3,11 @@ package com.gic.finance.entity; ...@@ -3,7 +3,11 @@ package com.gic.finance.entity;
import java.util.Date; import java.util.Date;
/** /**
* tab_invoice_manage * 发票管理
* @ClassName: TabInvoiceManage

* @Description: 

* @author guojuxing

* @date 2020/9/11 11:34 AM

*/ */
public class TabInvoiceManage { public class TabInvoiceManage {
/** /**
......
...@@ -3,7 +3,11 @@ package com.gic.finance.entity; ...@@ -3,7 +3,11 @@ package com.gic.finance.entity;
import java.util.Date; import java.util.Date;
/** /**
* tab_pay_account * 开户
* @ClassName: TabPayAccount

* @Description: 

* @author guojuxing

* @date 2020/9/11 11:36 AM

*/ */
public class TabPayAccount { public class TabPayAccount {
/** /**
......
...@@ -3,7 +3,11 @@ package com.gic.finance.entity; ...@@ -3,7 +3,11 @@ package com.gic.finance.entity;
import java.util.Date; import java.util.Date;
/** /**
* tab_transfer_accounts_approval * 转账审批
* @ClassName: TabTransferAccountsApproval

* @Description: 

* @author guojuxing

* @date 2020/9/11 11:33 AM

*/ */
public class TabTransferAccountsApproval { public class TabTransferAccountsApproval {
/** /**
...@@ -304,4 +308,9 @@ public class TabTransferAccountsApproval { ...@@ -304,4 +308,9 @@ public class TabTransferAccountsApproval {
public void setOrderType(Integer orderType) { public void setOrderType(Integer orderType) {
this.orderType = orderType; this.orderType = orderType;
} }
@Override
public String toString() {
return super.toString();
}
} }
\ No newline at end of file
...@@ -44,7 +44,14 @@ public interface CashWithdrawalService { ...@@ -44,7 +44,14 @@ public interface CashWithdrawalService {

 */ 
 */
Page<TabCashWithdrawal> pageCashWithdrawal(CashWithdrawalQueryListQO params); Page<TabCashWithdrawal> pageCashWithdrawal(CashWithdrawalQueryListQO params);
/**
* 查询
* @Title: getById

* @Description:

* @author guojuxing
* @param id

* @return com.gic.finance.entity.TabCashWithdrawal


*/
TabCashWithdrawal getById(Integer id); TabCashWithdrawal getById(Integer id);
/** /**
......
...@@ -33,6 +33,14 @@ public interface InvoiceAccountService { ...@@ -33,6 +33,14 @@ public interface InvoiceAccountService {

 */ 
 */
TabInvoiceAccount getEnable(); TabInvoiceAccount getEnable();
/**
* 查询
* @Title: getById

* @Description:

* @author guojuxing
* @param id

* @return com.gic.finance.entity.TabInvoiceAccount


*/
TabInvoiceAccount getById(Integer id); TabInvoiceAccount getById(Integer id);
/** /**
* 更新 * 更新
......
...@@ -23,6 +23,14 @@ public interface PayAccountService { ...@@ -23,6 +23,14 @@ public interface PayAccountService {

 */ 
 */
int save(PayAccountDTO dto); int save(PayAccountDTO dto);
/**
* 编辑
* @Title: update

* @Description:

* @author guojuxing
* @param dto

* @return int


*/
int update(PayAccountDTO dto); int update(PayAccountDTO dto);
/** /**
...@@ -64,6 +72,13 @@ public interface PayAccountService { ...@@ -64,6 +72,13 @@ public interface PayAccountService {

 */ 
 */
int getTheMaxSort(); int getTheMaxSort();
/**
* 查询排序值最小的值
* @Title: getMinSort

* @Description:

* @author guojuxing 

* @return int


*/
int getMinSort(); int getMinSort();
/** /**
......
...@@ -13,7 +13,13 @@ import org.springframework.stereotype.Service; ...@@ -13,7 +13,13 @@ import org.springframework.stereotype.Service;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
/**
* 提现
* @ClassName: CashWithdrawalServiceImpl

* @Description: 

* @author guojuxing

* @date 2020/9/11 11:37 AM

*/
@Service("cashWithdrawalService") @Service("cashWithdrawalService")
public class CashWithdrawalServiceImpl implements CashWithdrawalService { public class CashWithdrawalServiceImpl implements CashWithdrawalService {
@Autowired @Autowired
......
...@@ -10,7 +10,13 @@ import org.springframework.stereotype.Service; ...@@ -10,7 +10,13 @@ import org.springframework.stereotype.Service;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
/**
* 发票账号
* @ClassName: InvoiceAccountServiceImpl

* @Description: 

* @author guojuxing

* @date 2020/9/11 11:36 AM

*/
@Service("invoiceAccountService") @Service("invoiceAccountService")
public class InvoiceAccountServiceImpl implements InvoiceAccountService{ public class InvoiceAccountServiceImpl implements InvoiceAccountService{
@Autowired @Autowired
......
...@@ -14,7 +14,13 @@ import com.gic.finance.service.InvoiceManageService; ...@@ -14,7 +14,13 @@ import com.gic.finance.service.InvoiceManageService;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
/**
* 发票
* @ClassName: InvoiceManageServiceImpl

* @Description: 

* @author guojuxing

* @date 2020/9/11 11:35 AM

*/
@Service("invoiceManageService") @Service("invoiceManageService")
public class InvoiceManageServiceImpl implements InvoiceManageService{ public class InvoiceManageServiceImpl implements InvoiceManageService{
@Autowired @Autowired
......
...@@ -11,7 +11,13 @@ import com.gic.finance.dao.mapper.TabPayAccountMapper; ...@@ -11,7 +11,13 @@ import com.gic.finance.dao.mapper.TabPayAccountMapper;
import com.gic.finance.dto.PayAccountDTO; import com.gic.finance.dto.PayAccountDTO;
import com.gic.finance.entity.TabPayAccount; import com.gic.finance.entity.TabPayAccount;
import com.gic.finance.service.PayAccountService; import com.gic.finance.service.PayAccountService;
/**
* 开户
* @ClassName: PayAccountServiceImpl

* @Description: 

* @author guojuxing

* @date 2020/9/11 11:37 AM

*/
@Service("payAccountService") @Service("payAccountService")
public class PayAccountServiceImpl implements PayAccountService { public class PayAccountServiceImpl implements PayAccountService {
@Autowired @Autowired
......
...@@ -24,7 +24,13 @@ import com.gic.finance.qo.CashWithdrawalQueryListQO; ...@@ -24,7 +24,13 @@ import com.gic.finance.qo.CashWithdrawalQueryListQO;
import com.gic.finance.service.CashWithdrawalApiService; import com.gic.finance.service.CashWithdrawalApiService;
import com.gic.finance.service.CashWithdrawalService; import com.gic.finance.service.CashWithdrawalService;
import com.gic.finance.service.PayAccountService; import com.gic.finance.service.PayAccountService;
/**
* 提现
* @ClassName: CashWithdrawalApiServiceImpl

* @Description: 

* @author guojuxing

* @date 2020/9/11 11:37 AM

*/
@Service("cashWithdrawalApiService") @Service("cashWithdrawalApiService")
public class CashWithdrawalApiServiceImpl implements CashWithdrawalApiService{ public class CashWithdrawalApiServiceImpl implements CashWithdrawalApiService{
@Autowired @Autowired
......
...@@ -17,7 +17,13 @@ import com.gic.finance.dto.InvoiceAccountDTO; ...@@ -17,7 +17,13 @@ import com.gic.finance.dto.InvoiceAccountDTO;
import com.gic.finance.entity.TabInvoiceAccount; import com.gic.finance.entity.TabInvoiceAccount;
import com.gic.finance.service.InvoiceAccountApiService; import com.gic.finance.service.InvoiceAccountApiService;
import com.gic.finance.service.InvoiceAccountService; import com.gic.finance.service.InvoiceAccountService;
/**
* 发票账号
* @ClassName: InvoiceAccountApiServiceImpl

* @Description: 

* @author guojuxing

* @date 2020/9/11 11:35 AM

*/
@Service("invoiceAccountApiService") @Service("invoiceAccountApiService")
public class InvoiceAccountApiServiceImpl implements InvoiceAccountApiService { public class InvoiceAccountApiServiceImpl implements InvoiceAccountApiService {
@Autowired @Autowired
......
...@@ -31,7 +31,13 @@ import com.gic.finance.qo.InvoiceManageListQueryQO; ...@@ -31,7 +31,13 @@ import com.gic.finance.qo.InvoiceManageListQueryQO;
import com.gic.finance.service.InvoiceAccountService; import com.gic.finance.service.InvoiceAccountService;
import com.gic.finance.service.InvoiceManageApiService; import com.gic.finance.service.InvoiceManageApiService;
import com.gic.finance.service.InvoiceManageService; import com.gic.finance.service.InvoiceManageService;
/**
* 发票
* @ClassName: InvoiceManageApiServiceImpl

* @Description: 

* @author guojuxing

* @date 2020/9/11 11:35 AM

*/
@Service("invoiceManageApiService") @Service("invoiceManageApiService")
public class InvoiceManageApiServiceImpl implements InvoiceManageApiService { public class InvoiceManageApiServiceImpl implements InvoiceManageApiService {
private static final Logger LOGGER = LogManager.getLogger(InvoiceManageApiServiceImpl.class); private static final Logger LOGGER = LogManager.getLogger(InvoiceManageApiServiceImpl.class);
...@@ -44,13 +50,17 @@ public class InvoiceManageApiServiceImpl implements InvoiceManageApiService { ...@@ -44,13 +50,17 @@ public class InvoiceManageApiServiceImpl implements InvoiceManageApiService {
@Autowired @Autowired
private UserApiService userApiService; private UserApiService userApiService;
private static final Integer LEAST_INVOICE_MONEY = 1000;
private static final String INVOICE_SMS_CODE = "GICJFZX010";
private static final String INVOICE_REJECT_SMS_CODE = "GICJFZX011";
public ServiceResponse<String> applyInvoiceInit(InvoiceManageDTO invoiceManageDTO) { public ServiceResponse<String> applyInvoiceInit(InvoiceManageDTO invoiceManageDTO) {
ServiceResponse paramResponse = ValidParamsUtils.allCheckValidate(invoiceManageDTO, ServiceResponse paramResponse = ValidParamsUtils.allCheckValidate(invoiceManageDTO,
InvoiceManageDTO.ApplyInvoiceValid.class); InvoiceManageDTO.ApplyInvoiceValid.class);
if (!paramResponse.isSuccess()) { if (!paramResponse.isSuccess()) {
return paramResponse; return paramResponse;
} }
if (invoiceManageDTO.getBillingAmount() < 1000) { if (invoiceManageDTO.getBillingAmount() < LEAST_INVOICE_MONEY) {
//如果开票金额小于1000,则不允许开票 //如果开票金额小于1000,则不允许开票
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "开票金额小于1000"); return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "开票金额小于1000");
} }
...@@ -123,12 +133,6 @@ public class InvoiceManageApiServiceImpl implements InvoiceManageApiService { ...@@ -123,12 +133,6 @@ public class InvoiceManageApiServiceImpl implements InvoiceManageApiService {
} }
getOperationUserInfo(invoiceManageDTO, dto); getOperationUserInfo(invoiceManageDTO, dto);
//开票户信息插入
// TabInvoiceAccount account = invoiceAccountService.getEnable();
// if (account == null) {
// return ServiceResponse.failure(ErrorCode.SYSTEM_ERROR.getCode(), "没有启用的开票户信息,请启用");
// }
// invoiceManageDTO.setInvoicerId(account.getInvoiceAccountId());
invoiceManageService.update(invoiceManageDTO); invoiceManageService.update(invoiceManageDTO);
//回调 //回调
...@@ -138,7 +142,7 @@ public class InvoiceManageApiServiceImpl implements InvoiceManageApiService { ...@@ -138,7 +142,7 @@ public class InvoiceManageApiServiceImpl implements InvoiceManageApiService {
"invoiceCallback"); "invoiceCallback");
} }
sendSms(tabInvoiceManage, "GICJFZX010"); sendSms(tabInvoiceManage, INVOICE_SMS_CODE);
return ServiceResponse.success(); return ServiceResponse.success();
} }
...@@ -194,7 +198,7 @@ public class InvoiceManageApiServiceImpl implements InvoiceManageApiService { ...@@ -194,7 +198,7 @@ public class InvoiceManageApiServiceImpl implements InvoiceManageApiService {
"invoiceCallback"); "invoiceCallback");
} }
sendSms(tabInvoiceManage, "GICJFZX011"); sendSms(tabInvoiceManage, INVOICE_REJECT_SMS_CODE);
return ServiceResponse.success(); return ServiceResponse.success();
} }
...@@ -265,12 +269,12 @@ public class InvoiceManageApiServiceImpl implements InvoiceManageApiService { ...@@ -265,12 +269,12 @@ public class InvoiceManageApiServiceImpl implements InvoiceManageApiService {
UserDTO userDTO = userResponse.getResult(); UserDTO userDTO = userResponse.getResult();
String[] smsArr = null; String[] smsArr = null;
if ("GICJFZX010".equals(smsSceneId)) { if (INVOICE_SMS_CODE.equals(smsSceneId)) {
smsArr= new String[]{tabInvoiceManage.getEnterpriseName(), smsArr= new String[]{tabInvoiceManage.getEnterpriseName(),
tabInvoiceManage.getInvoiceApplySerial(), tabInvoiceManage.getInvoiceApplySerial(),
tabInvoiceManage.getExpressMailName(), tabInvoiceManage.getExpressMailName(),
tabInvoiceManage.getExpressMailNumber()}; tabInvoiceManage.getExpressMailNumber()};
} else if ("GICJFZX011".equals(smsSceneId)) { } else if (INVOICE_REJECT_SMS_CODE.equals(smsSceneId)) {
smsArr = new String[]{tabInvoiceManage.getEnterpriseName(), smsArr = new String[]{tabInvoiceManage.getEnterpriseName(),
tabInvoiceManage.getInvoiceApplySerial(), tabInvoiceManage.getRejectReason()}; tabInvoiceManage.getInvoiceApplySerial(), tabInvoiceManage.getRejectReason()};
} }
......
...@@ -16,7 +16,13 @@ import com.gic.finance.dto.PayAccountDTO; ...@@ -16,7 +16,13 @@ import com.gic.finance.dto.PayAccountDTO;
import com.gic.finance.entity.TabPayAccount; import com.gic.finance.entity.TabPayAccount;
import com.gic.finance.service.PayAccountApiService; import com.gic.finance.service.PayAccountApiService;
import com.gic.finance.service.PayAccountService; import com.gic.finance.service.PayAccountService;
/**
* 开户账号
* @ClassName: PayAccountApiServiceImpl

* @Description: 

* @author guojuxing

* @date 2020/9/11 11:37 AM

*/
@Service("payAccountApiService") @Service("payAccountApiService")
public class PayAccountApiServiceImpl implements PayAccountApiService { public class PayAccountApiServiceImpl implements PayAccountApiService {
@Autowired @Autowired
......
...@@ -139,9 +139,6 @@ public class TransferAccountsApprovalApiServiceImpl implements TransferAccountsA ...@@ -139,9 +139,6 @@ public class TransferAccountsApprovalApiServiceImpl implements TransferAccountsA
@Override @Override
public ServiceResponse<TransferAccountsApprovalDTO> getByOrderNumber(String orderNumber) { public ServiceResponse<TransferAccountsApprovalDTO> getByOrderNumber(String orderNumber) {
TabTransferAccountsApproval tab = transferAccountsApprovalService.getByOrderNumber(orderNumber); TabTransferAccountsApproval tab = transferAccountsApprovalService.getByOrderNumber(orderNumber);
// if (tab == null) {
// return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "订单流水号有误,查询不到数据");
// }
return ServiceResponse.success(EntityUtil.changeEntityNew(TransferAccountsApprovalDTO.class, tab)); return ServiceResponse.success(EntityUtil.changeEntityNew(TransferAccountsApprovalDTO.class, tab));
} }
...@@ -154,6 +151,10 @@ public class TransferAccountsApprovalApiServiceImpl implements TransferAccountsA ...@@ -154,6 +151,10 @@ public class TransferAccountsApprovalApiServiceImpl implements TransferAccountsA
if (accountAmount == null) { if (accountAmount == null) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "到账金额不能为空"); return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "到账金额不能为空");
} }
if (tab.getPlannedAmount() < accountAmount) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "到账金额不能超过计划金额");
}
TransferAccountsApprovalDTO dto = new TransferAccountsApprovalDTO(); TransferAccountsApprovalDTO dto = new TransferAccountsApprovalDTO();
dto.setTransferApprovalId(transferApprovalId); dto.setTransferApprovalId(transferApprovalId);
dto.setAccountAmount(accountAmount); dto.setAccountAmount(accountAmount);
...@@ -186,7 +187,8 @@ public class TransferAccountsApprovalApiServiceImpl implements TransferAccountsA ...@@ -186,7 +187,8 @@ public class TransferAccountsApprovalApiServiceImpl implements TransferAccountsA
if (!applicationResult.isSuccess()) { if (!applicationResult.isSuccess()) {
LOGGER.warn("财务审批通过-应用信息结果:{}, {}", applicationResult.getCode(), applicationResult.getMessage()); LOGGER.warn("财务审批通过-应用信息结果:{}, {}", applicationResult.getCode(), applicationResult.getMessage());
} }
if ("gic".equals(applicationResult.getResult().getModuleCode())) { String gicModuleCode = "gic";
if (gicModuleCode.equals(applicationResult.getResult().getModuleCode())) {
//是基础服务 //是基础服务
ServiceResponse<UserDTO> userResult = userApiService.getUserByEnterpriseId(tab.getEnterpriseId()); ServiceResponse<UserDTO> userResult = userApiService.getUserByEnterpriseId(tab.getEnterpriseId());
UserDTO userDTO = userResult.getResult(); UserDTO userDTO = userResult.getResult();
......
...@@ -12,7 +12,13 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -12,7 +12,13 @@ import org.springframework.web.bind.annotation.RestController;
import com.gic.commons.webapi.reponse.RestResponse; import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.enterprise.service.EnterpriseWhiteListApiService; import com.gic.enterprise.service.EnterpriseWhiteListApiService;
import com.gic.enterprise.utils.ResultControllerUtils; import com.gic.enterprise.utils.ResultControllerUtils;
/**
* 白名单
* @ClassName: EnterpriseWhiteListController

* @Description: 

* @author guojuxing

* @date 2020/9/11 2:28 PM

*/
@RestController @RestController
@RequestMapping("/white-list") @RequestMapping("/white-list")
public class EnterpriseWhiteListController { public class EnterpriseWhiteListController {
......
...@@ -152,24 +152,6 @@ public class InvoiceManageController { ...@@ -152,24 +152,6 @@ public class InvoiceManageController {
if (invoiceResult.isSuccess()) { if (invoiceResult.isSuccess()) {
InvoiceManageDTO invoice = invoiceResult.getResult(); InvoiceManageDTO invoice = invoiceResult.getResult();
InvoiceManagerDetailVO vo = EntityUtil.changeEntityNew(InvoiceManagerDetailVO.class, invoice); InvoiceManagerDetailVO vo = EntityUtil.changeEntityNew(InvoiceManagerDetailVO.class, invoice);
//不再去去开票户数据,而是gic后台填写的数据
// ServiceResponse<InvoiceAccountDTO> accountResult;
// if (invoice.getInvoicerId() != null) {
// accountResult = invoiceAccountApiService.getById(invoice.getInvoicerId());
// } else {
// accountResult = invoiceAccountApiService.getEnable();
// }
// if (accountResult.isSuccess()) {
// InvoiceAccountDTO account = accountResult.getResult();
// vo.setAccountName(account.getAccountName());
// vo.setAccountPhone(account.getAccountPhone());
// vo.setAddress(account.getAddress());
// vo.setBank(account.getBank());
// vo.setBankAccount(account.getBankAccount());
// vo.setTaxNumberOfInvoice(account.getTaxNumber());
// } else {
// return EnterpriseRestResponse.failure(accountResult);
// }
return RestResponse.success(vo); return RestResponse.success(vo);
} else { } else {
return EnterpriseRestResponse.failure(invoiceResult); return EnterpriseRestResponse.failure(invoiceResult);
......
...@@ -66,6 +66,62 @@ public class TransferAccountsApprovalController { ...@@ -66,6 +66,62 @@ public class TransferAccountsApprovalController {
TransferAccountsApprovalDTO transfer = transferResult.getResult(); TransferAccountsApprovalDTO transfer = transferResult.getResult();
//短信套餐包 //短信套餐包
if (transfer.getOrderType().intValue() == OrderTypeEnum.SHORT_MESSAGE_PACKAGE.getCode()) { if (transfer.getOrderType().intValue() == OrderTypeEnum.SHORT_MESSAGE_PACKAGE.getCode()) {
return shortMessagePackage(transfer);
} else if (transfer.getOrderType().intValue() == OrderTypeEnum.RECHARGE.getCode()) {
return recharge(transfer);
} else {
return serviceOrder(transfer);
}
} else {
return EnterpriseRestResponse.failure(transferResult);
}
}
@RequestMapping("/agree-approval")
public RestResponse agreeApproval(Integer id, Double accountAmount) {
return ResultControllerUtils.commonResult(transferAccountsApprovalApiService.agreeApproval(id, accountAmount,
UserInfoUtils.getOpertaionUserInfo()));
}
@RequestMapping("/reject-approval")
public RestResponse rejectApproval(Integer id) {
return ResultControllerUtils.commonResult(
transferAccountsApprovalApiService.rejectApproval(id, UserInfoUtils.getOpertaionUserInfo()));
}
@RequestMapping("/cancel-approval")
public RestResponse cancelApproval(Integer id) {
return ResultControllerUtils.commonResult(transferAccountsApprovalApiService.cancelApproval(id));
}
@RequestMapping("/list-approval")
public RestResponse listTransferAccountsApproval(TransferListQueryQO params) {
return ResultControllerUtils.commonPageResult(
transferAccountsApprovalApiService.listTransferAccountsApproval(params), TransferApprovalListVO.class);
}
/**
* 充值处理
* @param transfer
* @return
*/
private RestResponse recharge(TransferAccountsApprovalDTO transfer) {
TransferApprovalRechargeVO vo = EntityUtil.changeEntityNew(TransferApprovalRechargeVO.class, transfer);
ServiceResponse<BillingRechargeRecordDTO> rechargeResult = billingRechargeRecordApiService
.getRechargeRecordForApproval(transfer.getOrderNumber());
if (rechargeResult.isSuccess()) {
BillingRechargeRecordDTO recharge = rechargeResult.getResult();
//支付流水号
vo.setPayInfoSerialNumber(recharge.getPayInfoSerialNumber());
vo.setTotalCountFee(transfer.getPlannedAmount());
return RestResponse.success(vo);
} else {
return EnterpriseRestResponse.failure(rechargeResult);
}
}
private RestResponse shortMessagePackage(TransferAccountsApprovalDTO transfer) {
ServiceResponse<BillingOrderDTO> orderDetail = billingOrderApiService ServiceResponse<BillingOrderDTO> orderDetail = billingOrderApiService
.getOrderBySerialNumber(transfer.getOrderNumber()); .getOrderBySerialNumber(transfer.getOrderNumber());
...@@ -88,21 +144,9 @@ public class TransferAccountsApprovalController { ...@@ -88,21 +144,9 @@ public class TransferAccountsApprovalController {
} else { } else {
return EnterpriseRestResponse.failure(orderDetail); return EnterpriseRestResponse.failure(orderDetail);
} }
} else if (transfer.getOrderType().intValue() == OrderTypeEnum.RECHARGE.getCode()) {
TransferApprovalRechargeVO vo = EntityUtil.changeEntityNew(TransferApprovalRechargeVO.class, transfer);
ServiceResponse<BillingRechargeRecordDTO> rechargeResult = billingRechargeRecordApiService
.getRechargeRecordForApproval(transfer.getOrderNumber());
if (rechargeResult.isSuccess()) {
BillingRechargeRecordDTO recharge = rechargeResult.getResult();
//支付流水号
vo.setPayInfoSerialNumber(recharge.getPayInfoSerialNumber());
vo.setTotalCountFee(transfer.getPlannedAmount());
return RestResponse.success(vo);
} else {
return EnterpriseRestResponse.failure(rechargeResult);
} }
} else {
private RestResponse serviceOrder(TransferAccountsApprovalDTO transfer) {
TransferApprovalServiceVO vo = EntityUtil.changeEntityNew(TransferApprovalServiceVO.class, transfer); TransferApprovalServiceVO vo = EntityUtil.changeEntityNew(TransferApprovalServiceVO.class, transfer);
ServiceResponse<OrderDTO> orderResult = orderApiService.getOrderForFinance(transfer.getOrderNumber()); ServiceResponse<OrderDTO> orderResult = orderApiService.getOrderForFinance(transfer.getOrderNumber());
...@@ -211,31 +255,4 @@ public class TransferAccountsApprovalController { ...@@ -211,31 +255,4 @@ public class TransferAccountsApprovalController {
return EnterpriseRestResponse.failure(orderResult); return EnterpriseRestResponse.failure(orderResult);
} }
} }
} else {
return EnterpriseRestResponse.failure(transferResult);
}
}
@RequestMapping("/agree-approval")
public RestResponse agreeApproval(Integer id, Double accountAmount) {
return ResultControllerUtils.commonResult(transferAccountsApprovalApiService.agreeApproval(id, accountAmount,
UserInfoUtils.getOpertaionUserInfo()));
}
@RequestMapping("/reject-approval")
public RestResponse rejectApproval(Integer id) {
return ResultControllerUtils.commonResult(
transferAccountsApprovalApiService.rejectApproval(id, UserInfoUtils.getOpertaionUserInfo()));
}
@RequestMapping("/cancel-approval")
public RestResponse cancelApproval(Integer id) {
return ResultControllerUtils.commonResult(transferAccountsApprovalApiService.cancelApproval(id));
}
@RequestMapping("/list-approval")
public RestResponse listTransferAccountsApproval(TransferListQueryQO params) {
return ResultControllerUtils.commonPageResult(
transferAccountsApprovalApiService.listTransferAccountsApproval(params), TransferApprovalListVO.class);
}
} }
...@@ -4,7 +4,13 @@ import com.gic.authcenter.security.core.util.UserUtils; ...@@ -4,7 +4,13 @@ import com.gic.authcenter.security.core.util.UserUtils;
import com.gic.commons.webapi.reponse.RestResponse; import com.gic.commons.webapi.reponse.RestResponse;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
/**
* 运维后台用户
* @ClassName: UserController

* @Description: 

* @author guojuxing

* @date 2020/9/11 2:27 PM

*/
@RestController @RestController
@RequestMapping("/user") @RequestMapping("/user")
public class UserController { public class UserController {
......
...@@ -4,7 +4,13 @@ import com.gic.authcenter.security.core.dto.UserDetailsVO; ...@@ -4,7 +4,13 @@ import com.gic.authcenter.security.core.dto.UserDetailsVO;
import com.gic.authcenter.security.core.util.UserUtils; import com.gic.authcenter.security.core.util.UserUtils;
import com.gic.commons.util.EntityUtil; import com.gic.commons.util.EntityUtil;
import com.gic.finance.dto.OperationUserInfoDTO; import com.gic.finance.dto.OperationUserInfoDTO;
/**
* 运维后台session信息工具
* @ClassName: UserInfoUtils

* @Description: 

* @author guojuxing

* @date 2020/9/11 2:28 PM

*/
public class UserInfoUtils { public class UserInfoUtils {
public static OperationUserInfoDTO getOpertaionUserInfo() { public static OperationUserInfoDTO getOpertaionUserInfo() {
......
...@@ -310,4 +310,9 @@ public class CashWithdrawalDetailVO implements Serializable{ ...@@ -310,4 +310,9 @@ public class CashWithdrawalDetailVO implements Serializable{
public void setBankSerialNumber(String bankSerialNumber) { public void setBankSerialNumber(String bankSerialNumber) {
this.bankSerialNumber = bankSerialNumber; this.bankSerialNumber = bankSerialNumber;
} }
@Override
public String toString() {
return super.toString();
}
} }
...@@ -129,4 +129,9 @@ public class CashWithdrawalListVO implements Serializable{ ...@@ -129,4 +129,9 @@ public class CashWithdrawalListVO implements Serializable{
public void setCreateTime(Date createTime) { public void setCreateTime(Date createTime) {
this.createTime = createTime; this.createTime = createTime;
} }
@Override
public String toString() {
return super.toString();
}
} }
package com.gic.finance.web.vo; package com.gic.finance.web.vo;
import java.io.Serializable; import java.io.Serializable;
/**
* 商户下拉列表
* @ClassName: EnterpriseInfoOfSelectVO

* @Description: 

* @author guojuxing

* @date 2020/9/11 2:28 PM

*/
public class EnterpriseInfoOfSelectVO implements Serializable{ public class EnterpriseInfoOfSelectVO implements Serializable{
private static final long serialVersionUID = -1757627270407759229L; private static final long serialVersionUID = -1757627270407759229L;
...@@ -35,4 +41,8 @@ public class EnterpriseInfoOfSelectVO implements Serializable{ ...@@ -35,4 +41,8 @@ public class EnterpriseInfoOfSelectVO implements Serializable{
this.companyName = companyName; this.companyName = companyName;
} }
@Override
public String toString() {
return super.toString();
}
} }
...@@ -24,7 +24,9 @@ public class ExpandPackageVO implements Serializable{ ...@@ -24,7 +24,9 @@ public class ExpandPackageVO implements Serializable{
private BigDecimal totalAmount; private BigDecimal totalAmount;
// 购买数量 /**
* 购买数量
*/
private Integer serveQuantity; private Integer serveQuantity;
/** /**
...@@ -90,4 +92,9 @@ public class ExpandPackageVO implements Serializable{ ...@@ -90,4 +92,9 @@ public class ExpandPackageVO implements Serializable{
public void setPayDetail(String payDetail) { public void setPayDetail(String payDetail) {
this.payDetail = payDetail; this.payDetail = payDetail;
} }
@Override
public String toString() {
return super.toString();
}
} }
...@@ -151,6 +151,10 @@ public class InvoiceManageListVO implements Serializable{ ...@@ -151,6 +151,10 @@ public class InvoiceManageListVO implements Serializable{
this.invoiceStatus = invoiceStatus; this.invoiceStatus = invoiceStatus;
} }
public Integer getInvoiceStatus() {
return invoiceStatus;
}
public String getInvoiceStatusStr() { public String getInvoiceStatusStr() {
return InvoiceStatusEnum.getMessageByCode(invoiceStatus); return InvoiceStatusEnum.getMessageByCode(invoiceStatus);
} }
...@@ -188,4 +192,9 @@ public class InvoiceManageListVO implements Serializable{ ...@@ -188,4 +192,9 @@ public class InvoiceManageListVO implements Serializable{
this.invoiceType = invoiceType; this.invoiceType = invoiceType;
return this; return this;
} }
@Override
public String toString() {
return super.toString();
}
} }
...@@ -376,4 +376,9 @@ public class InvoiceManagerDetailVO implements Serializable{ ...@@ -376,4 +376,9 @@ public class InvoiceManagerDetailVO implements Serializable{
this.businessLicense = businessLicense; this.businessLicense = businessLicense;
return this; return this;
} }
@Override
public String toString() {
return super.toString();
}
} }
...@@ -29,7 +29,9 @@ public class LicenseVO implements Serializable{ ...@@ -29,7 +29,9 @@ public class LicenseVO implements Serializable{
private BigDecimal totalAmount; private BigDecimal totalAmount;
// 购买数量 /**
* 购买数量
*/
private Integer serveQuantity; private Integer serveQuantity;
private String licenseUnit; private String licenseUnit;
...@@ -99,4 +101,9 @@ public class LicenseVO implements Serializable{ ...@@ -99,4 +101,9 @@ public class LicenseVO implements Serializable{
public void setPayDetail(String payDetail) { public void setPayDetail(String payDetail) {
this.payDetail = payDetail; this.payDetail = payDetail;
} }
@Override
public String toString() {
return super.toString();
}
} }
...@@ -32,13 +32,15 @@ public class ServiceDiscountVO implements Serializable{ ...@@ -32,13 +32,15 @@ public class ServiceDiscountVO implements Serializable{
*/ */
private String discountDetail; private String discountDetail;
private static final String COUPON_CODE = "200";
public String getDiscountTypeStr() { public String getDiscountTypeStr() {
if (StringUtils.isBlank(discountDetail)) { if (StringUtils.isBlank(discountDetail)) {
return "--"; return "--";
} }
JSONObject jsonObject = JSONObject.parseObject(discountDetail); JSONObject jsonObject = JSONObject.parseObject(discountDetail);
if (jsonObject.containsKey("200")) { if (jsonObject.containsKey(COUPON_CODE)) {
return "卡券"; return "卡券";
} }
return "--"; return "--";
...@@ -57,8 +59,8 @@ public class ServiceDiscountVO implements Serializable{ ...@@ -57,8 +59,8 @@ public class ServiceDiscountVO implements Serializable{
return "--"; return "--";
} }
JSONObject jsonObject = JSONObject.parseObject(discountDetail); JSONObject jsonObject = JSONObject.parseObject(discountDetail);
if (jsonObject.containsKey("200")) { if (jsonObject.containsKey(COUPON_CODE)) {
return jsonObject.getString("200"); return jsonObject.getString(COUPON_CODE);
} }
return "--"; return "--";
} }
...@@ -66,4 +68,9 @@ public class ServiceDiscountVO implements Serializable{ ...@@ -66,4 +68,9 @@ public class ServiceDiscountVO implements Serializable{
public void setDiscountDetail(String discountDetail) { public void setDiscountDetail(String discountDetail) {
this.discountDetail = discountDetail; this.discountDetail = discountDetail;
} }
@Override
public String toString() {
return super.toString();
}
} }
...@@ -95,9 +95,11 @@ public class ServiceInfoVO implements Serializable{ ...@@ -95,9 +95,11 @@ public class ServiceInfoVO implements Serializable{
if (unitNum != null) { if (unitNum != null) {
unit = unitNum.toString(); unit = unitNum.toString();
} }
if ("3".equals(unit)) { String yearCode = "3";
String monthCode = "2";
if (yearCode.equals(unit)) {
unit = "年"; unit = "年";
} else if("2".equals(unit)) { } else if(monthCode.equals(unit)) {
unit = "月"; unit = "月";
} else { } else {
unit = "天"; unit = "天";
...@@ -140,4 +142,9 @@ public class ServiceInfoVO implements Serializable{ ...@@ -140,4 +142,9 @@ public class ServiceInfoVO implements Serializable{
public void setVersionName(String versionName) { public void setVersionName(String versionName) {
this.versionName = versionName; this.versionName = versionName;
} }
@Override
public String toString() {
return super.toString();
}
} }
...@@ -272,4 +272,9 @@ public class TransferApprovalDetailVO implements Serializable{ ...@@ -272,4 +272,9 @@ public class TransferApprovalDetailVO implements Serializable{
public void setOrderItemJson(String orderItemJson) { public void setOrderItemJson(String orderItemJson) {
this.orderItemJson = orderItemJson; this.orderItemJson = orderItemJson;
} }
@Override
public String toString() {
return super.toString();
}
} }
...@@ -232,4 +232,9 @@ public class TransferApprovalListVO implements Serializable{ ...@@ -232,4 +232,9 @@ public class TransferApprovalListVO implements Serializable{
public void setOrderType(Integer orderType) { public void setOrderType(Integer orderType) {
this.orderType = orderType; this.orderType = orderType;
} }
@Override
public String toString() {
return super.toString();
}
} }
...@@ -253,4 +253,9 @@ public class TransferApprovalRechargeVO implements Serializable{ ...@@ -253,4 +253,9 @@ public class TransferApprovalRechargeVO implements Serializable{
this.orderNumber = orderNumber; this.orderNumber = orderNumber;
return this; return this;
} }
@Override
public String toString() {
return super.toString();
}
} }
...@@ -4,9 +4,7 @@ import java.io.Serializable; ...@@ -4,9 +4,7 @@ import java.io.Serializable;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import com.gic.finance.constant.EnterprisePlatformTypeEnum; import com.gic.finance.constant.*;
import com.gic.finance.constant.OrderTypeEnum;
import com.gic.finance.constant.TransferAccountApprovalStatusEnum;
import com.gic.finance.web.utils.DateUtils; import com.gic.finance.web.utils.DateUtils;
/** /**
...@@ -335,17 +333,12 @@ public class TransferApprovalServiceVO implements Serializable{ ...@@ -335,17 +333,12 @@ public class TransferApprovalServiceVO implements Serializable{
if (relationOrderType == null) { if (relationOrderType == null) {
return "--"; return "--";
} }
if (relationOrderType.intValue() == 1) { BasicServiceStatusEnum statusEnum = BasicServiceStatusEnum.getByStatus(relationOrderType);
return "服务开通"; if (statusEnum == null) {
} else if (relationOrderType.intValue() == 2) {
return "服务续费";
} else if (relationOrderType.intValue() == 3) {
return "版本升级";
} else if (relationOrderType.intValue() == 4) {
return "license扩容";
}
return "未知"; return "未知";
} }
return statusEnum.getDescription();
}
public Integer getPayType() { public Integer getPayType() {
return payType; return payType;
...@@ -415,14 +408,12 @@ public class TransferApprovalServiceVO implements Serializable{ ...@@ -415,14 +408,12 @@ public class TransferApprovalServiceVO implements Serializable{
if (operType == null) { if (operType == null) {
return "--"; return "--";
} }
if (operType == 1) { InitiatorTypeEnum initiatorTypeEnum = InitiatorTypeEnum.getByCode(orderType);
return "商户"; if (initiatorTypeEnum == null) {
}
if (operType == 2) {
return "运维";
}
return "--"; return "--";
} }
return initiatorTypeEnum.getMessage();
}
public String getOperName() { public String getOperName() {
return operName; return operName;
...@@ -447,4 +438,9 @@ public class TransferApprovalServiceVO implements Serializable{ ...@@ -447,4 +438,9 @@ public class TransferApprovalServiceVO implements Serializable{
public void setPayDetail(String payDetail) { public void setPayDetail(String payDetail) {
this.payDetail = payDetail; this.payDetail = payDetail;
} }
@Override
public String toString() {
return super.toString();
}
} }
...@@ -317,4 +317,9 @@ public class TransferApprovalSmsVO implements Serializable{ ...@@ -317,4 +317,9 @@ public class TransferApprovalSmsVO implements Serializable{
this.orderNumber = orderNumber; this.orderNumber = orderNumber;
return this; return this;
} }
@Override
public String toString() {
return super.toString();
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment