Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
Project
Project
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
fulixin
dsk-operate-sys-cscec
Commits
ea121979
Commit
ea121979
authored
Dec 11, 2023
by
lcl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
3ad08473
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
362 additions
and
10 deletions
+362
-10
DCustomerController.java
...in/java/com/dsk/cscec/controller/DCustomerController.java
+1
-1
DSubcontract.java
...-api/src/main/java/com/dsk/cscec/domain/DSubcontract.java
+312
-0
DSubcontractMapper.java
...rc/main/java/com/dsk/cscec/mapper/DSubcontractMapper.java
+20
-0
IDCustomerService.java
...rc/main/java/com/dsk/cscec/service/IDCustomerService.java
+0
-2
DCustomerServiceImpl.java
...java/com/dsk/cscec/service/impl/DCustomerServiceImpl.java
+9
-7
DSubcontractMapper.xml
...pi/src/main/resources/mapper/cscec/DSubcontractMapper.xml
+20
-0
No files found.
dsk-module/dsk-biz-api/src/main/java/com/dsk/cscec/controller/DCustomerController.java
View file @
ea121979
...
@@ -49,7 +49,7 @@ public class DCustomerController extends BaseController {
...
@@ -49,7 +49,7 @@ public class DCustomerController extends BaseController {
*/
*/
@GetMapping
(
"/info/{customerKey}"
)
@GetMapping
(
"/info/{customerKey}"
)
public
R
<
DCustomer
>
info
(
@PathVariable
String
customerKey
)
{
public
R
<
DCustomer
>
info
(
@PathVariable
String
customerKey
)
{
return
R
.
ok
(
baseService
.
info
(
customerKey
));
return
R
.
ok
(
baseService
.
getById
(
customerKey
));
}
}
...
...
dsk-module/dsk-biz-api/src/main/java/com/dsk/cscec/domain/DSubcontract.java
0 → 100644
View file @
ea121979
package
com
.
dsk
.
cscec
.
domain
;
import
java.io.Serializable
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
lombok.Data
;
/**
* 分包分供合同(DSubcontract)表实体类
*
* @author lcl
* @since 2023-12-11 15:31:44
*/
@Data
public
class
DSubcontract
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 分包合同主键
*/
private
Long
subcontractKey
;
/**
* 分包合同ID
*/
private
String
subcontractId
;
/**
* 分包合同编码
*/
private
String
subcontractCode
;
/**
* 分包合同名称
*/
private
String
subcontractName
;
/**
* 财务一体化分包合同编码
*/
private
String
fipSubcontractCode
;
/**
* 财务一体化分包合同名称
*/
private
String
fipSubcontractName
;
/**
* 业务类型
*/
private
String
contractScope
;
/**
* 合同类型
*/
private
String
contractType
;
/**
* 项目ID
*/
private
String
projectId
;
/**
* 项目编码
*/
private
String
projectCode
;
/**
* 项目名称
*/
private
String
projectName
;
/**
* 分包合同金额
*/
private
Double
subcontractValue
;
/**
* 分包合同不含税金额
*/
private
Double
subcontractValueExcl
;
/**
* 分包合同税额
*/
private
Double
subcontractTaxValue
;
/**
* 签订单位ID
*/
private
String
signOrgId
;
/**
* 签订单位名称
*/
private
String
signOrgName
;
/**
* 合同签订日期
*/
private
String
signDate
;
/**
* 合同盖章日期
*/
private
String
stampDate
;
/**
* 合同返回日期
*/
private
String
returnDate
;
/**
* 交底日期
*/
private
String
noticeDate
;
/**
* 实际完成时间
*/
private
String
completeDate
;
/**
* 合同开始日期
*/
private
String
subcontractStartDate
;
/**
* 合同结束日期
*/
private
String
subcontractEndDate
;
/**
* 是否甲指
*/
private
String
isownerappoint
;
/**
* 施工专业ID
*/
private
String
specialtyId
;
/**
* 施工专业
*/
private
String
specialtyType
;
/**
* 履约状态
*/
private
String
contractState
;
/**
* 供应商ID
*/
private
String
customerId
;
/**
* 供应商名称
*/
private
String
customerName
;
/**
* 客商类型
*/
private
String
customerType
;
/**
* 分包范围
*/
private
String
jobScope
;
/**
* 付款方式
*/
private
String
payType
;
/**
* 付款比例是否固定
*/
private
Double
isfixedpayratio
;
/**
* 过程中付款比例
*/
private
Double
processPayRatio
;
/**
* 完工后付款比例
*/
private
Double
completePayRatio
;
/**
* 结算后付款比例
*/
private
Double
settlePayRatio
;
/**
* 保修金比例
*/
private
Double
warrantyGoldRatio
;
/**
* 分包合同应付金额
*/
private
Double
subcontractPayableValue
;
/**
* 分包合同已付金额
*/
private
Double
subcontractPaidValue
;
/**
* 预付款
*/
private
Double
prepayValue
;
/**
* 已付款
*/
private
Double
paidValue
;
/**
* 垫付款
*/
private
Double
advanceValue
;
/**
* 结算方式
*/
private
String
settleType
;
/**
* 结算价
*/
private
Double
settleValue
;
/**
* 人工费
*/
private
Double
laborFee
;
/**
* 备注
*/
private
String
remark
;
/**
* 合同分类
*/
private
String
contractClass
;
/**
* 成本科目ID
*/
private
String
costSubjectId
;
/**
* 成本科目名称
*/
private
String
costSubjectName
;
/**
* 成本科目全路径名称
*/
private
String
costSubjectFullname
;
/**
* 执行备案
*/
private
String
contractTextType
;
/**
* 税率
*/
private
Double
taxRate
;
/**
* 盖章份数
*/
private
Double
noOfStamp
;
/**
* 盖章明晰
*/
private
String
signRemark
;
/**
* 返回明晰
*/
private
String
issign
;
/**
* 承包类型
*/
private
String
contractForm
;
/**
* 是否为一局内部公司
*/
private
String
iscscec1bcompany
;
/**
* 是否主体结构分包合同
*/
private
String
isfirststruct
;
/**
* 建筑面积
*/
private
Double
areaSum
;
/**
* 锁定金额
*/
private
Double
lockValue
;
/**
* 战采资源级别
*/
private
String
gpResLevel
;
/**
* 战采资源类别
*/
private
String
gpResScope
;
/**
* 战采资源品类
*/
private
String
gpResCategory
;
/**
* 战略采购供应商年度
*/
private
Double
gpSupplierYear
;
/**
* 是否集中采购(是/否)
*/
private
String
isGp
;
/**
* 战采管理要求
*/
private
String
gpApplication
;
/**
* 合同是否执行战采价格
*/
private
String
isUseGpprice
;
/**
* 战采供应商ID
*/
private
String
fgpcustomerid
;
/**
* 分包合同版本
*/
private
Double
subcontractVersion
;
/**
* 流程状态
*/
private
String
fbizstatename
;
/**
* 流程状态
*/
private
String
fbizstate
;
/**
* 材料类型
*/
private
String
materialType
;
/**
* 数据加载时间
*/
private
String
loadTime
;
}
dsk-module/dsk-biz-api/src/main/java/com/dsk/cscec/mapper/DSubcontractMapper.java
0 → 100644
View file @
ea121979
package
com
.
dsk
.
cscec
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.dsk.cscec.domain.DSubcontract
;
/**
* 分包分供合同(DSubcontract)表数据库访问层
*
* @author lcl
* @since 2023-12-11 15:31:44
*/
public
interface
DSubcontractMapper
extends
BaseMapper
<
DSubcontract
>
{
Integer
selectEnterpriseCountByCustomerId
(
String
customerId
);
Integer
selectProjectCountByCustomerId
(
String
customerId
);
}
dsk-module/dsk-biz-api/src/main/java/com/dsk/cscec/service/IDCustomerService.java
View file @
ea121979
...
@@ -16,7 +16,5 @@ public interface IDCustomerService extends IService<DCustomer> {
...
@@ -16,7 +16,5 @@ public interface IDCustomerService extends IService<DCustomer> {
TableDataInfo
<
DCustomer
>
allSearchList
(
DCustomerSearchBo
bo
,
PageQuery
query
);
TableDataInfo
<
DCustomer
>
allSearchList
(
DCustomerSearchBo
bo
,
PageQuery
query
);
DCustomer
info
(
String
customerKey
);
}
}
dsk-module/dsk-biz-api/src/main/java/com/dsk/cscec/service/impl/DCustomerServiceImpl.java
View file @
ea121979
...
@@ -8,10 +8,12 @@ import com.dsk.common.core.page.TableDataInfo;
...
@@ -8,10 +8,12 @@ import com.dsk.common.core.page.TableDataInfo;
import
com.dsk.cscec.domain.bo.DCustomerSearchBo
;
import
com.dsk.cscec.domain.bo.DCustomerSearchBo
;
import
com.dsk.cscec.mapper.DCustomerMapper
;
import
com.dsk.cscec.mapper.DCustomerMapper
;
import
com.dsk.cscec.domain.DCustomer
;
import
com.dsk.cscec.domain.DCustomer
;
import
com.dsk.cscec.mapper.DSubcontractMapper
;
import
com.dsk.cscec.service.IDCustomerService
;
import
com.dsk.cscec.service.IDCustomerService
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
javax.annotation.Resource
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
...
@@ -24,24 +26,24 @@ import java.util.List;
...
@@ -24,24 +26,24 @@ import java.util.List;
@Service
@Service
public
class
DCustomerServiceImpl
extends
ServiceImpl
<
DCustomerMapper
,
DCustomer
>
implements
IDCustomerService
{
public
class
DCustomerServiceImpl
extends
ServiceImpl
<
DCustomerMapper
,
DCustomer
>
implements
IDCustomerService
{
@Resource
private
DSubcontractMapper
subcontractMapper
;
@Override
@Override
public
TableDataInfo
<
DCustomer
>
allSearchList
(
DCustomerSearchBo
bo
,
PageQuery
query
)
{
public
TableDataInfo
<
DCustomer
>
allSearchList
(
DCustomerSearchBo
bo
,
PageQuery
query
)
{
dealWithCustomerClass
(
bo
);
dealWithCustomerClass
(
bo
);
Page
<
DCustomer
>
page
=
baseMapper
.
allSearchList
(
query
.
build
(),
bo
);
Page
<
DCustomer
>
page
=
baseMapper
.
allSearchList
(
query
.
build
(),
bo
);
if
(
CollectionUtils
.
isNotEmpty
(
page
.
getRecords
()))
{
if
(
CollectionUtils
.
isNotEmpty
(
page
.
getRecords
()))
{
for
(
DCustomer
customer
:
page
.
getRecords
())
{
for
(
DCustomer
customer
:
page
.
getRecords
())
{
//企业合作数量
customer
.
setEnterpriseCooperationCount
(
subcontractMapper
.
selectEnterpriseCountByCustomerId
(
customer
.
getCustomerId
()));
//项目合作数量
customer
.
setProjectCooperationCount
(
subcontractMapper
.
selectProjectCountByCustomerId
(
customer
.
getCustomerId
()));
}
}
}
}
return
TableDataInfo
.
build
(
page
);
return
TableDataInfo
.
build
(
page
);
}
}
@Override
public
DCustomer
info
(
String
customerKey
)
{
return
baseMapper
.
selectById
(
customerKey
);
}
private
void
dealWithCustomerClass
(
DCustomerSearchBo
bo
)
{
private
void
dealWithCustomerClass
(
DCustomerSearchBo
bo
)
{
if
(!
ObjectUtils
.
isEmpty
(
bo
.
getCustomerClass
()))
{
if
(!
ObjectUtils
.
isEmpty
(
bo
.
getCustomerClass
()))
{
List
<
String
>
list
=
new
ArrayList
<>();
List
<
String
>
list
=
new
ArrayList
<>();
...
...
dsk-module/dsk-biz-api/src/main/resources/mapper/cscec/DSubcontractMapper.xml
0 → 100644
View file @
ea121979
<?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.dsk.cscec.mapper.DSubcontractMapper"
>
<select
id=
"selectEnterpriseCountByCustomerId"
resultType=
"java.lang.Integer"
>
select count(num) from (
select count(sign_org_id) num from d_subcontract where customer_id = #{customerId} group by sign_org_id
) a
</select>
<select
id=
"selectProjectCountByCustomerId"
resultType=
"java.lang.Integer"
>
select count(num) from (
select count(project_id) num from d_subcontract where customer_id = #{customerId} group by project_id
) a
</select>
</mapper>
\ No newline at end of file
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