Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dm_project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姚本章
dm_project
Commits
998382ec
Commit
998382ec
authored
Dec 03, 2020
by
machengbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
5df3f0c7
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
300 additions
and
273 deletions
+300
-273
pom.xml
jz-dm-mall/pom.xml
+2
-2
DatabaseConfig.java
...l/src/main/java/com/jz/dm/mall/config/DatabaseConfig.java
+254
-254
FinanceTradeFlowController.java
...moduls/controller/finance/FinanceTradeFlowController.java
+14
-4
FinanceTradeFlowDao.java
...ava/com/jz/dm/mall/moduls/mapper/FinanceTradeFlowDao.java
+4
-0
FinanceTradeFlowService.java
...om/jz/dm/mall/moduls/service/FinanceTradeFlowService.java
+5
-0
FinanceTradeFlowServiceImpl.java
...mall/moduls/service/impl/FinanceTradeFlowServiceImpl.java
+9
-1
FinanceCustomerAssetsDao.xml
...rc/main/resources/mapperconf/FinanceCustomerAssetsDao.xml
+12
-12
No files found.
jz-dm-mall/pom.xml
View file @
998382ec
...
@@ -74,10 +74,10 @@
...
@@ -74,10 +74,10 @@
</dependency>
</dependency>
<!-- spring boot 和mybatis -->
<!-- spring boot 和mybatis -->
<
!--<
dependency>
<dependency>
<groupId>
org.mybatis.spring.boot
</groupId>
<groupId>
org.mybatis.spring.boot
</groupId>
<artifactId>
mybatis-spring-boot-starter
</artifactId>
<artifactId>
mybatis-spring-boot-starter
</artifactId>
</dependency>
-->
</dependency>
<!-- mybatis plus -->
<!-- mybatis plus -->
<dependency>
<dependency>
...
...
jz-dm-mall/src/main/java/com/jz/dm/mall/config/DatabaseConfig.java
View file @
998382ec
This diff is collapsed.
Click to expand it.
jz-dm-mall/src/main/java/com/jz/dm/mall/moduls/controller/finance/FinanceTradeFlowController.java
View file @
998382ec
...
@@ -2,7 +2,7 @@ package com.jz.dm.mall.moduls.controller.finance;
...
@@ -2,7 +2,7 @@ package com.jz.dm.mall.moduls.controller.finance;
import
com.jz.common.base.BaseController
;
import
com.jz.common.base.BaseController
;
import
com.jz.common.utils.Result
;
import
com.jz.common.utils.Result
;
import
com.jz.dm.mall.moduls.controller.
order.bean.Order
Dto
;
import
com.jz.dm.mall.moduls.controller.
finance.bean.FinanceCustomerAssets
Dto
;
import
com.jz.dm.mall.moduls.service.FinanceTradeFlowService
;
import
com.jz.dm.mall.moduls.service.FinanceTradeFlowService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
...
@@ -12,6 +12,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -12,6 +12,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
/**
* 企业客户交易流水(TFinanceTradeFlow)表控制层
* 企业客户交易流水(TFinanceTradeFlow)表控制层
...
@@ -33,11 +35,19 @@ public class FinanceTradeFlowController extends BaseController {
...
@@ -33,11 +35,19 @@ public class FinanceTradeFlowController extends BaseController {
* 充值----获取企业账户余额
* 充值----获取企业账户余额
*
*
* @author Bellamy
* @author Bellamy
* @since 2020-12-03
*/
*/
@GetMapping
(
value
=
"/getAccountMoney"
)
@GetMapping
(
value
=
"/getAccountMoney"
)
@ApiOperation
(
value
=
"充值----获取账户余额"
,
notes
=
"获取账户余额"
)
@ApiOperation
(
value
=
"充值----获取账户余额"
,
notes
=
"获取账户余额,只有已审核(认证)企业才可以充值"
)
public
Result
<
OrderDto
>
getAccountMoney
(
HttpServletRequest
req
)
throws
Exception
{
public
Result
<
FinanceCustomerAssetsDto
>
getAccountMoney
(
HttpServletRequest
requset
)
throws
Exception
{
return
new
Result
<>();
Result
<
FinanceCustomerAssetsDto
>
result
=
new
Result
<>();
//requset.getSession().getAttribute(""); //从session中获取商城用户的 id,和企业资产账户id
Map
map
=
new
HashMap
();
map
.
put
(
"assetsId"
,
1
);
//企业资产账户id
map
.
put
(
"departmentId"
,
1
);
//企业ID
FinanceCustomerAssetsDto
dto
=
financeTradeFlowService
.
queryAccountMoneyByMap
(
map
);
result
.
setResult
(
dto
);
return
result
;
}
}
}
}
\ No newline at end of file
jz-dm-mall/src/main/java/com/jz/dm/mall/moduls/mapper/FinanceTradeFlowDao.java
View file @
998382ec
package
com
.
jz
.
dm
.
mall
.
moduls
.
mapper
;
package
com
.
jz
.
dm
.
mall
.
moduls
.
mapper
;
import
com.jz.common.base.BaseMapper
;
import
com.jz.common.base.BaseMapper
;
import
com.jz.dm.mall.moduls.controller.finance.bean.FinanceCustomerAssetsDto
;
import
com.jz.dm.mall.moduls.entity.FinanceTradeFlow
;
import
com.jz.dm.mall.moduls.entity.FinanceTradeFlow
;
import
java.util.Map
;
/**
/**
* 企业客户交易流水(TFinanceTradeFlow)表数据库访问层
* 企业客户交易流水(TFinanceTradeFlow)表数据库访问层
*
*
...
@@ -13,4 +16,5 @@ import com.jz.dm.mall.moduls.entity.FinanceTradeFlow;
...
@@ -13,4 +16,5 @@ import com.jz.dm.mall.moduls.entity.FinanceTradeFlow;
public
interface
FinanceTradeFlowDao
extends
BaseMapper
<
FinanceTradeFlow
>
{
public
interface
FinanceTradeFlowDao
extends
BaseMapper
<
FinanceTradeFlow
>
{
FinanceCustomerAssetsDto
queryAccountMoneyByMap
(
Map
map
)
throws
Exception
;
}
}
\ No newline at end of file
jz-dm-mall/src/main/java/com/jz/dm/mall/moduls/service/FinanceTradeFlowService.java
View file @
998382ec
package
com
.
jz
.
dm
.
mall
.
moduls
.
service
;
package
com
.
jz
.
dm
.
mall
.
moduls
.
service
;
import
com.jz.dm.mall.moduls.controller.finance.bean.FinanceCustomerAssetsDto
;
import
java.util.Map
;
/**
/**
* 企业客户交易流水(TFinanceTradeFlow)表服务接口
* 企业客户交易流水(TFinanceTradeFlow)表服务接口
*
*
...
@@ -9,4 +13,5 @@ package com.jz.dm.mall.moduls.service;
...
@@ -9,4 +13,5 @@ package com.jz.dm.mall.moduls.service;
public
interface
FinanceTradeFlowService
{
public
interface
FinanceTradeFlowService
{
FinanceCustomerAssetsDto
queryAccountMoneyByMap
(
Map
map
)
throws
Exception
;
}
}
\ No newline at end of file
jz-dm-mall/src/main/java/com/jz/dm/mall/moduls/service/impl/FinanceTradeFlowServiceImpl.java
View file @
998382ec
package
com
.
jz
.
dm
.
mall
.
moduls
.
service
.
impl
;
package
com
.
jz
.
dm
.
mall
.
moduls
.
service
.
impl
;
import
com.jz.dm.mall.moduls.controller.finance.bean.FinanceCustomerAssetsDto
;
import
com.jz.dm.mall.moduls.mapper.FinanceTradeFlowDao
;
import
com.jz.dm.mall.moduls.mapper.FinanceTradeFlowDao
;
import
com.jz.dm.mall.moduls.service.FinanceTradeFlowService
;
import
com.jz.dm.mall.moduls.service.FinanceTradeFlowService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.Map
;
/**
/**
* 企业客户交易流水(TFinanceTradeFlow)表服务实现类
* 企业客户交易流水(TFinanceTradeFlow)表服务实现类
*
*
...
@@ -13,7 +16,12 @@ import org.springframework.stereotype.Service;
...
@@ -13,7 +16,12 @@ import org.springframework.stereotype.Service;
*/
*/
@Service
(
"financeTradeFlowService"
)
@Service
(
"financeTradeFlowService"
)
public
class
FinanceTradeFlowServiceImpl
implements
FinanceTradeFlowService
{
public
class
FinanceTradeFlowServiceImpl
implements
FinanceTradeFlowService
{
@Autowired
@Autowired
private
FinanceTradeFlowDao
tF
inanceTradeFlowDao
;
private
FinanceTradeFlowDao
f
inanceTradeFlowDao
;
@Override
public
FinanceCustomerAssetsDto
queryAccountMoneyByMap
(
Map
map
)
throws
Exception
{
return
financeTradeFlowDao
.
queryAccountMoneyByMap
(
map
);
}
}
}
\ No newline at end of file
jz-dm-mall/src/main/resources/mapperconf/FinanceCustomerAssetsDao.xml
View file @
998382ec
...
@@ -2,18 +2,18 @@
...
@@ -2,18 +2,18 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.jz.dm.mall.moduls.mapper.FinanceCustomerAssetsDao"
>
<mapper
namespace=
"com.jz.dm.mall.moduls.mapper.FinanceCustomerAssetsDao"
>
<!-- <resultMap type="com.jz.manage.moduls.entity.FinanceCustomerAssets" id="TFinanceCustomerAssetsMap">--
>
<resultMap
type=
"com.jz.dm.mall.moduls.entity.FinanceCustomerAssets"
id=
"TFinanceCustomerAssetsMap"
>
<!-- <result property="assetsId" column="assets_id" jdbcType="INTEGER"/>--
>
<result
property=
"assetsId"
column=
"assets_id"
jdbcType=
"INTEGER"
/
>
<!-- <result property="departmentId" column="department_id" jdbcType="INTEGER"/>--
>
<result
property=
"departmentId"
column=
"department_id"
jdbcType=
"INTEGER"
/
>
<!-- <result property="useMoney" column="use_money" jdbcType="NUMERIC"/>--
>
<result
property=
"useMoney"
column=
"use_money"
jdbcType=
"NUMERIC"
/
>
<!-- <result property="frozenMoney" column="frozen_money" jdbcType="NUMERIC"/>--
>
<result
property=
"frozenMoney"
column=
"frozen_money"
jdbcType=
"NUMERIC"
/
>
<!-- <result property="totalMoney" column="total_money" jdbcType="NUMERIC"/>--
>
<result
property=
"totalMoney"
column=
"total_money"
jdbcType=
"NUMERIC"
/
>
<!-- <result property="creTime" column="cre_time" jdbcType="TIMESTAMP"/>--
>
<result
property=
"creTime"
column=
"cre_time"
jdbcType=
"TIMESTAMP"
/
>
<!-- <result property="crePerson" column="cre_person" jdbcType="VARCHAR"/>--
>
<result
property=
"crePerson"
column=
"cre_person"
jdbcType=
"VARCHAR"
/
>
<!-- <result property="uptTime" column="upt_time" jdbcType="TIMESTAMP"/>--
>
<result
property=
"uptTime"
column=
"upt_time"
jdbcType=
"TIMESTAMP"
/
>
<!-- <result property="uptPerson" column="upt_person" jdbcType="VARCHAR"/>--
>
<result
property=
"uptPerson"
column=
"upt_person"
jdbcType=
"VARCHAR"
/
>
<!-- <result property="delFlag" column="del_flag" jdbcType="VARCHAR"/>--
>
<result
property=
"delFlag"
column=
"del_flag"
jdbcType=
"VARCHAR"
/
>
<!-- </resultMap>--
>
</resultMap
>
<!--查询单个-->
<!--查询单个-->
<select
id=
"queryById"
resultMap=
"TFinanceCustomerAssetsMap"
>
<select
id=
"queryById"
resultMap=
"TFinanceCustomerAssetsMap"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment