Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-cost-system
Overview
Overview
Details
Activity
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
bltdc
dc-cost-system
Commits
be899fe0
Commit
be899fe0
authored
Jan 05, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
fd5ee013
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
13 deletions
+16
-13
OtherApplication.java
...st-core/src/main/java/com/blt/other/OtherApplication.java
+3
-1
BuyUserSyncJob.java
...rc/main/java/com/blt/other/common/job/BuyUserSyncJob.java
+1
-0
CostDomain.java
...main/java/com/blt/other/module/cost/model/CostDomain.java
+2
-2
AbstractCostService.java
...er/module/cost/service/impl/cost/AbstractCostService.java
+0
-10
OtherApplicationTests.java
...re/src/test/java/com/blt/other/OtherApplicationTests.java
+10
-0
No files found.
bailuntec-cost-core/src/main/java/com/blt/other/OtherApplication.java
View file @
be899fe0
...
@@ -6,17 +6,19 @@ import org.springframework.boot.SpringApplication;
...
@@ -6,17 +6,19 @@ import org.springframework.boot.SpringApplication;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.scheduling.annotation.EnableAsync
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
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
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
@EnableAsync
@RestController
@RestController
@SpringBootApplication
@SpringBootApplication
@ComponentScan
(
basePackages
=
{
"com.blt.other"
,
"com.bailuntec"
})
@ComponentScan
(
basePackages
=
{
"com.blt.other"
,
"com.bailuntec"
})
@EnableFeignClients
@EnableFeignClients
@MapperScan
(
basePackages
=
{
"com.blt.other.module.*.dao"
,
"com.blt.other.database.mapper"
})
@MapperScan
(
basePackages
=
{
"com.blt.other.module.*.dao"
,
"com.blt.other.database.mapper"
})
public
class
OtherApplication
{
public
class
OtherApplication
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
...
...
bailuntec-cost-core/src/main/java/com/blt/other/common/job/BuyUserSyncJob.java
View file @
be899fe0
...
@@ -22,6 +22,7 @@ public class BuyUserSyncJob extends QuartzJobBean {
...
@@ -22,6 +22,7 @@ public class BuyUserSyncJob extends QuartzJobBean {
/**
/**
* 获取用户信息 --> 保存到本系统采购员表
* 获取用户信息 --> 保存到本系统采购员表
*
* @param jobExecutionContext
* @param jobExecutionContext
* @throws JobExecutionException
* @throws JobExecutionException
*/
*/
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/model/CostDomain.java
View file @
be899fe0
...
@@ -205,8 +205,10 @@ public class CostDomain implements Serializable {
...
@@ -205,8 +205,10 @@ public class CostDomain implements Serializable {
@ApiModelProperty
(
"费用模版id"
)
@ApiModelProperty
(
"费用模版id"
)
private
Integer
costTemplateId
;
private
Integer
costTemplateId
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
@ApiModelProperty
(
"最后更新时间"
)
@ApiModelProperty
(
"最后更新时间"
)
private
LocalDateTime
lastModifyDate
;
private
LocalDateTime
lastModifyDate
;
@ApiModelProperty
(
"借支单,还款申请金额,包括已还的和申请中 ,借支单币种。"
)
@ApiModelProperty
(
"借支单,还款申请金额,包括已还的和申请中 ,借支单币种。"
)
private
BigDecimal
repaymentAppliedAmount
;
private
BigDecimal
repaymentAppliedAmount
;
...
@@ -219,7 +221,6 @@ public class CostDomain implements Serializable {
...
@@ -219,7 +221,6 @@ public class CostDomain implements Serializable {
private
String
lendType
;
private
String
lendType
;
//-------------
//-------------
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
CostTemplate
costTemplate
;
private
CostTemplate
costTemplate
;
...
@@ -234,7 +235,6 @@ public class CostDomain implements Serializable {
...
@@ -234,7 +235,6 @@ public class CostDomain implements Serializable {
private
String
costCurrentReviewer
;
private
String
costCurrentReviewer
;
public
CostDto
castToDto
()
{
public
CostDto
castToDto
()
{
StatusMapper
statusMapper
=
SpringContextUtil
.
getBean
(
StatusMapper
.
class
);
StatusMapper
statusMapper
=
SpringContextUtil
.
getBean
(
StatusMapper
.
class
);
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/cost/AbstractCostService.java
View file @
be899fe0
...
@@ -189,16 +189,6 @@ public abstract class AbstractCostService implements CostService {
...
@@ -189,16 +189,6 @@ public abstract class AbstractCostService implements CostService {
if
(
null
!=
costDomain
.
getCompanyNo
())
{
if
(
null
!=
costDomain
.
getCompanyNo
())
{
costDomain
.
setCompanyName
(
costCompanyDao
.
selectByNo
(
costDomain
.
getCompanyNo
()).
getCompanyName
());
costDomain
.
setCompanyName
(
costCompanyDao
.
selectByNo
(
costDomain
.
getCompanyNo
()).
getCompanyName
());
}
}
//todo
// if (null != costDomain.getKindNo() && !"".equals(costDomain.getKindNo())) {
// CostTypeKindDomain costTypeKindDomain = costTypeKindDao.selectByKindNo(costDomain.getKindNo());
// if (null != costTypeKindDomain) {
// costDomain.setKindName(costTypeKindDomain.getKindName());
// costDomain.setTypeName(costTypeKindDomain.getTypeName());
// costDomain.setTypeNo(costTypeKindDomain.getTypeNo());
// }
// }
if
(
ListUtil
.
isNotEmpty
(
costDomain
.
getAttach
()))
{
if
(
ListUtil
.
isNotEmpty
(
costDomain
.
getAttach
()))
{
costDomain
.
getAttach
().
forEach
(
costAttach
->
{
costDomain
.
getAttach
().
forEach
(
costAttach
->
{
CostTemplateBaseCol
costTemplateBaseCol
=
costTemplateBaseColMapper
.
selectById
(
costAttach
.
getCostTemplateBaseColId
());
CostTemplateBaseCol
costTemplateBaseCol
=
costTemplateBaseColMapper
.
selectById
(
costAttach
.
getCostTemplateBaseColId
());
...
...
bailuntec-cost-core/src/test/java/com/blt/other/OtherApplicationTests.java
View file @
be899fe0
...
@@ -11,6 +11,7 @@ import com.bailuntec.api.bailuntec.oa.response.OaUserResp;
...
@@ -11,6 +11,7 @@ import com.bailuntec.api.bailuntec.oa.response.OaUserResp;
import
com.bailuntec.common.SpringContextUtil
;
import
com.bailuntec.common.SpringContextUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.toolkit.IdWorker
;
import
com.baomidou.mybatisplus.core.toolkit.IdWorker
;
import
com.blt.other.common.interceptor.mail.MailService
;
import
com.blt.other.database.model.CostCompanyDomain
;
import
com.blt.other.database.model.CostCompanyDomain
;
import
com.blt.other.database.model.CostTypeDomain
;
import
com.blt.other.database.model.CostTypeDomain
;
import
com.blt.other.module.auth.dao.OaDepartmentMapper
;
import
com.blt.other.module.auth.dao.OaDepartmentMapper
;
...
@@ -349,5 +350,14 @@ public class OtherApplicationTests {
...
@@ -349,5 +350,14 @@ public class OtherApplicationTests {
});
});
}
}
@Resource
MailService
mailService
;
@Test
public
void
testMail
()
{
mailService
.
sendSimpleMail
(
"robbendev@qq.com"
,
"pre"
,
"test"
);
}
}
}
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