Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zh-baseversion-project
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
王浩
zh-baseversion-project
Commits
74a5e679
Commit
74a5e679
authored
Jun 14, 2024
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
检查记录编码调用接口生成-调研结果问题修改
parent
1690938a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
6 deletions
+23
-6
TInsRecInforServiceImpl.java
...m/zehong/system/service/impl/TInsRecInforServiceImpl.java
+17
-0
index.vue
zh-baseversion-web/src/views/supervision/findings/index.vue
+2
-2
index.vue
zh-baseversion-web/src/views/supervision/record/index.vue
+4
-4
No files found.
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TInsRecInforServiceImpl.java
View file @
74a5e679
...
@@ -4,10 +4,14 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -4,10 +4,14 @@ import com.alibaba.fastjson.JSONObject;
import
com.zehong.common.exception.CustomException
;
import
com.zehong.common.exception.CustomException
;
import
com.zehong.common.utils.GovernmentDataCopyUtil
;
import
com.zehong.common.utils.GovernmentDataCopyUtil
;
import
com.zehong.common.utils.GovernmentDataUtil
;
import
com.zehong.common.utils.GovernmentDataUtil
;
import
com.zehong.common.utils.StringUtils
;
import
com.zehong.system.domain.SysSetting
;
import
com.zehong.system.domain.TInsRecInfor
;
import
com.zehong.system.domain.TInsRecInfor
;
import
com.zehong.system.domain.vo.TInsRecInforVo
;
import
com.zehong.system.domain.vo.TInsRecInforVo
;
import
com.zehong.system.mapper.TInsRecInforMapper
;
import
com.zehong.system.mapper.TInsRecInforMapper
;
import
com.zehong.system.service.ISysSettingService
;
import
com.zehong.system.service.ITInsRecInforService
;
import
com.zehong.system.service.ITInsRecInforService
;
import
com.zehong.system.service.ITSerialNumberInfoService
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -15,9 +19,11 @@ import org.springframework.stereotype.Service;
...
@@ -15,9 +19,11 @@ import org.springframework.stereotype.Service;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.time.Year
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* 监督检查-检查记录Service业务层处理
* 监督检查-检查记录Service业务层处理
...
@@ -36,6 +42,12 @@ public class TInsRecInforServiceImpl implements ITInsRecInforService
...
@@ -36,6 +42,12 @@ public class TInsRecInforServiceImpl implements ITInsRecInforService
@Resource
@Resource
private
GovernmentDataUtil
governmentDataUtil
;
private
GovernmentDataUtil
governmentDataUtil
;
@Resource
private
ISysSettingService
sysSettingService
;
@Resource
private
ITSerialNumberInfoService
itSerialNumberInfoService
;
/**
/**
* 查询监督检查-检查记录
* 查询监督检查-检查记录
*
*
...
@@ -70,6 +82,11 @@ public class TInsRecInforServiceImpl implements ITInsRecInforService
...
@@ -70,6 +82,11 @@ public class TInsRecInforServiceImpl implements ITInsRecInforService
public
int
insertTInsRecInfor
(
TInsRecInfor
tInsRecInfor
)
public
int
insertTInsRecInfor
(
TInsRecInfor
tInsRecInfor
)
{
{
tInsRecInfor
.
setfLastUpdateTime
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
new
Date
()));
tInsRecInfor
.
setfLastUpdateTime
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
new
Date
()));
SysSetting
code
=
sysSettingService
.
getSystemValueByKey
(
"city_id"
);
if
(
null
==
code
||
StringUtils
.
isEmpty
(
code
.
getSystemValue
()))
throw
new
CustomException
(
"行政编码未配置!"
);
Map
<
String
,
String
>
num
=
itSerialNumberInfoService
.
getSerialNumberByTableType
(
"t_ins_rec_infor"
);
if
(
null
==
num
||
StringUtils
.
isEmpty
(
num
.
get
(
"f_check_code"
)))
throw
new
CustomException
(
"检查记录编码未配置!"
);
tInsRecInfor
.
setfCheckCode
(
code
.
getSystemValue
()+
Year
.
now
().
getValue
()
+
num
.
get
(
"f_check_code"
));
return
tInsRecInforMapper
.
insertTInsRecInfor
(
tInsRecInfor
);
return
tInsRecInforMapper
.
insertTInsRecInfor
(
tInsRecInfor
);
}
}
...
...
zh-baseversion-web/src/views/supervision/findings/index.vue
View file @
74a5e679
...
@@ -151,8 +151,8 @@
...
@@ -151,8 +151,8 @@
<
el
-
option
<
el
-
option
v
-
for
=
"record in records"
v
-
for
=
"record in records"
:
key
=
"record.fInsRecInforId"
:
key
=
"record.fInsRecInforId"
:
label
=
"record.fCheck
Task
Code"
:
label
=
"record.fCheckCode"
:
value
=
"record.fCheck
Task
Code"
:
value
=
"record.fCheckCode"
><
/el-option
>
><
/el-option
>
<
/el-select
>
<
/el-select
>
<
/el-form-item
>
<
/el-form-item
>
...
...
zh-baseversion-web/src/views/supervision/record/index.vue
View file @
74a5e679
...
@@ -156,12 +156,12 @@
...
@@ -156,12 +156,12 @@
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"900px"
append-to-body
destroy-on-close
:close-on-click-modal=
"false"
>
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"900px"
append-to-body
destroy-on-close
:close-on-click-modal=
"false"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"130px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"130px"
>
<el-row
class=
"el-row-table"
>
<el-row
class=
"el-row-table"
>
<el-col
:span=
"12"
>
<!--
<el-col :span="12">
<el-form-item label="检查记录编码" prop="fCheckCode">
<el-form-item label="检查记录编码" prop="fCheckCode">
<el-input v-model="form.fCheckCode" placeholder="请输入检查记录编码" />
<el-input v-model="form.fCheckCode" placeholder="请输入检查记录编码" />
</el-form-item>
</el-form-item>
</el-col>
</el-col>
-->
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"任务编码"
prop=
"fCheckTaskCode"
>
<el-form-item
label=
"任务编码"
prop=
"fCheckTaskCode"
>
<el-select
<el-select
...
@@ -335,9 +335,9 @@ export default {
...
@@ -335,9 +335,9 @@ export default {
form
:
{},
form
:
{},
// 表单校验
// 表单校验
rules
:
{
rules
:
{
fCheckCode
:
[
/*
fCheckCode: [
{ required: true, message: "检查记录编码", trigger: "blur" }
{ required: true, message: "检查记录编码", trigger: "blur" }
],
],
*/
fCheckTaskCode
:
[
fCheckTaskCode
:
[
{
required
:
true
,
message
:
"关联的检查任务编码不能为空"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"关联的检查任务编码不能为空"
,
trigger
:
"blur"
}
],
],
...
...
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