Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
095385f2
Commit
095385f2
authored
Apr 03, 2023
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改ugp,新增openapi的tzsfeign包
parent
b2a75784
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
166 additions
and
30 deletions
+166
-30
MultipartSupportConfig.java
...ejoin/amos/api/openapi/config/MultipartSupportConfig.java
+36
-0
TzsServiceFeignClient.java
...yeejoin/amos/api/openapi/feign/TzsServiceFeignClient.java
+25
-0
OrgUsrMapper.java
...join/amos/boot/module/common/api/mapper/OrgUsrMapper.java
+1
-0
OrgUsrMapper.xml
...ule-common-api/src/main/resources/mapper/OrgUsrMapper.xml
+3
-0
CompanyTypeEnum.java
...eejoin/amos/boot/module/ugp/api/Enum/CompanyTypeEnum.java
+2
-1
ProjectDto.java
.../com/yeejoin/amos/boot/module/ugp/api/dto/ProjectDto.java
+10
-0
PipeController.java
...n/amos/boot/module/ugp/biz/controller/PipeController.java
+2
-2
WorkHistoryController.java
...boot/module/ugp/biz/controller/WorkHistoryController.java
+15
-4
CompanyServiceImpl.java
.../boot/module/ugp/biz/service/impl/CompanyServiceImpl.java
+41
-14
OrgServiceImpl.java
...amos/boot/module/ugp/biz/service/impl/OrgServiceImpl.java
+23
-9
ProjectServiceImpl.java
.../boot/module/ugp/biz/service/impl/ProjectServiceImpl.java
+8
-0
No files found.
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/config/MultipartSupportConfig.java
0 → 100644
View file @
095385f2
package
com
.
yeejoin
.
amos
.
api
.
openapi
.
config
;
import
feign.codec.Encoder
;
import
feign.form.spring.SpringFormEncoder
;
import
org.springframework.beans.factory.ObjectFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.autoconfigure.http.HttpMessageConverters
;
import
org.springframework.cloud.openfeign.support.SpringEncoder
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.web.context.request.RequestContextListener
;
/**
* @Author: xl
* @Description:
* @Date: 2020/3/30 16:26
*/
@Configuration
public
class
MultipartSupportConfig
{
@Autowired
private
ObjectFactory
<
HttpMessageConverters
>
messageConverters
;
@Bean
public
Encoder
feignFormEncoder
()
{
return
new
SpringFormEncoder
(
new
SpringEncoder
(
messageConverters
));
}
/**
* 创建Feign请求拦截器,在发送请求前设置认证的token,各个微服务将token设置到环境变量中来达到通用
* @return
*/
@Bean
public
RequestContextListener
requestInterceptor
()
{
return
new
RequestContextListener
();
}
}
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/feign/TzsServiceFeignClient.java
0 → 100644
View file @
095385f2
package
com
.
yeejoin
.
amos
.
api
.
openapi
.
feign
;
import
com.yeejoin.amos.api.openapi.config.MultipartSupportConfig
;
import
net.sf.json.JSONObject
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.util.List
;
@FeignClient
(
name
=
"TZS"
,
path
=
"/tzs"
,
configuration
=
{
MultipartSupportConfig
.
class
})
public
interface
TzsServiceFeignClient
{
/**
* 根据企业名称查询许可信息
* @param companyNames 企业名称(多个)
* @return
*/
@RequestMapping
(
value
=
"/baseUnitLicence/licences"
,
method
=
RequestMethod
.
POST
)
ResponseModel
<
List
<
JSONObject
>>
getLicenceByCompanyName
(
@RequestBody
List
<
String
>
companyNames
);
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/mapper/OrgUsrMapper.java
View file @
095385f2
...
@@ -130,4 +130,5 @@ public interface OrgUsrMapper extends BaseMapper<OrgUsr> {
...
@@ -130,4 +130,5 @@ public interface OrgUsrMapper extends BaseMapper<OrgUsr> {
List
<
Map
<
String
,
Object
>>
getWelderListByProjectId
(
@Param
(
"projectId"
)
String
projectId
,
@Param
(
"companyId"
)
Long
companyId
,
@Param
(
"name"
)
String
name
);
List
<
Map
<
String
,
Object
>>
getWelderListByProjectId
(
@Param
(
"projectId"
)
String
projectId
,
@Param
(
"companyId"
)
Long
companyId
,
@Param
(
"name"
)
String
name
);
boolean
updateIdByOrgName
(
Long
sequenceNbr
,
String
orgBizName
);
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/OrgUsrMapper.xml
View file @
095385f2
...
@@ -933,5 +933,8 @@ LEFT JOIN (
...
@@ -933,5 +933,8 @@ LEFT JOIN (
</select>
</select>
<update
id=
"updateIdByOrgName"
>
UPDATE cb_org_usr SET sequence_nbr = #{sequenceNbr} WHERE biz_org_name = #{orgBizName}
</update>
</mapper>
</mapper>
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/Enum/CompanyTypeEnum.java
View file @
095385f2
...
@@ -18,7 +18,8 @@ public enum CompanyTypeEnum {
...
@@ -18,7 +18,8 @@ public enum CompanyTypeEnum {
安装单位
(
"INSTALL"
,
"安装单位"
,
"安装改造维修单位"
),
安装单位
(
"INSTALL"
,
"安装单位"
,
"安装改造维修单位"
),
设计单位
(
"DESIGN"
,
"设计单位"
,
"设计单位"
),
设计单位
(
"DESIGN"
,
"设计单位"
,
"设计单位"
),
监检机构
(
"MONITORING"
,
"检验检测单位"
,
"检验检测机构"
),
监检机构
(
"MONITORING"
,
"检验检测单位"
,
"检验检测机构"
),
监理单位
(
"SUPERVISOR"
,
"监理单位"
,
"监理单位(燃气管道)"
);
监理单位
(
"SUPERVISOR"
,
"监理单位"
,
"监理单位(燃气管道)"
),
监察单位
(
"SUPERVISION"
,
"监察单位"
,
"监察单位"
);
String
key
;
String
key
;
String
type
;
String
type
;
...
...
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/dto/ProjectDto.java
View file @
095385f2
...
@@ -200,4 +200,14 @@ public class ProjectDto extends BaseDto {
...
@@ -200,4 +200,14 @@ public class ProjectDto extends BaseDto {
private
String
creditCode
;
private
String
creditCode
;
private
String
completionEstimateString
;
private
String
completionEstimateString
;
private
String
constructionLicenseCode
;
private
String
designLicenseCode
;
private
String
installationLicenseCode
;
private
String
supervisionLicenseCode
;
private
String
testingLicenseCode
;
}
}
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/PipeController.java
View file @
095385f2
...
@@ -164,8 +164,8 @@ public class PipeController extends BaseController {
...
@@ -164,8 +164,8 @@ public class PipeController extends BaseController {
List
<
DictionarieValueModel
>
result
=
commonlyUsed
.
getResult
();
List
<
DictionarieValueModel
>
result
=
commonlyUsed
.
getResult
();
result
.
forEach
(
item
->
{
result
.
forEach
(
item
->
{
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"
name
"
,
item
.
getDictDataKey
());
map
.
put
(
"
label
"
,
item
.
getDictDataKey
());
map
.
put
(
"
url
"
,
item
.
getDictDataValue
());
map
.
put
(
"
value
"
,
item
.
getDictDataValue
());
map
.
put
(
"img"
,
item
.
getDictDataDesc
());
map
.
put
(
"img"
,
item
.
getDictDataDesc
());
maps
.
add
(
map
);
maps
.
add
(
map
);
});
});
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/WorkHistoryController.java
View file @
095385f2
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.yeejoin.amos.boot.biz.common.utils.NameUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.NameUtils
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.WorkHistory
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.WorkHistory
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -70,14 +71,24 @@ public class WorkHistoryController extends BaseController {
...
@@ -70,14 +71,24 @@ public class WorkHistoryController extends BaseController {
/**
/**
* 根据sequenceNbr删除
* 根据sequenceNbr删除
*
*
* @param sequenceNbr 主键
* @param sequenceNbr
s
主键
* @return
* @return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/{sequenceNbr}"
)
@DeleteMapping
(
value
=
"/{sequenceNbrs}"
)
@Transactional
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除焊工工作履历表"
,
notes
=
"根据sequenceNbr删除焊工工作履历表"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除焊工工作履历表"
,
notes
=
"根据sequenceNbr删除焊工工作履历表"
)
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
){
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbrs"
)
List
<
Long
>
sequenceNbrs
){
return
ResponseHelper
.
buildResponse
(
workHistoryServiceImpl
.
removeById
(
sequenceNbr
));
boolean
result
=
true
;
if
(!
ValidationUtil
.
isEmpty
(
sequenceNbrs
)){
for
(
Long
sequenceNbr:
sequenceNbrs
)
{
result
=
workHistoryServiceImpl
.
removeById
(
sequenceNbr
);
if
(!
result
){
break
;
}
}
}
return
ResponseHelper
.
buildResponse
(
result
);
}
}
/**
/**
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/CompanyServiceImpl.java
View file @
095385f2
...
@@ -20,6 +20,7 @@ import com.yeejoin.amos.boot.module.ugp.api.mapper.SuperviseRuleMapper;
...
@@ -20,6 +20,7 @@ import com.yeejoin.amos.boot.module.ugp.api.mapper.SuperviseRuleMapper;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.UnitLicenceMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.UnitLicenceMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.service.ICompanyService
;
import
com.yeejoin.amos.boot.module.ugp.api.service.ICompanyService
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.CompanyDto
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.CompanyDto
;
import
com.yeejoin.amos.boot.module.ugp.biz.fegin.TzsServiceFeignClient
;
import
com.yeejoin.amos.boot.module.ugp.biz.framework.BusinessIdentify
;
import
com.yeejoin.amos.boot.module.ugp.biz.framework.BusinessIdentify
;
import
com.yeejoin.amos.component.robot.AmosRequestContext
;
import
com.yeejoin.amos.component.robot.AmosRequestContext
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
...
@@ -84,6 +85,9 @@ public class CompanyServiceImpl extends BaseService<CompanyDto, Company, Company
...
@@ -84,6 +85,9 @@ public class CompanyServiceImpl extends BaseService<CompanyDto, Company, Company
@Autowired
@Autowired
AmosRequestContext
requestContext
;
AmosRequestContext
requestContext
;
@Autowired
TzsServiceFeignClient
tzsServiceFeign
;
/**
/**
* 列表查询 示例
* 列表查询 示例
*/
*/
...
@@ -402,15 +406,19 @@ public class CompanyServiceImpl extends BaseService<CompanyDto, Company, Company
...
@@ -402,15 +406,19 @@ public class CompanyServiceImpl extends BaseService<CompanyDto, Company, Company
return
model
;
return
model
;
}
}
public
JSONObject
getUnitLicenseCode
(
Long
unitId
)
{
public
JSONObject
getUnitLicenseCode
(
Long
unitId
)
{
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
if
(!
ValidationUtil
.
isEmpty
(
unitId
))
{
if
(!
ValidationUtil
.
isEmpty
(
unitId
))
{
UnitLicence
unitLicence
=
new
UnitLicence
();
UnitLicence
unitLicence
=
new
UnitLicence
();
Company
company
=
companyServiceImpl
.
getById
(
unitId
);
Company
company
=
companyServiceImpl
.
getById
(
unitId
);
String
creditCode
=
company
.
getCreditCode
();
if
(
ValidationUtil
.
isEmpty
(
company
)){
LambdaQueryWrapper
<
UnitLicence
>
wrapper
=
new
LambdaQueryWrapper
<>();
return
jsonObject
;
wrapper
.
eq
(
UnitLicence:
:
getUnitCode
,
creditCode
);
}
List
<
UnitLicence
>
list
=
unitLicenceService
.
list
(
wrapper
);
List
<
String
>
companyName
=
new
ArrayList
<>();
companyName
.
add
(
company
.
getName
());
List
<
UnitLicence
>
list
=
tzsServiceFeign
.
getLicenceByCompanyName
(
companyName
).
getResult
();
Iterator
<
UnitLicence
>
iterator
=
list
.
iterator
();
Iterator
<
UnitLicence
>
iterator
=
list
.
iterator
();
String
licenseCode
=
""
;
String
licenseCode
=
""
;
while
(
iterator
.
hasNext
())
{
while
(
iterator
.
hasNext
())
{
...
@@ -426,6 +434,10 @@ public class CompanyServiceImpl extends BaseService<CompanyDto, Company, Company
...
@@ -426,6 +434,10 @@ public class CompanyServiceImpl extends BaseService<CompanyDto, Company, Company
return
jsonObject
;
return
jsonObject
;
}
}
public
String
licenseCode
(
Long
unitId
){
return
getUnitLicenseCode
(
unitId
).
getString
(
"licenseCode"
);
}
public
void
syncCompany
(
Object
object
)
throws
Exception
{
public
void
syncCompany
(
Object
object
)
throws
Exception
{
// ugpAuthServiceImpl.setRequestContext();
// ugpAuthServiceImpl.setRequestContext();
RequestContext
.
setAppKey
(
"AMOS_STUDIO"
);
RequestContext
.
setAppKey
(
"AMOS_STUDIO"
);
...
@@ -445,16 +457,31 @@ public class CompanyServiceImpl extends BaseService<CompanyDto, Company, Company
...
@@ -445,16 +457,31 @@ public class CompanyServiceImpl extends BaseService<CompanyDto, Company, Company
}
}
}
}
Collection
<
RegionModel
>
regionModels
=
Systemctl
.
regionClient
.
queryForTree
(
jsonObject
.
getString
(
"district"
)).
getResult
();
Collection
<
RegionModel
>
regionModels
=
Systemctl
.
regionClient
.
queryForTree
(
jsonObject
.
getString
(
"district"
)).
getResult
();
RegionModel
provence
=
regionModels
.
iterator
().
next
();
if
(
ValidationUtil
.
isEmpty
(
regionModels
)){
RegionModel
city
=
provence
.
getChildren
().
iterator
().
next
();
String
city
=
jsonObject
.
getString
(
"city"
);
RegionModel
district
=
city
.
getChildren
().
iterator
().
next
();
if
(
city
.
length
()>
6
){
int
regionCodeD
=
district
.
getRegionCode
();
city
=
city
.
substring
(
6
);
int
regionCodeC
=
city
.
getRegionCode
();
}
else
if
(
city
.
length
()<=
6
&&
city
.
length
()>
3
){
int
regionCodeP
=
provence
.
getRegionCode
();
city
=
city
.
substring
(
3
);
model
.
setRegionCode
(
String
.
valueOf
(
regionCodeD
));
}
model
.
setRegionCodeD
(
String
.
valueOf
(
regionCodeD
));
regionModels
=
Systemctl
.
regionClient
.
queryForTree
(
city
).
getResult
();
model
.
setRegionCodeC
(
String
.
valueOf
(
regionCodeC
));
}
model
.
setRegionCodeP
(
String
.
valueOf
(
regionCodeP
));
RegionModel
city
=
new
RegionModel
(),
district
=
new
RegionModel
(),
provence
=
new
RegionModel
();
provence
=
regionModels
.
iterator
().
next
();
if
(!
ValidationUtil
.
isEmpty
(
provence
.
getChildren
()))
{
city
=
provence
.
getChildren
().
iterator
().
next
();
if
(!
ValidationUtil
.
isEmpty
(
city
.
getChildren
()))
{
district
=
city
.
getChildren
().
iterator
().
next
();
}
}
String
regionCodeD
=
!
ValidationUtil
.
isEmpty
(
district
)?
String
.
valueOf
(
district
.
getRegionCode
())
:
""
;
String
regionCodeC
=
!
ValidationUtil
.
isEmpty
(
city
)?
String
.
valueOf
(
city
.
getRegionCode
())
:
""
;
String
regionCodeP
=
!
ValidationUtil
.
isEmpty
(
provence
)?
String
.
valueOf
(
provence
.
getRegionCode
())
:
""
;
String
regionCode
=
!
ValidationUtil
.
isEmpty
(
regionCodeD
)?
regionCodeD:
(!
ValidationUtil
.
isEmpty
(
regionCodeC
)?
regionCodeC:
regionCodeP
);
model
.
setRegionCode
(
regionCode
);
model
.
setRegionCodeD
(
regionCodeD
);
model
.
setRegionCodeC
(
regionCodeC
);
model
.
setRegionCodeP
(
regionCodeP
);
model
.
setType
(
type
);
model
.
setType
(
type
);
model
.
setCreditCode
(
jsonObject
.
getString
(
"unitCode"
));
model
.
setCreditCode
(
jsonObject
.
getString
(
"unitCode"
));
model
.
setContact
(
jsonObject
.
getString
(
"adminName"
));
model
.
setContact
(
jsonObject
.
getString
(
"adminName"
));
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/OrgServiceImpl.java
View file @
095385f2
...
@@ -236,17 +236,31 @@ public class OrgServiceImpl {
...
@@ -236,17 +236,31 @@ public class OrgServiceImpl {
}
else
{
}
else
{
orgUsr
.
setBizOrgCode
(
OrgUsrServiceImpl
.
getOrgCodeStr
());
orgUsr
.
setBizOrgCode
(
OrgUsrServiceImpl
.
getOrgCodeStr
());
}
}
LambdaQueryWrapper
<
OrgUsr
>
orgUsrLambdaQueryWrapper
=
new
LambdaQueryWrapper
<>();
orgUsrLambdaQueryWrapper
.
eq
(
OrgUsr:
:
getBizOrgName
,
jsonObject
.
getString
(
"name"
));
synchronized
(
this
)
{
OrgUsr
orgUsrOld
=
orgUsrServiceImpl
.
getOne
(
orgUsrLambdaQueryWrapper
);
LambdaQueryWrapper
<
OrgUsr
>
orgUsrLambdaQueryWrapper
=
new
LambdaQueryWrapper
<>();
if
(
ValidationUtil
.
isEmpty
(
orgUsrOld
))
{
orgUsrLambdaQueryWrapper
.
eq
(
OrgUsr:
:
getBizOrgName
,
jsonObject
.
getString
(
"name"
));
orgUsrServiceImpl
.
saveOrUpdate
(
orgUsr
);
OrgUsr
orgUsrOld
=
orgUsrServiceImpl
.
getOne
(
orgUsrLambdaQueryWrapper
);
}
else
{
if
(
ValidationUtil
.
isEmpty
(
orgUsrOld
))
{
if
(
OrgEnum
.
普通人员
.
getKey
().
equals
(
bizOrgType
))
{
orgUsrServiceImpl
.
saveOrUpdate
(
orgUsr
);
orgUsr
.
setSequenceNbr
(
orgUsrOld
.
getSequenceNbr
());
}
else
{
if
(
OrgEnum
.
普通人员
.
getKey
().
equals
(
bizOrgType
))
{
orgUsr
.
setSequenceNbr
(
orgUsrOld
.
getSequenceNbr
());
}
if
(
OrgEnum
.
公司
.
getKey
().
equals
(
bizOrgType
))
{
Long
companyId
=
jsonObject
.
getLong
(
"sequenceNbr"
);
if
(!
ValidationUtil
.
isEmpty
(
companyId
)){
orgUsr
.
setSequenceNbr
(
companyId
);
}
else
{
orgUsr
.
setSequenceNbr
(
orgUsrOld
.
getSequenceNbr
());
}
orgUsrServiceImpl
.
getBaseMapper
().
updateIdByOrgName
(
orgUsr
.
getSequenceNbr
(),
orgUsr
.
getBizOrgName
());
}
orgUsrServiceImpl
.
saveOrUpdate
(
orgUsr
,
orgUsrLambdaQueryWrapper
);
}
}
orgUsrServiceImpl
.
saveOrUpdate
(
orgUsr
,
orgUsrLambdaQueryWrapper
);
}
}
return
orgUsr
;
return
orgUsr
;
}
}
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/ProjectServiceImpl.java
View file @
095385f2
...
@@ -98,6 +98,9 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
...
@@ -98,6 +98,9 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
@Autowired
@Autowired
AttachmentMapper
attachmentMapper
;
AttachmentMapper
attachmentMapper
;
@Autowired
CompanyServiceImpl
companyService
;
static
final
String
symbolKey
=
"Symbol_key"
;
static
final
String
symbolKey
=
"Symbol_key"
;
static
final
String
status
=
"status"
;
static
final
String
status
=
"status"
;
...
@@ -173,6 +176,11 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
...
@@ -173,6 +176,11 @@ public class ProjectServiceImpl extends BaseService<ProjectDto, Project, Project
*/
*/
public
ProjectDto
selectById
(
Long
sequenceNbr
){
public
ProjectDto
selectById
(
Long
sequenceNbr
){
ProjectDto
projectDto
=
this
.
queryBySeq
(
sequenceNbr
);
ProjectDto
projectDto
=
this
.
queryBySeq
(
sequenceNbr
);
projectDto
.
setConstructionLicenseCode
(
companyService
.
licenseCode
(
projectDto
.
getConstructionUnitId
()));
projectDto
.
setSupervisionLicenseCode
(
companyService
.
licenseCode
(
projectDto
.
getSupervisionUnitId
()));
projectDto
.
setDesignLicenseCode
(
companyService
.
licenseCode
(
projectDto
.
getDesignUnitId
()));
projectDto
.
setInstallationLicenseCode
(
companyService
.
licenseCode
(
projectDto
.
getInstallationUnitId
()));
projectDto
.
setTestingLicenseCode
(
companyService
.
licenseCode
(
projectDto
.
getTestingUnitId
()));
LambdaQueryWrapper
<
Pipe
>
wrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
Pipe
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
Pipe:
:
getProjectId
,
sequenceNbr
);
wrapper
.
eq
(
Pipe:
:
getProjectId
,
sequenceNbr
);
List
<
Pipe
>
pipeList
=
pipeService
.
list
(
wrapper
);
List
<
Pipe
>
pipeList
=
pipeService
.
list
(
wrapper
);
...
...
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