Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
8d67a569
Commit
8d67a569
authored
Nov 28, 2022
by
曹盼盼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改生成安全监察指令书编号
parent
50b27279
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
9 deletions
+17
-9
InspectionService.java
...os/boot/module/tzs/flc/api/service/InspectionService.java
+1
-1
InspectionController.java
.../boot/module/tzs/biz/controller/InspectionController.java
+2
-2
InspectionServiceImpl.java
...ot/module/tzs/biz/service/impl/InspectionServiceImpl.java
+10
-3
PercentOfPassDto.java
...eejoin/amos/boot/module/ugp/api/dto/PercentOfPassDto.java
+2
-2
ProjectResourceController.java
.../module/ugp/biz/controller/ProjectResourceController.java
+0
-1
InstallationQualityImpl.java
.../module/ugp/biz/service/impl/InstallationQualityImpl.java
+2
-0
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/service/InspectionService.java
View file @
8d67a569
...
...
@@ -28,7 +28,7 @@ public interface InspectionService {
*/
Map
<
String
,
Object
>
bizRecordCountByField
(
BizRecordCount
bizRecordCount
);
JSONObject
getSafetySupervisionCode
(
String
bizTable
);
JSONObject
getSafetySupervisionCode
(
String
bizTable
,
String
taskId
);
JSONObject
getSafetySupervisionCodeMap
(
String
bizTable
,
String
mapKey
,
String
mapValue
);
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/InspectionController.java
View file @
8d67a569
...
...
@@ -91,8 +91,8 @@ public class InspectionController {
@GetMapping
(
"/getSafetySupervisionCode"
)
@ApiOperation
(
value
=
"生成安全监察指令书编号"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
public
ResponseModel
<
JSONObject
>
getSafetySupervisionCode
(
@RequestParam
String
bizTable
)
{
return
ResponseHelper
.
buildResponse
(
inspectionService
.
getSafetySupervisionCode
(
bizTable
));
public
ResponseModel
<
JSONObject
>
getSafetySupervisionCode
(
@RequestParam
String
bizTable
,
@RequestParam
String
taskId
)
{
return
ResponseHelper
.
buildResponse
(
inspectionService
.
getSafetySupervisionCode
(
bizTable
,
taskId
));
}
/**
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/InspectionServiceImpl.java
View file @
8d67a569
...
...
@@ -139,9 +139,16 @@ public class InspectionServiceImpl implements InspectionService {
item
.
put
(
"value"
,
queryResult
.
get
(
"count"
));
return
item
;
}
/**cpp修改处*/
@Override
public
JSONObject
getSafetySupervisionCode
(
String
bizTable
)
{
public
JSONObject
getSafetySupervisionCode
(
String
bizTable
,
String
taskId
)
{
JSONObject
jsonObject
=
new
JSONObject
();
if
(!
ValidationUtil
.
isEmpty
(
taskId
))
{
String
sql
=
"select INSTRUCT_CODE from"
+
bizTable
+
"where INSTANCE_ID=?"
;
String
code
=
bizJdbcTemplate
.
queryForObject
(
sql
,
String
.
class
,
taskId
);
jsonObject
.
put
(
"code"
,
code
);
return
jsonObject
;
}
String
safetySupervisionCode
=
"(%s)市监特令中[%s]第 %s 号"
;
AgencyUserModel
agencyUserModel
=
Privilege
.
agencyUserClient
.
getme
().
getResult
();
Object
reginSeq
=
JsonValueUtils
.
getValueByKey
(
JSONObject
.
parse
(
JSON
.
toJSONString
(
agencyUserModel
)),
"companys"
,
"companys.0.regionSeq"
);
...
...
@@ -161,7 +168,7 @@ public class InspectionServiceImpl implements InspectionService {
Long
count
=
bizJdbcTemplate
.
queryForObject
(
countSql
,
Long
.
class
);
int
year
=
DateUtils
.
getYear
(
DateUtils
.
getDateNow
());
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"code"
,
String
.
format
(
safetySupervisionCode
,
region
,
year
,
count
+
1
));
return
jsonObject
;
}
...
...
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/dto/PercentOfPassDto.java
View file @
8d67a569
...
...
@@ -37,8 +37,8 @@ public class PercentOfPassDto extends BaseDto {
private
Date
startDate
;
@ApiModelProperty
(
value
=
"项目提交日期"
)
private
Date
submitDate
;
@ApiModelProperty
(
value
=
"
刷新
"
)
private
String
refresh
;
@ApiModelProperty
(
value
=
"
查看
"
)
private
String
look
;
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/ProjectResourceController.java
View file @
8d67a569
...
...
@@ -276,7 +276,6 @@ public class ProjectResourceController extends BaseController {
return
ResponseHelper
.
buildResponse
(
materialServiceImpl
.
groupBySeq
(
sequenceNbr
));
}
/**
* 根据type获取当前登录所在单位下的项目中的所有资源列表
* type:welder(焊工)、equipment(设备)、material(管材)
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/InstallationQualityImpl.java
View file @
8d67a569
...
...
@@ -64,6 +64,7 @@ public class InstallationQualityImpl extends BaseService<PercentOfPassDto, Quali
//分页查询项目质量监检信息
private
static
final
String
LOOK
=
"查看"
;
@Override
@BusinessIdentify
@Transactional
...
...
@@ -102,6 +103,7 @@ public class InstallationQualityImpl extends BaseService<PercentOfPassDto, Quali
percentOfPassDto
.
setProjectId
(
qualityInfo
.
getProjectId
(
));
percentOfPassDto
.
setChargePerson
(
qualityInfo
.
getProject
(
).
getChargePerson
(
));
percentOfPassDto
.
setLook
(
LOOK
);
//获取监理单位的id
Long
supervisoryUnitId
=
qualityInfo
.
getSupervisoryUnitId
(
);
//调用接口
...
...
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