Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
ims
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
ims
Commits
6f2e6552
提交
6f2e6552
authored
1月 22, 2024
作者:
刘明祎-运维用途
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
在小程序后台返回订单时候添加返回项目号与耳机订单名称
上级
bb21775c
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
82 行增加
和
9 行删除
+82
-9
ServiceOrderFormDetailsDTO.java
...om/mmc/csf/infomation/dto/ServiceOrderFormDetailsDTO.java
+6
-0
RequirementsInfoVO.java
...in/java/com/mmc/csf/infomation/vo/RequirementsInfoVO.java
+9
-0
IndustryTypeDTO.java
...in/java/com/mmc/csf/release/industry/IndustryTypeDTO.java
+2
-0
RequirementsInfoDO.java
...c/csf/release/entity/requirements/RequirementsInfoDO.java
+8
-0
ServiceOrderFormDetailsDO.java
...elease/entity/requirements/ServiceOrderFormDetailsDO.java
+4
-0
BackRequirementsServiceImpl.java
...csf/release/service/impl/BackRequirementsServiceImpl.java
+30
-0
RequirementsServiceImpl.java
...mmc/csf/release/service/impl/RequirementsServiceImpl.java
+12
-5
BackRequirementsDao.xml
...ain/resources/mapper/requirements/BackRequirementsDao.xml
+2
-1
RequirementsDao.xml
...rc/main/resources/mapper/requirements/RequirementsDao.xml
+9
-3
没有找到文件。
csf-common/csf-common-model/src/main/java/com/mmc/csf/infomation/dto/ServiceOrderFormDetailsDTO.java
浏览文件 @
6f2e6552
...
@@ -119,4 +119,10 @@ public class ServiceOrderFormDetailsDTO {
...
@@ -119,4 +119,10 @@ public class ServiceOrderFormDetailsDTO {
@ApiModelProperty
(
value
=
"订单对应的项目号"
)
@ApiModelProperty
(
value
=
"订单对应的项目号"
)
private
String
projectCode
;
private
String
projectCode
;
@ApiModelProperty
(
value
=
"二级服务id"
)
private
Integer
inspectionId
;
@ApiModelProperty
(
value
=
"二级服务名称"
)
private
String
inspectionName
;
}
}
csf-common/csf-common-model/src/main/java/com/mmc/csf/infomation/vo/RequirementsInfoVO.java
浏览文件 @
6f2e6552
...
@@ -201,4 +201,13 @@ public class RequirementsInfoVO implements Serializable {
...
@@ -201,4 +201,13 @@ public class RequirementsInfoVO implements Serializable {
@ApiModelProperty
(
value
=
"管理员操作"
)
@ApiModelProperty
(
value
=
"管理员操作"
)
private
int
teamStatus
;
private
int
teamStatus
;
@ApiModelProperty
(
value
=
"二级分类id"
)
private
int
inspectionId
;
@ApiModelProperty
(
value
=
"项目号"
)
private
String
projectCode
;
@ApiModelProperty
(
value
=
"二级分类名称"
)
private
String
inspectionName
;
}
}
csf-common/csf-common-model/src/main/java/com/mmc/csf/release/industry/IndustryTypeDTO.java
浏览文件 @
6f2e6552
...
@@ -35,4 +35,6 @@ public class IndustryTypeDTO implements Serializable {
...
@@ -35,4 +35,6 @@ public class IndustryTypeDTO implements Serializable {
private
Date
createTime
;
private
Date
createTime
;
@ApiModelProperty
(
value
=
"服务列表"
)
@ApiModelProperty
(
value
=
"服务列表"
)
private
List
<
InspectionDTO
>
inspectionDTOS
;
private
List
<
InspectionDTO
>
inspectionDTOS
;
@ApiModelProperty
(
value
=
"二级分类名称"
)
private
String
inspectionName
;
}
}
release-service/src/main/java/com/mmc/csf/release/entity/requirements/RequirementsInfoDO.java
浏览文件 @
6f2e6552
...
@@ -189,6 +189,12 @@ public class RequirementsInfoDO implements Serializable {
...
@@ -189,6 +189,12 @@ public class RequirementsInfoDO implements Serializable {
@ApiModelProperty
(
value
=
"管理员操作"
)
@ApiModelProperty
(
value
=
"管理员操作"
)
private
int
teamStatus
;
private
int
teamStatus
;
@ApiModelProperty
(
value
=
"二级分类id"
)
private
int
inspectionId
;
@ApiModelProperty
(
value
=
"项目号"
)
private
String
projectCode
;
public
RequirementsInfoVO
buildRequirementsInfoVO
()
{
public
RequirementsInfoVO
buildRequirementsInfoVO
()
{
return
RequirementsInfoVO
.
builder
().
id
(
this
.
id
).
requirementTypeId
(
this
.
requirementTypeId
).
userAccountId
(
this
.
userAccountId
).
publishName
(
this
.
publishName
)
return
RequirementsInfoVO
.
builder
().
id
(
this
.
id
).
requirementTypeId
(
this
.
requirementTypeId
).
userAccountId
(
this
.
userAccountId
).
publishName
(
this
.
publishName
)
.
publishPhone
(
this
.
publishPhone
).
requireDescription
(
this
.
requireDescription
).
solved
(
this
.
solved
).
taskStartTime
(
this
.
taskStartTime
).
taskEndTime
(
this
.
taskEndTime
)
.
publishPhone
(
this
.
publishPhone
).
requireDescription
(
this
.
requireDescription
).
solved
(
this
.
solved
).
taskStartTime
(
this
.
taskStartTime
).
taskEndTime
(
this
.
taskEndTime
)
...
@@ -228,6 +234,8 @@ public class RequirementsInfoDO implements Serializable {
...
@@ -228,6 +234,8 @@ public class RequirementsInfoDO implements Serializable {
.
serviceFlowId
(
this
.
serviceFlowId
)
.
serviceFlowId
(
this
.
serviceFlowId
)
.
teamStatus
(
this
.
teamStatus
)
.
teamStatus
(
this
.
teamStatus
)
.
tempId
(
this
.
tempId
)
.
tempId
(
this
.
tempId
)
.
inspectionId
(
this
.
inspectionId
)
.
projectCode
(
this
.
projectCode
)
.
build
();
.
build
();
}
}
...
...
release-service/src/main/java/com/mmc/csf/release/entity/requirements/ServiceOrderFormDetailsDO.java
浏览文件 @
6f2e6552
...
@@ -116,6 +116,9 @@ public class ServiceOrderFormDetailsDO {
...
@@ -116,6 +116,9 @@ public class ServiceOrderFormDetailsDO {
@ApiModelProperty
(
value
=
"订单对应的项目号"
)
@ApiModelProperty
(
value
=
"订单对应的项目号"
)
private
String
projectCode
;
private
String
projectCode
;
@ApiModelProperty
(
value
=
"二级服务id"
)
private
Integer
inspectionId
;
public
ServiceOrderFormDetailsDTO
buildOrderFormDetails
()
{
public
ServiceOrderFormDetailsDTO
buildOrderFormDetails
()
{
return
ServiceOrderFormDetailsDTO
.
builder
()
return
ServiceOrderFormDetailsDTO
.
builder
()
...
@@ -146,6 +149,7 @@ public class ServiceOrderFormDetailsDO {
...
@@ -146,6 +149,7 @@ public class ServiceOrderFormDetailsDO {
.
duty
(
this
.
duty
)
.
duty
(
this
.
duty
)
.
decisionContent
(
this
.
decisionContent
)
.
decisionContent
(
this
.
decisionContent
)
.
projectCode
(
this
.
projectCode
)
.
projectCode
(
this
.
projectCode
)
.
inspectionId
(
this
.
inspectionId
)
.
build
();
.
build
();
}
}
}
}
release-service/src/main/java/com/mmc/csf/release/service/impl/BackRequirementsServiceImpl.java
浏览文件 @
6f2e6552
package
com
.
mmc
.
csf
.
release
.
service
.
impl
;
package
com
.
mmc
.
csf
.
release
.
service
.
impl
;
import
com.alibaba.fastjson.JSONObject
;
import
com.mmc.csf.common.util.page.PageResult
;
import
com.mmc.csf.common.util.page.PageResult
;
import
com.mmc.csf.common.util.web.ResultBody
;
import
com.mmc.csf.common.util.web.ResultBody
;
import
com.mmc.csf.config.IsNullConvertZeroUtil
;
import
com.mmc.csf.config.IsNullConvertZeroUtil
;
...
@@ -16,11 +17,15 @@ import com.mmc.csf.release.entity.requirements.ServiceOrderFormDO;
...
@@ -16,11 +17,15 @@ import com.mmc.csf.release.entity.requirements.ServiceOrderFormDO;
import
com.mmc.csf.release.entity.requirements.ServiceOrderFormDetailsDO
;
import
com.mmc.csf.release.entity.requirements.ServiceOrderFormDetailsDO
;
import
com.mmc.csf.release.enums.ServiceIdEnum
;
import
com.mmc.csf.release.enums.ServiceIdEnum
;
import
com.mmc.csf.release.feign.UserAppApi
;
import
com.mmc.csf.release.feign.UserAppApi
;
import
com.mmc.csf.release.industry.IndustryTypeDTO
;
import
com.mmc.csf.release.service.BackRequirementsService
;
import
com.mmc.csf.release.service.BackRequirementsService
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.http.*
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.client.RestTemplate
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.List
;
import
java.util.List
;
...
@@ -43,11 +48,15 @@ public class BackRequirementsServiceImpl implements BackRequirementsService {
...
@@ -43,11 +48,15 @@ public class BackRequirementsServiceImpl implements BackRequirementsService {
private
RequirementsDao
requirementsDao
;
private
RequirementsDao
requirementsDao
;
@Autowired
@Autowired
private
RestTemplate
restTemplate
;
@Autowired
private
UserAppApi
userAppApi
;
private
UserAppApi
userAppApi
;
@Autowired
@Autowired
private
OrderAmountDetailDao
orderAmountDetailDao
;
private
OrderAmountDetailDao
orderAmountDetailDao
;
@Value
(
"${iuav.pmsapp.url}"
)
private
String
pmsApp
;
@Override
@Override
public
PageResult
serviceOrderFormList
(
ServiceOrderQO
param
,
LoginSuccessDTO
userLoginInfoFromRedis
)
{
public
PageResult
serviceOrderFormList
(
ServiceOrderQO
param
,
LoginSuccessDTO
userLoginInfoFromRedis
)
{
...
@@ -145,6 +154,11 @@ public class BackRequirementsServiceImpl implements BackRequirementsService {
...
@@ -145,6 +154,11 @@ public class BackRequirementsServiceImpl implements BackRequirementsService {
}
}
ServiceOrderFormDetailsDO
orderFormDetailsDO
=
backRequirementsDao
.
serviceOrderFormDetails
(
requirementsInfoId
);
ServiceOrderFormDetailsDO
orderFormDetailsDO
=
backRequirementsDao
.
serviceOrderFormDetails
(
requirementsInfoId
);
ServiceOrderFormDetailsDTO
serviceOrderFormDetailsDTO
=
orderFormDetailsDO
.
buildOrderFormDetails
();
ServiceOrderFormDetailsDTO
serviceOrderFormDetailsDTO
=
orderFormDetailsDO
.
buildOrderFormDetails
();
IndustryTypeDTO
industryTypeDTO
=
getIndustryTypeById
(
serviceOrderFormDetailsDTO
.
getServiceId
(),
serviceOrderFormDetailsDTO
.
getInspectionId
());
serviceOrderFormDetailsDTO
.
setInspectionName
(
industryTypeDTO
.
getInspectionName
());
IsNullConvertZeroUtil
.
checkIsNull
(
serviceOrderFormDetailsDTO
);
IsNullConvertZeroUtil
.
checkIsNull
(
serviceOrderFormDetailsDTO
);
requireEveryStatusVO
.
setServiceOrderFormDetailsDTO
(
serviceOrderFormDetailsDTO
);
requireEveryStatusVO
.
setServiceOrderFormDetailsDTO
(
serviceOrderFormDetailsDTO
);
...
@@ -193,4 +207,20 @@ public class BackRequirementsServiceImpl implements BackRequirementsService {
...
@@ -193,4 +207,20 @@ public class BackRequirementsServiceImpl implements BackRequirementsService {
orderAmountDetailDao
.
batchInsert
(
list
);
orderAmountDetailDao
.
batchInsert
(
list
);
return
ResultBody
.
success
();
return
ResultBody
.
success
();
}
}
public
IndustryTypeDTO
getIndustryTypeById
(
Integer
serviceId
,
Integer
inspectionId
)
{
HttpHeaders
headers
=
new
HttpHeaders
();
headers
.
setContentType
(
MediaType
.
APPLICATION_JSON
);
HttpEntity
<
String
>
entity
=
new
HttpEntity
<>(
null
,
headers
);
String
url
=
null
;
if
(
inspectionId
!=
null
){
url
=
String
.
format
(
"%s/pms/industry/getIndustryTypeById?id=%s&inspectionId=%s"
,
pmsApp
,
serviceId
,
inspectionId
);
}
else
{
url
=
String
.
format
(
"%s/pms/industry/getIndustryTypeById?id=%s"
,
pmsApp
,
serviceId
);
}
ResponseEntity
<
String
>
exchange
=
restTemplate
.
exchange
(
url
,
HttpMethod
.
GET
,
entity
,
String
.
class
);
String
body
=
exchange
.
getBody
();
IndustryTypeDTO
industryTypeDTO
=
JSONObject
.
parseObject
(
body
,
IndustryTypeDTO
.
class
);
return
industryTypeDTO
;
}
}
}
release-service/src/main/java/com/mmc/csf/release/service/impl/RequirementsServiceImpl.java
浏览文件 @
6f2e6552
...
@@ -249,8 +249,9 @@ public class RequirementsServiceImpl implements RequirementsService {
...
@@ -249,8 +249,9 @@ public class RequirementsServiceImpl implements RequirementsService {
requirementsInfoVO
.
setPublishAccountId
(
requirementsInfoDO
.
getUserAccountId
());
requirementsInfoVO
.
setPublishAccountId
(
requirementsInfoDO
.
getUserAccountId
());
requirementsInfoVO
.
setRequirementsInfoId
(
requirementsInfoDO
.
getId
());
requirementsInfoVO
.
setRequirementsInfoId
(
requirementsInfoDO
.
getId
());
//IndustryTypeDTO industryTypeDTO = pmsAppApi.feignQquerygetIndustryTypeById(requirementsInfoVO.getServiceId());
//IndustryTypeDTO industryTypeDTO = pmsAppApi.feignQquerygetIndustryTypeById(requirementsInfoVO.getServiceId());
IndustryTypeDTO
industryTypeDTO
=
getIndustryTypeById
(
requirementsInfoVO
.
getServiceId
());
IndustryTypeDTO
industryTypeDTO
=
getIndustryTypeById
(
requirementsInfoVO
.
getServiceId
()
,
requirementsInfoVO
.
getInspectionId
()
);
requirementsInfoVO
.
setServiceName
(
industryTypeDTO
.
getTypeName
());
requirementsInfoVO
.
setServiceName
(
industryTypeDTO
.
getTypeName
());
requirementsInfoVO
.
setInspectionName
(
industryTypeDTO
.
getInspectionName
());
//已经支付
//已经支付
String
s
=
stringRedisTemplate
.
opsForValue
().
get
(
requirementsInfoDO
.
getId
().
toString
());
String
s
=
stringRedisTemplate
.
opsForValue
().
get
(
requirementsInfoDO
.
getId
().
toString
());
RequirementsInfoVO
orderVO
=
JSON
.
parseObject
(
s
,
RequirementsInfoVO
.
class
);
RequirementsInfoVO
orderVO
=
JSON
.
parseObject
(
s
,
RequirementsInfoVO
.
class
);
...
@@ -2318,7 +2319,7 @@ public class RequirementsServiceImpl implements RequirementsService {
...
@@ -2318,7 +2319,7 @@ public class RequirementsServiceImpl implements RequirementsService {
if
(
tempTotalAmount
.
compareTo
(
BigDecimal
.
ZERO
)
==
0
)
{
if
(
tempTotalAmount
.
compareTo
(
BigDecimal
.
ZERO
)
==
0
)
{
requirementsDao
.
InsertRequirementsAmountLog
(
requirementsInfoDO
);
requirementsDao
.
InsertRequirementsAmountLog
(
requirementsInfoDO
);
IndustryTypeDTO
industryTypeDTO
=
getIndustryTypeById
(
requirementsEditVO
.
getServiceId
());
IndustryTypeDTO
industryTypeDTO
=
getIndustryTypeById
(
requirementsEditVO
.
getServiceId
()
,
null
);
infoDO
.
setServiceName
(
industryTypeDTO
.
getTypeName
());
infoDO
.
setServiceName
(
industryTypeDTO
.
getTypeName
());
requirementsDao
.
updateRequirementsInfo
(
infoDO
);
requirementsDao
.
updateRequirementsInfo
(
infoDO
);
BigDecimal
add
=
amountDO
.
getOrderAmount
().
add
(
requirementsInfoDO
.
getOrderLevelAmount
());
BigDecimal
add
=
amountDO
.
getOrderAmount
().
add
(
requirementsInfoDO
.
getOrderLevelAmount
());
...
@@ -2819,7 +2820,7 @@ public class RequirementsServiceImpl implements RequirementsService {
...
@@ -2819,7 +2820,7 @@ public class RequirementsServiceImpl implements RequirementsService {
}
}
}
}
}
}
IndustryTypeDTO
industryTypeDTO
=
getIndustryTypeById
(
requirementsInfoDO
.
getServiceId
());
IndustryTypeDTO
industryTypeDTO
=
getIndustryTypeById
(
requirementsInfoDO
.
getServiceId
()
,
null
);
requirementsInfoDO
.
setServiceName
(
industryTypeDTO
.
getTypeName
());
requirementsInfoDO
.
setServiceName
(
industryTypeDTO
.
getTypeName
());
requirementsInfoDO
.
setOpenid
(
openid
);
requirementsInfoDO
.
setOpenid
(
openid
);
// sum是1说明订单只需一个人 sum>1 说明是多人需要创建子订单
// sum是1说明订单只需一个人 sum>1 说明是多人需要创建子订单
...
@@ -3768,11 +3769,17 @@ public class RequirementsServiceImpl implements RequirementsService {
...
@@ -3768,11 +3769,17 @@ public class RequirementsServiceImpl implements RequirementsService {
}
}
public
IndustryTypeDTO
getIndustryTypeById
(
Integer
serviceId
)
{
public
IndustryTypeDTO
getIndustryTypeById
(
Integer
serviceId
,
Integer
inspectionId
)
{
HttpHeaders
headers
=
new
HttpHeaders
();
HttpHeaders
headers
=
new
HttpHeaders
();
headers
.
setContentType
(
MediaType
.
APPLICATION_JSON
);
headers
.
setContentType
(
MediaType
.
APPLICATION_JSON
);
HttpEntity
<
String
>
entity
=
new
HttpEntity
<>(
null
,
headers
);
HttpEntity
<
String
>
entity
=
new
HttpEntity
<>(
null
,
headers
);
ResponseEntity
<
String
>
exchange
=
restTemplate
.
exchange
(
pmsApp
+
"/pms/industry/getIndustryTypeById?id=+"
+
serviceId
,
HttpMethod
.
GET
,
entity
,
String
.
class
);
String
url
=
null
;
if
(
inspectionId
!=
null
){
url
=
String
.
format
(
"%s/pms/industry/getIndustryTypeById?id=%s&inspectionId=%s"
,
pmsApp
,
serviceId
,
inspectionId
);
}
else
{
url
=
String
.
format
(
"%s/pms/industry/getIndustryTypeById?id=%s"
,
pmsApp
,
serviceId
);
}
ResponseEntity
<
String
>
exchange
=
restTemplate
.
exchange
(
url
,
HttpMethod
.
GET
,
entity
,
String
.
class
);
String
body
=
exchange
.
getBody
();
String
body
=
exchange
.
getBody
();
IndustryTypeDTO
industryTypeDTO
=
JSONObject
.
parseObject
(
body
,
IndustryTypeDTO
.
class
);
IndustryTypeDTO
industryTypeDTO
=
JSONObject
.
parseObject
(
body
,
IndustryTypeDTO
.
class
);
return
industryTypeDTO
;
return
industryTypeDTO
;
...
...
release-service/src/main/resources/mapper/requirements/BackRequirementsDao.xml
浏览文件 @
6f2e6552
...
@@ -201,7 +201,8 @@
...
@@ -201,7 +201,8 @@
sf.doing,
sf.doing,
ra.order_earnings,
ra.order_earnings,
csi.decision_content,
csi.decision_content,
csi.duty
csi.duty,
ri.inspection_id
FROM
FROM
requirements_info ri
requirements_info ri
LEFT JOIN requirements_amount ra ON ri.id = ra.requirements_info_id
LEFT JOIN requirements_amount ra ON ri.id = ra.requirements_info_id
...
...
release-service/src/main/resources/mapper/requirements/RequirementsDao.xml
浏览文件 @
6f2e6552
...
@@ -501,7 +501,9 @@
...
@@ -501,7 +501,9 @@
rau.url AS afterModificationUrl,
rau.url AS afterModificationUrl,
rs.pilot_certification_user_id AS pilotCertificationUserId,
rs.pilot_certification_user_id AS pilotCertificationUserId,
rs.preempt_phone AS preemptPhone,
rs.preempt_phone AS preemptPhone,
rs.pilot_certification_id
rs.pilot_certification_id,
ri.inspection_id,
ri.project_code
FROM requirements_info ri
FROM requirements_info ri
LEFT JOIN requirements_type rt
LEFT JOIN requirements_type rt
ON rt.id = ri.requirement_type_id
ON rt.id = ri.requirement_type_id
...
@@ -1787,7 +1789,9 @@
...
@@ -1787,7 +1789,9 @@
rau.url AS afterModificationUrl,
rau.url AS afterModificationUrl,
rs.pilot_certification_user_id AS pilotCertificationUserId,
rs.pilot_certification_user_id AS pilotCertificationUserId,
rs.preempt_phone AS preemptPhone,
rs.preempt_phone AS preemptPhone,
rs.pilot_certification_id
rs.pilot_certification_id,
ri.inspection_id,
ri.project_code
FROM requirements_info ri
FROM requirements_info ri
LEFT JOIN requirements_type rt
LEFT JOIN requirements_type rt
ON rt.id = ri.requirement_type_id
ON rt.id = ri.requirement_type_id
...
@@ -2141,7 +2145,9 @@
...
@@ -2141,7 +2145,9 @@
rau.url AS afterModificationUrl,
rau.url AS afterModificationUrl,
rs.pilot_certification_user_id AS pilotCertificationUserId,
rs.pilot_certification_user_id AS pilotCertificationUserId,
rs.pilot_certification_id,
rs.pilot_certification_id,
rs.team_status
rs.team_status,
ri.inspection_id,
ri.project_code
FROM requirements_info ri
FROM requirements_info ri
LEFT JOIN requirements_type rt
LEFT JOIN requirements_type rt
ON rt.id = ri.requirement_type_id
ON rt.id = ri.requirement_type_id
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论