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
a267a551
Commit
a267a551
authored
May 20, 2024
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
检查记录
parent
acada1cf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1406 additions
and
0 deletions
+1406
-0
TInsRecInforController.java
...ng/web/controller/supervision/TInsRecInforController.java
+103
-0
TInsRecInfor.java
.../src/main/java/com/zehong/system/domain/TInsRecInfor.java
+261
-0
TInsRecInforMapper.java
...ain/java/com/zehong/system/mapper/TInsRecInforMapper.java
+61
-0
ITInsRecInforService.java
.../java/com/zehong/system/service/ITInsRecInforService.java
+61
-0
TInsRecInforServiceImpl.java
...m/zehong/system/service/impl/TInsRecInforServiceImpl.java
+97
-0
TInsRecInforMapper.xml
...m/src/main/resources/mapper/system/TInsRecInforMapper.xml
+111
-0
record.js
zh-baseversion-web/src/api/supervision/record.js
+53
-0
DetailInfo.vue
...eb/src/views/supervision/record/components/DetailInfo.vue
+145
-0
index.vue
zh-baseversion-web/src/views/supervision/record/index.vue
+514
-0
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/supervision/TInsRecInforController.java
0 → 100644
View file @
a267a551
package
com
.
zehong
.
web
.
controller
.
supervision
;
import
java.util.List
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PutMapping
;
import
org.springframework.web.bind.annotation.DeleteMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.zehong.common.annotation.Log
;
import
com.zehong.common.core.controller.BaseController
;
import
com.zehong.common.core.domain.AjaxResult
;
import
com.zehong.common.enums.BusinessType
;
import
com.zehong.system.domain.TInsRecInfor
;
import
com.zehong.system.service.ITInsRecInforService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 监督检查-检查记录Controller
*
* @author zehong
* @date 2024-05-20
*/
@RestController
@RequestMapping
(
"/supervision/record"
)
public
class
TInsRecInforController
extends
BaseController
{
@Autowired
private
ITInsRecInforService
tInsRecInforService
;
/**
* 查询监督检查-检查记录列表
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:record:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TInsRecInfor
tInsRecInfor
)
{
startPage
();
List
<
TInsRecInfor
>
list
=
tInsRecInforService
.
selectTInsRecInforList
(
tInsRecInfor
);
return
getDataTable
(
list
);
}
/**
* 导出监督检查-检查记录列表
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:record:export')"
)
@Log
(
title
=
"监督检查-检查记录"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TInsRecInfor
tInsRecInfor
)
{
List
<
TInsRecInfor
>
list
=
tInsRecInforService
.
selectTInsRecInforList
(
tInsRecInfor
);
ExcelUtil
<
TInsRecInfor
>
util
=
new
ExcelUtil
<
TInsRecInfor
>(
TInsRecInfor
.
class
);
return
util
.
exportExcel
(
list
,
"监督检查-检查记录数据"
);
}
/**
* 获取监督检查-检查记录详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:record:query')"
)
@GetMapping
(
value
=
"/{fInsRecInforId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"fInsRecInforId"
)
Long
fInsRecInforId
)
{
return
AjaxResult
.
success
(
tInsRecInforService
.
selectTInsRecInforById
(
fInsRecInforId
));
}
/**
* 新增监督检查-检查记录
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:record:add')"
)
@Log
(
title
=
"监督检查-检查记录"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TInsRecInfor
tInsRecInfor
)
{
return
toAjax
(
tInsRecInforService
.
insertTInsRecInfor
(
tInsRecInfor
));
}
/**
* 修改监督检查-检查记录
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:record:edit')"
)
@Log
(
title
=
"监督检查-检查记录"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TInsRecInfor
tInsRecInfor
)
{
return
toAjax
(
tInsRecInforService
.
updateTInsRecInfor
(
tInsRecInfor
));
}
/**
* 删除监督检查-检查记录
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:record:remove')"
)
@Log
(
title
=
"监督检查-检查记录"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{fInsRecInforIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
fInsRecInforIds
)
{
return
toAjax
(
tInsRecInforService
.
deleteTInsRecInforByIds
(
fInsRecInforIds
));
}
}
zh-baseversion-system/src/main/java/com/zehong/system/domain/TInsRecInfor.java
0 → 100644
View file @
a267a551
package
com
.
zehong
.
system
.
domain
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
com.zehong.common.annotation.Excel
;
import
com.zehong.common.core.domain.BaseEntity
;
/**
* 监督检查-检查记录对象 t_ins_rec_infor
*
* @author zehong
* @date 2024-05-20
*/
public
class
TInsRecInfor
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** id */
private
Long
fInsRecInforId
;
/** 检查记录编码,实施检查的燃
气主管部门对应 6 位行政区
划编码+4 位年份+6 位顺序
号 */
@Excel
(
name
=
"检查记录编码"
)
private
String
fCheckCode
;
/** 关联的检查任务编码 */
@Excel
(
name
=
"关联的检查任务编码"
)
private
String
fCheckTaskCode
;
/** 县级行政区ID */
@Excel
(
name
=
"县级行政区ID"
)
private
String
fRegionCode
;
/** 检查对象分类,按分类代码表23 分类填写
23-0100 :气代煤
23-0200-0201:传统电代煤
23-0200-0202:石墨烯
23-0200-0203:聚能
23-0200-0204:空气源热泵
23-0200-0205:地源热泵
23-9900-0301:集中供热
23-9900-0302:光伏+
23-9900-0303:光热+
23-9900-0304:醇基燃料
23-9900-0305:生物质 */
@Excel
(
name
=
"检查对象分类"
,
dictType
=
"t_type_code"
)
private
String
fObjectType
;
/** 对象编码 */
@Excel
(
name
=
"对象编码"
)
private
String
fObjectCode
;
/** 检查人员id */
@Excel
(
name
=
"检查人员id"
)
private
String
fCheckUserId
;
/** 检查人员姓名 */
@Excel
(
name
=
"检查人员姓名"
)
private
String
fCheckManName
;
/** 检查人员联系电话 */
@Excel
(
name
=
"检查人员联系电话"
)
private
String
fCheckManPhone
;
/** 检查时间 yyyy-MM-dd hh:mm:ss */
@Excel
(
name
=
"检查时间"
)
private
String
fCheckTime
;
/** 隐患数量,0-无隐患 */
@Excel
(
name
=
"隐患数量"
)
private
String
fHazardsNum
;
/** 是否需执法(1是,0否) */
@Excel
(
name
=
"是否需执法"
,
readConverterExp
=
"1=是,0=否"
)
private
String
fDoscNeedExecute
;
/** 检查单等照片 */
@Excel
(
name
=
"检查单等照片"
)
private
String
fAnnex
;
/** 最后修改时间 yyyy-MM-dd hh:mm:ss */
@Excel
(
name
=
"最后修改时间"
)
private
String
fLastUpdateTime
;
/** 描述 */
@Excel
(
name
=
"描述"
)
private
String
fRemark
;
public
void
setfInsRecInforId
(
Long
fInsRecInforId
)
{
this
.
fInsRecInforId
=
fInsRecInforId
;
}
public
Long
getfInsRecInforId
()
{
return
fInsRecInforId
;
}
public
void
setfCheckCode
(
String
fCheckCode
)
{
this
.
fCheckCode
=
fCheckCode
;
}
public
String
getfCheckCode
()
{
return
fCheckCode
;
}
public
void
setfCheckTaskCode
(
String
fCheckTaskCode
)
{
this
.
fCheckTaskCode
=
fCheckTaskCode
;
}
public
String
getfCheckTaskCode
()
{
return
fCheckTaskCode
;
}
public
void
setfRegionCode
(
String
fRegionCode
)
{
this
.
fRegionCode
=
fRegionCode
;
}
public
String
getfRegionCode
()
{
return
fRegionCode
;
}
public
void
setfObjectType
(
String
fObjectType
)
{
this
.
fObjectType
=
fObjectType
;
}
public
String
getfObjectType
()
{
return
fObjectType
;
}
public
void
setfObjectCode
(
String
fObjectCode
)
{
this
.
fObjectCode
=
fObjectCode
;
}
public
String
getfObjectCode
()
{
return
fObjectCode
;
}
public
void
setfCheckUserId
(
String
fCheckUserId
)
{
this
.
fCheckUserId
=
fCheckUserId
;
}
public
String
getfCheckUserId
()
{
return
fCheckUserId
;
}
public
void
setfCheckManName
(
String
fCheckManName
)
{
this
.
fCheckManName
=
fCheckManName
;
}
public
String
getfCheckManName
()
{
return
fCheckManName
;
}
public
void
setfCheckManPhone
(
String
fCheckManPhone
)
{
this
.
fCheckManPhone
=
fCheckManPhone
;
}
public
String
getfCheckManPhone
()
{
return
fCheckManPhone
;
}
public
void
setfCheckTime
(
String
fCheckTime
)
{
this
.
fCheckTime
=
fCheckTime
;
}
public
String
getfCheckTime
()
{
return
fCheckTime
;
}
public
void
setfHazardsNum
(
String
fHazardsNum
)
{
this
.
fHazardsNum
=
fHazardsNum
;
}
public
String
getfHazardsNum
()
{
return
fHazardsNum
;
}
public
void
setfDoscNeedExecute
(
String
fDoscNeedExecute
)
{
this
.
fDoscNeedExecute
=
fDoscNeedExecute
;
}
public
String
getfDoscNeedExecute
()
{
return
fDoscNeedExecute
;
}
public
void
setfAnnex
(
String
fAnnex
)
{
this
.
fAnnex
=
fAnnex
;
}
public
String
getfAnnex
()
{
return
fAnnex
;
}
public
void
setfLastUpdateTime
(
String
fLastUpdateTime
)
{
this
.
fLastUpdateTime
=
fLastUpdateTime
;
}
public
String
getfLastUpdateTime
()
{
return
fLastUpdateTime
;
}
public
void
setfRemark
(
String
fRemark
)
{
this
.
fRemark
=
fRemark
;
}
public
String
getfRemark
()
{
return
fRemark
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"fInsRecInforId"
,
getfInsRecInforId
())
.
append
(
"fCheckCode"
,
getfCheckCode
())
.
append
(
"fCheckTaskCode"
,
getfCheckTaskCode
())
.
append
(
"fRegionCode"
,
getfRegionCode
())
.
append
(
"fObjectType"
,
getfObjectType
())
.
append
(
"fObjectCode"
,
getfObjectCode
())
.
append
(
"fCheckUserId"
,
getfCheckUserId
())
.
append
(
"fCheckManName"
,
getfCheckManName
())
.
append
(
"fCheckManPhone"
,
getfCheckManPhone
())
.
append
(
"fCheckTime"
,
getfCheckTime
())
.
append
(
"fHazardsNum"
,
getfHazardsNum
())
.
append
(
"fDoscNeedExecute"
,
getfDoscNeedExecute
())
.
append
(
"fAnnex"
,
getfAnnex
())
.
append
(
"fLastUpdateTime"
,
getfLastUpdateTime
())
.
append
(
"fRemark"
,
getfRemark
())
.
toString
();
}
}
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TInsRecInforMapper.java
0 → 100644
View file @
a267a551
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TInsRecInfor
;
/**
* 监督检查-检查记录Mapper接口
*
* @author zehong
* @date 2024-05-20
*/
public
interface
TInsRecInforMapper
{
/**
* 查询监督检查-检查记录
*
* @param fInsRecInforId 监督检查-检查记录ID
* @return 监督检查-检查记录
*/
public
TInsRecInfor
selectTInsRecInforById
(
Long
fInsRecInforId
);
/**
* 查询监督检查-检查记录列表
*
* @param tInsRecInfor 监督检查-检查记录
* @return 监督检查-检查记录集合
*/
public
List
<
TInsRecInfor
>
selectTInsRecInforList
(
TInsRecInfor
tInsRecInfor
);
/**
* 新增监督检查-检查记录
*
* @param tInsRecInfor 监督检查-检查记录
* @return 结果
*/
public
int
insertTInsRecInfor
(
TInsRecInfor
tInsRecInfor
);
/**
* 修改监督检查-检查记录
*
* @param tInsRecInfor 监督检查-检查记录
* @return 结果
*/
public
int
updateTInsRecInfor
(
TInsRecInfor
tInsRecInfor
);
/**
* 删除监督检查-检查记录
*
* @param fInsRecInforId 监督检查-检查记录ID
* @return 结果
*/
public
int
deleteTInsRecInforById
(
Long
fInsRecInforId
);
/**
* 批量删除监督检查-检查记录
*
* @param fInsRecInforIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTInsRecInforByIds
(
Long
[]
fInsRecInforIds
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/ITInsRecInforService.java
0 → 100644
View file @
a267a551
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TInsRecInfor
;
/**
* 监督检查-检查记录Service接口
*
* @author zehong
* @date 2024-05-20
*/
public
interface
ITInsRecInforService
{
/**
* 查询监督检查-检查记录
*
* @param fInsRecInforId 监督检查-检查记录ID
* @return 监督检查-检查记录
*/
public
TInsRecInfor
selectTInsRecInforById
(
Long
fInsRecInforId
);
/**
* 查询监督检查-检查记录列表
*
* @param tInsRecInfor 监督检查-检查记录
* @return 监督检查-检查记录集合
*/
public
List
<
TInsRecInfor
>
selectTInsRecInforList
(
TInsRecInfor
tInsRecInfor
);
/**
* 新增监督检查-检查记录
*
* @param tInsRecInfor 监督检查-检查记录
* @return 结果
*/
public
int
insertTInsRecInfor
(
TInsRecInfor
tInsRecInfor
);
/**
* 修改监督检查-检查记录
*
* @param tInsRecInfor 监督检查-检查记录
* @return 结果
*/
public
int
updateTInsRecInfor
(
TInsRecInfor
tInsRecInfor
);
/**
* 批量删除监督检查-检查记录
*
* @param fInsRecInforIds 需要删除的监督检查-检查记录ID
* @return 结果
*/
public
int
deleteTInsRecInforByIds
(
Long
[]
fInsRecInforIds
);
/**
* 删除监督检查-检查记录信息
*
* @param fInsRecInforId 监督检查-检查记录ID
* @return 结果
*/
public
int
deleteTInsRecInforById
(
Long
fInsRecInforId
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TInsRecInforServiceImpl.java
0 → 100644
View file @
a267a551
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TInsRecInforMapper
;
import
com.zehong.system.domain.TInsRecInfor
;
import
com.zehong.system.service.ITInsRecInforService
;
/**
* 监督检查-检查记录Service业务层处理
*
* @author zehong
* @date 2024-05-20
*/
@Service
public
class
TInsRecInforServiceImpl
implements
ITInsRecInforService
{
@Autowired
private
TInsRecInforMapper
tInsRecInforMapper
;
/**
* 查询监督检查-检查记录
*
* @param fInsRecInforId 监督检查-检查记录ID
* @return 监督检查-检查记录
*/
@Override
public
TInsRecInfor
selectTInsRecInforById
(
Long
fInsRecInforId
)
{
return
tInsRecInforMapper
.
selectTInsRecInforById
(
fInsRecInforId
);
}
/**
* 查询监督检查-检查记录列表
*
* @param tInsRecInfor 监督检查-检查记录
* @return 监督检查-检查记录
*/
@Override
public
List
<
TInsRecInfor
>
selectTInsRecInforList
(
TInsRecInfor
tInsRecInfor
)
{
return
tInsRecInforMapper
.
selectTInsRecInforList
(
tInsRecInfor
);
}
/**
* 新增监督检查-检查记录
*
* @param tInsRecInfor 监督检查-检查记录
* @return 结果
*/
@Override
public
int
insertTInsRecInfor
(
TInsRecInfor
tInsRecInfor
)
{
tInsRecInfor
.
setfLastUpdateTime
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
new
Date
()));
return
tInsRecInforMapper
.
insertTInsRecInfor
(
tInsRecInfor
);
}
/**
* 修改监督检查-检查记录
*
* @param tInsRecInfor 监督检查-检查记录
* @return 结果
*/
@Override
public
int
updateTInsRecInfor
(
TInsRecInfor
tInsRecInfor
)
{
tInsRecInfor
.
setfLastUpdateTime
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
new
Date
()));
return
tInsRecInforMapper
.
updateTInsRecInfor
(
tInsRecInfor
);
}
/**
* 批量删除监督检查-检查记录
*
* @param fInsRecInforIds 需要删除的监督检查-检查记录ID
* @return 结果
*/
@Override
public
int
deleteTInsRecInforByIds
(
Long
[]
fInsRecInforIds
)
{
return
tInsRecInforMapper
.
deleteTInsRecInforByIds
(
fInsRecInforIds
);
}
/**
* 删除监督检查-检查记录信息
*
* @param fInsRecInforId 监督检查-检查记录ID
* @return 结果
*/
@Override
public
int
deleteTInsRecInforById
(
Long
fInsRecInforId
)
{
return
tInsRecInforMapper
.
deleteTInsRecInforById
(
fInsRecInforId
);
}
}
zh-baseversion-system/src/main/resources/mapper/system/TInsRecInforMapper.xml
0 → 100644
View file @
a267a551
<?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.zehong.system.mapper.TInsRecInforMapper"
>
<resultMap
type=
"TInsRecInfor"
id=
"TInsRecInforResult"
>
<result
property=
"fInsRecInforId"
column=
"f_ins_rec_infor_id"
/>
<result
property=
"fCheckCode"
column=
"f_check_code"
/>
<result
property=
"fCheckTaskCode"
column=
"f_check_task_code"
/>
<result
property=
"fRegionCode"
column=
"f_region_code"
/>
<result
property=
"fObjectType"
column=
"f_object_type"
/>
<result
property=
"fObjectCode"
column=
"f_object_code"
/>
<result
property=
"fCheckUserId"
column=
"f_check_user_id"
/>
<result
property=
"fCheckManName"
column=
"f_check_man_name"
/>
<result
property=
"fCheckManPhone"
column=
"f_check_man_phone"
/>
<result
property=
"fCheckTime"
column=
"f_check_time"
/>
<result
property=
"fHazardsNum"
column=
"f_hazards_num"
/>
<result
property=
"fDoscNeedExecute"
column=
"f_dosc_need_execute"
/>
<result
property=
"fAnnex"
column=
"f_annex"
/>
<result
property=
"fLastUpdateTime"
column=
"f_last_update_time"
/>
<result
property=
"fRemark"
column=
"f_remark"
/>
</resultMap>
<sql
id=
"selectTInsRecInforVo"
>
select f_ins_rec_infor_id, f_check_code, f_check_task_code, f_region_code, f_object_type, f_object_code, f_check_user_id, f_check_man_name, f_check_man_phone, f_check_time, f_hazards_num, f_dosc_need_execute, f_annex, f_last_update_time, f_remark from t_ins_rec_infor
</sql>
<select
id=
"selectTInsRecInforList"
parameterType=
"TInsRecInfor"
resultMap=
"TInsRecInforResult"
>
<include
refid=
"selectTInsRecInforVo"
/>
<where>
<if
test=
"fCheckCode != null and fCheckCode != ''"
>
and f_check_code = #{fCheckCode}
</if>
<if
test=
"fObjectType != null and fObjectType != ''"
>
and f_object_type = #{fObjectType}
</if>
<if
test=
"fCheckManName != null and fCheckManName != ''"
>
and f_check_man_name like concat('%', #{fCheckManName}, '%')
</if>
<if
test=
"fCheckManPhone != null and fCheckManPhone != ''"
>
and f_check_man_phone like concat('%', #{fCheckManPhone}, '%')
</if>
</where>
</select>
<select
id=
"selectTInsRecInforById"
parameterType=
"Long"
resultMap=
"TInsRecInforResult"
>
<include
refid=
"selectTInsRecInforVo"
/>
where f_ins_rec_infor_id = #{fInsRecInforId}
</select>
<insert
id=
"insertTInsRecInfor"
parameterType=
"TInsRecInfor"
useGeneratedKeys=
"true"
keyProperty=
"fInsRecInforId"
>
insert into t_ins_rec_infor
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fCheckCode != null and fCheckCode != ''"
>
f_check_code,
</if>
<if
test=
"fCheckTaskCode != null and fCheckTaskCode != ''"
>
f_check_task_code,
</if>
<if
test=
"fRegionCode != null and fRegionCode != ''"
>
f_region_code,
</if>
<if
test=
"fObjectType != null and fObjectType != ''"
>
f_object_type,
</if>
<if
test=
"fObjectCode != null and fObjectCode != ''"
>
f_object_code,
</if>
<if
test=
"fCheckUserId != null and fCheckUserId != ''"
>
f_check_user_id,
</if>
<if
test=
"fCheckManName != null and fCheckManName != ''"
>
f_check_man_name,
</if>
<if
test=
"fCheckManPhone != null"
>
f_check_man_phone,
</if>
<if
test=
"fCheckTime != null and fCheckTime != ''"
>
f_check_time,
</if>
<if
test=
"fHazardsNum != null"
>
f_hazards_num,
</if>
<if
test=
"fDoscNeedExecute != null"
>
f_dosc_need_execute,
</if>
<if
test=
"fAnnex != null"
>
f_annex,
</if>
<if
test=
"fLastUpdateTime != null"
>
f_last_update_time,
</if>
<if
test=
"fRemark != null"
>
f_remark,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fCheckCode != null and fCheckCode != ''"
>
#{fCheckCode},
</if>
<if
test=
"fCheckTaskCode != null and fCheckTaskCode != ''"
>
#{fCheckTaskCode},
</if>
<if
test=
"fRegionCode != null and fRegionCode != ''"
>
#{fRegionCode},
</if>
<if
test=
"fObjectType != null and fObjectType != ''"
>
#{fObjectType},
</if>
<if
test=
"fObjectCode != null and fObjectCode != ''"
>
#{fObjectCode},
</if>
<if
test=
"fCheckUserId != null and fCheckUserId != ''"
>
#{fCheckUserId},
</if>
<if
test=
"fCheckManName != null and fCheckManName != ''"
>
#{fCheckManName},
</if>
<if
test=
"fCheckManPhone != null"
>
#{fCheckManPhone},
</if>
<if
test=
"fCheckTime != null and fCheckTime != ''"
>
#{fCheckTime},
</if>
<if
test=
"fHazardsNum != null"
>
#{fHazardsNum},
</if>
<if
test=
"fDoscNeedExecute != null"
>
#{fDoscNeedExecute},
</if>
<if
test=
"fAnnex != null"
>
#{fAnnex},
</if>
<if
test=
"fLastUpdateTime != null"
>
#{fLastUpdateTime},
</if>
<if
test=
"fRemark != null"
>
#{fRemark},
</if>
</trim>
</insert>
<update
id=
"updateTInsRecInfor"
parameterType=
"TInsRecInfor"
>
update t_ins_rec_infor
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"fCheckCode != null and fCheckCode != ''"
>
f_check_code = #{fCheckCode},
</if>
<if
test=
"fCheckTaskCode != null and fCheckTaskCode != ''"
>
f_check_task_code = #{fCheckTaskCode},
</if>
<if
test=
"fRegionCode != null and fRegionCode != ''"
>
f_region_code = #{fRegionCode},
</if>
<if
test=
"fObjectType != null and fObjectType != ''"
>
f_object_type = #{fObjectType},
</if>
<if
test=
"fObjectCode != null and fObjectCode != ''"
>
f_object_code = #{fObjectCode},
</if>
<if
test=
"fCheckUserId != null and fCheckUserId != ''"
>
f_check_user_id = #{fCheckUserId},
</if>
<if
test=
"fCheckManName != null and fCheckManName != ''"
>
f_check_man_name = #{fCheckManName},
</if>
<if
test=
"fCheckManPhone != null"
>
f_check_man_phone = #{fCheckManPhone},
</if>
<if
test=
"fCheckTime != null and fCheckTime != ''"
>
f_check_time = #{fCheckTime},
</if>
<if
test=
"fHazardsNum != null"
>
f_hazards_num = #{fHazardsNum},
</if>
<if
test=
"fDoscNeedExecute != null"
>
f_dosc_need_execute = #{fDoscNeedExecute},
</if>
<if
test=
"fAnnex != null"
>
f_annex = #{fAnnex},
</if>
<if
test=
"fLastUpdateTime != null"
>
f_last_update_time = #{fLastUpdateTime},
</if>
<if
test=
"fRemark != null"
>
f_remark = #{fRemark},
</if>
</trim>
where f_ins_rec_infor_id = #{fInsRecInforId}
</update>
<delete
id=
"deleteTInsRecInforById"
parameterType=
"Long"
>
delete from t_ins_rec_infor where f_ins_rec_infor_id = #{fInsRecInforId}
</delete>
<delete
id=
"deleteTInsRecInforByIds"
parameterType=
"String"
>
delete from t_ins_rec_infor where f_ins_rec_infor_id in
<foreach
item=
"fInsRecInforId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{fInsRecInforId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
zh-baseversion-web/src/api/supervision/record.js
0 → 100644
View file @
a267a551
import
request
from
'@/utils/request'
// 查询监督检查-检查记录列表
export
function
listInfor
(
query
)
{
return
request
({
url
:
'/supervision/record/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询监督检查-检查记录详细
export
function
getInfor
(
fInsRecInforId
)
{
return
request
({
url
:
'/supervision/record/'
+
fInsRecInforId
,
method
:
'get'
})
}
// 新增监督检查-检查记录
export
function
addInfor
(
data
)
{
return
request
({
url
:
'/supervision/record'
,
method
:
'post'
,
data
:
data
})
}
// 修改监督检查-检查记录
export
function
updateInfor
(
data
)
{
return
request
({
url
:
'/supervision/record'
,
method
:
'put'
,
data
:
data
})
}
// 删除监督检查-检查记录
export
function
delInfor
(
fInsRecInforId
)
{
return
request
({
url
:
'/supervision/record/'
+
fInsRecInforId
,
method
:
'delete'
})
}
// 导出监督检查-检查记录
export
function
exportInfor
(
query
)
{
return
request
({
url
:
'/supervision/record/export'
,
method
:
'get'
,
params
:
query
})
}
zh-baseversion-web/src/views/supervision/record/components/DetailInfo.vue
0 → 100644
View file @
a267a551
<
template
>
<el-dialog
title=
"详情"
:visible
.
sync=
"detailOpen"
width=
"1000px"
append-to-body
destroy-on-close
:close-on-click-modal=
"false"
>
<el-form
label-width=
"130px"
>
<el-row
class=
"el-row-table"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"检查记录编码"
>
<span
v-if=
"detailInfo.fCheckCode"
>
{{
detailInfo
.
fCheckCode
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"任务编码"
>
<span
v-if=
"detailInfo.fCheckTaskCode"
>
{{
detailInfo
.
fCheckTaskCode
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"县级行政区ID"
>
<span
v-if=
"detailInfo.fRegionCode"
>
{{
detailInfo
.
fRegionCode
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"检查对象分类"
>
<span
v-if=
"detailInfo.fObjectType"
>
{{
detailInfo
.
fObjectType
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"对象编码"
>
<span
v-if=
"detailInfo.fObjectCode"
>
{{
detailInfo
.
fObjectCode
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"检查人员id"
>
<span
v-if=
"detailInfo.fCheckUserId"
>
{{
detailInfo
.
fCheckUserId
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"检查人员姓名"
>
<span
v-if=
"detailInfo.fCheckManName"
>
{{
detailInfo
.
fCheckManName
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item>
<span
v-if=
"detailInfo.fCheckManPhone"
>
{{
detailInfo
.
fCheckManPhone
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"检查时间"
>
<span
v-if=
"detailInfo.fCheckTime"
>
{{
detailInfo
.
fCheckTime
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"隐患数量"
>
<span
v-if=
"detailInfo.fHazardsNum"
>
{{
detailInfo
.
fHazardsNum
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"是否需执法"
>
<span
v-if=
"detailInfo.fDoscNeedExecute"
>
{{
detailInfo
.
fDoscNeedExecute
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"描述"
>
<span
v-if=
"detailInfo.fRemark"
>
{{
detailInfo
.
fRemark
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"修改时间"
>
<span
v-if=
"detailInfo.fLastUpdateTime"
>
{{
detailInfo
.
fLastUpdateTime
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"检查单等照片"
>
<el-image
:src=
"detailInfo.fAnnex"
:preview-src-list=
"[detailInfo.fAnnex]"
v-if=
"detailInfo.fAnnex != '' && detailInfo.fAnnex != null"
:z-index=
5000
style=
"width: 200px;height: 200px;"
></el-image>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-dialog>
</
template
>
<
script
>
import
{
getInfor
}
from
"@/api/supervision/record"
;
export
default
{
name
:
"detail-info"
,
data
(){
return
{
detailInfo
:
{
fDeleteFlag
:
0
},
detailOpen
:
false
}
},
methods
:{
getDetailInfo
(
id
){
getInfor
(
id
).
then
(
res
=>
{
if
(
res
.
code
==
200
&&
res
.
data
){
this
.
detailInfo
=
res
.
data
;
this
.
detailOpen
=
true
;
}
})
}
}
}
</
script
>
<
style
scoped
>
</
style
>
zh-baseversion-web/src/views/supervision/record/index.vue
0 → 100644
View file @
a267a551
This diff is collapsed.
Click to expand it.
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