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
7094c8c4
Commit
7094c8c4
authored
May 16, 2024
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监督检查-检查任务
parent
2f948119
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
1405 additions
and
0 deletions
+1405
-0
TInsTaskInforController.java
...g/web/controller/supervision/TInsTaskInforController.java
+103
-0
TInsTaskInfor.java
...src/main/java/com/zehong/system/domain/TInsTaskInfor.java
+249
-0
TInsTaskInforMapper.java
...in/java/com/zehong/system/mapper/TInsTaskInforMapper.java
+61
-0
ITInsTaskInforService.java
...java/com/zehong/system/service/ITInsTaskInforService.java
+61
-0
TInsTaskInforServiceImpl.java
.../zehong/system/service/impl/TInsTaskInforServiceImpl.java
+101
-0
FProBehInforBrowseMapper.xml
...main/resources/mapper/system/FProBehInforBrowseMapper.xml
+1
-0
FProBehInforMapper.xml
...m/src/main/resources/mapper/system/FProBehInforMapper.xml
+1
-0
TInsTaskInforMapper.xml
.../src/main/resources/mapper/system/TInsTaskInforMapper.xml
+127
-0
TProAppInforBrowseMapper.xml
...main/resources/mapper/system/TProAppInforBrowseMapper.xml
+1
-0
task.js
zh-baseversion-web/src/api/supervision/task.js
+53
-0
DetailInfo.vue
...-web/src/views/supervision/task/components/DetailInfo.vue
+144
-0
index.vue
zh-baseversion-web/src/views/supervision/task/index.vue
+503
-0
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/supervision/TInsTaskInforController.java
0 → 100644
View file @
7094c8c4
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.TInsTaskInfor
;
import
com.zehong.system.service.ITInsTaskInforService
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.common.core.page.TableDataInfo
;
/**
* 监督检查-检查任务Controller
*
* @author zehong
* @date 2024-05-16
*/
@RestController
@RequestMapping
(
"/supervision/task"
)
public
class
TInsTaskInforController
extends
BaseController
{
@Autowired
private
ITInsTaskInforService
tInsTaskInforService
;
/**
* 查询监督检查-检查任务列表
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:task:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
TInsTaskInfor
tInsTaskInfor
)
{
startPage
();
List
<
TInsTaskInfor
>
list
=
tInsTaskInforService
.
selectTInsTaskInforList
(
tInsTaskInfor
);
return
getDataTable
(
list
);
}
/**
* 导出监督检查-检查任务列表
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:task:export')"
)
@Log
(
title
=
"监督检查-检查任务"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/export"
)
public
AjaxResult
export
(
TInsTaskInfor
tInsTaskInfor
)
{
List
<
TInsTaskInfor
>
list
=
tInsTaskInforService
.
selectTInsTaskInforList
(
tInsTaskInfor
);
ExcelUtil
<
TInsTaskInfor
>
util
=
new
ExcelUtil
<
TInsTaskInfor
>(
TInsTaskInfor
.
class
);
return
util
.
exportExcel
(
list
,
"监督检查-检查任务数据"
);
}
/**
* 获取监督检查-检查任务详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:task:query')"
)
@GetMapping
(
value
=
"/{fInsTaskInforId}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"fInsTaskInforId"
)
Long
fInsTaskInforId
)
{
return
AjaxResult
.
success
(
tInsTaskInforService
.
selectTInsTaskInforById
(
fInsTaskInforId
));
}
/**
* 新增监督检查-检查任务
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:task:add')"
)
@Log
(
title
=
"监督检查-检查任务"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TInsTaskInfor
tInsTaskInfor
)
{
return
toAjax
(
tInsTaskInforService
.
insertTInsTaskInfor
(
tInsTaskInfor
));
}
/**
* 修改监督检查-检查任务
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:task:edit')"
)
@Log
(
title
=
"监督检查-检查任务"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TInsTaskInfor
tInsTaskInfor
)
{
return
toAjax
(
tInsTaskInforService
.
updateTInsTaskInfor
(
tInsTaskInfor
));
}
/**
* 删除监督检查-检查任务
*/
@PreAuthorize
(
"@ss.hasPermi('supervision:task:remove')"
)
@Log
(
title
=
"监督检查-检查任务"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{fInsTaskInforIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
fInsTaskInforIds
)
{
return
toAjax
(
tInsTaskInforService
.
deleteTInsTaskInforByIds
(
fInsTaskInforIds
));
}
}
zh-baseversion-system/src/main/java/com/zehong/system/domain/TInsTaskInfor.java
0 → 100644
View file @
7094c8c4
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_task_infor
*
* @author zehong
* @date 2024-05-16
*/
public
class
TInsTaskInfor
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/** id */
private
Long
fInsTaskInforId
;
/** 任务唯一编码 */
@Excel
(
name
=
"任务唯一编码"
)
private
String
fUniqueCode
;
/** 任务归属:组织检查的燃气主管部门对应6位行政区划编码 */
@Excel
(
name
=
"任务归属:组织检查的燃气主管部门对应6位行政区划编码"
)
private
String
fTaskBelong
;
/** 任务类型 0-专项 1-日常 2-第三方评估抽查 3-随机抽
查 */
@Excel
(
name
=
"任务类型"
,
dictType
=
"t_supervision_task_type"
)
private
String
fTaskType
;
/** 是否下发 0-不下发 1 - 下发 */
@Excel
(
name
=
"是否下发"
,
dictType
=
"t_distribute_flag"
)
private
Long
fDistributeFlag
;
/** 任务名称 */
@Excel
(
name
=
"任务名称"
)
private
String
fName
;
/** 任务说明 */
@Excel
(
name
=
"任务说明"
)
private
String
fDesc
;
/** 任务开始时间 yyyy-mm-dd */
@Excel
(
name
=
"任务开始时间"
)
private
String
fStartTime
;
/** 任务截至时间 yyyy-mm-dd */
@Excel
(
name
=
"任务截至时间"
)
private
String
fEndTime
;
/** 任务状态,NEW-未开始,ING-进行中,DON-已完结,OVD-超期未完成 */
@Excel
(
name
=
"任务状态"
,
dictType
=
"t_supervision_task_status"
)
private
String
fStatus
;
/** 删除标记,0-可用,1-已删除 */
@Excel
(
name
=
"删除标记"
,
dictType
=
"t_delete_flag"
)
private
Long
fDeleteFlag
;
/** 描述 */
@Excel
(
name
=
"描述"
)
private
String
fRemark
;
/** 创建时间精确到秒 */
@Excel
(
name
=
"创建时间"
)
private
String
fCreateTime
;
/** 创建人,当前操作人登录名称 */
@Excel
(
name
=
"创建人"
)
private
String
fCreateBy
;
/** 修改时间 精确到秒 */
@Excel
(
name
=
"修改时间"
)
private
String
fUpdateTime
;
/** 修改人,当前操作人登录名称 */
@Excel
(
name
=
"修改人"
)
private
String
fModifyBy
;
public
void
setfInsTaskInforId
(
Long
fInsTaskInforId
)
{
this
.
fInsTaskInforId
=
fInsTaskInforId
;
}
public
Long
getfInsTaskInforId
()
{
return
fInsTaskInforId
;
}
public
void
setfUniqueCode
(
String
fUniqueCode
)
{
this
.
fUniqueCode
=
fUniqueCode
;
}
public
String
getfUniqueCode
()
{
return
fUniqueCode
;
}
public
void
setfTaskBelong
(
String
fTaskBelong
)
{
this
.
fTaskBelong
=
fTaskBelong
;
}
public
String
getfTaskBelong
()
{
return
fTaskBelong
;
}
public
void
setfTaskType
(
String
fTaskType
)
{
this
.
fTaskType
=
fTaskType
;
}
public
String
getfTaskType
()
{
return
fTaskType
;
}
public
void
setfDistributeFlag
(
Long
fDistributeFlag
)
{
this
.
fDistributeFlag
=
fDistributeFlag
;
}
public
Long
getfDistributeFlag
()
{
return
fDistributeFlag
;
}
public
void
setfName
(
String
fName
)
{
this
.
fName
=
fName
;
}
public
String
getfName
()
{
return
fName
;
}
public
void
setfDesc
(
String
fDesc
)
{
this
.
fDesc
=
fDesc
;
}
public
String
getfDesc
()
{
return
fDesc
;
}
public
void
setfStartTime
(
String
fStartTime
)
{
this
.
fStartTime
=
fStartTime
;
}
public
String
getfStartTime
()
{
return
fStartTime
;
}
public
void
setfEndTime
(
String
fEndTime
)
{
this
.
fEndTime
=
fEndTime
;
}
public
String
getfEndTime
()
{
return
fEndTime
;
}
public
void
setfStatus
(
String
fStatus
)
{
this
.
fStatus
=
fStatus
;
}
public
String
getfStatus
()
{
return
fStatus
;
}
public
void
setfDeleteFlag
(
Long
fDeleteFlag
)
{
this
.
fDeleteFlag
=
fDeleteFlag
;
}
public
Long
getfDeleteFlag
()
{
return
fDeleteFlag
;
}
public
void
setfRemark
(
String
fRemark
)
{
this
.
fRemark
=
fRemark
;
}
public
String
getfRemark
()
{
return
fRemark
;
}
public
void
setfCreateTime
(
String
fCreateTime
)
{
this
.
fCreateTime
=
fCreateTime
;
}
public
String
getfCreateTime
()
{
return
fCreateTime
;
}
public
void
setfCreateBy
(
String
fCreateBy
)
{
this
.
fCreateBy
=
fCreateBy
;
}
public
String
getfCreateBy
()
{
return
fCreateBy
;
}
public
void
setfUpdateTime
(
String
fUpdateTime
)
{
this
.
fUpdateTime
=
fUpdateTime
;
}
public
String
getfUpdateTime
()
{
return
fUpdateTime
;
}
public
void
setfModifyBy
(
String
fModifyBy
)
{
this
.
fModifyBy
=
fModifyBy
;
}
public
String
getfModifyBy
()
{
return
fModifyBy
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"fInsTaskInforId"
,
getfInsTaskInforId
())
.
append
(
"fUniqueCode"
,
getfUniqueCode
())
.
append
(
"fTaskBelong"
,
getfTaskBelong
())
.
append
(
"fTaskType"
,
getfTaskType
())
.
append
(
"fDistributeFlag"
,
getfDistributeFlag
())
.
append
(
"fName"
,
getfName
())
.
append
(
"fDesc"
,
getfDesc
())
.
append
(
"fStartTime"
,
getfStartTime
())
.
append
(
"fEndTime"
,
getfEndTime
())
.
append
(
"fStatus"
,
getfStatus
())
.
append
(
"fDeleteFlag"
,
getfDeleteFlag
())
.
append
(
"fRemark"
,
getfRemark
())
.
append
(
"fCreateTime"
,
getfCreateTime
())
.
append
(
"fCreateBy"
,
getfCreateBy
())
.
append
(
"fUpdateTime"
,
getfUpdateTime
())
.
append
(
"fModifyBy"
,
getfModifyBy
())
.
toString
();
}
}
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TInsTaskInforMapper.java
0 → 100644
View file @
7094c8c4
package
com
.
zehong
.
system
.
mapper
;
import
java.util.List
;
import
com.zehong.system.domain.TInsTaskInfor
;
/**
* 监督检查-检查任务Mapper接口
*
* @author zehong
* @date 2024-05-16
*/
public
interface
TInsTaskInforMapper
{
/**
* 查询监督检查-检查任务
*
* @param fInsTaskInforId 监督检查-检查任务ID
* @return 监督检查-检查任务
*/
public
TInsTaskInfor
selectTInsTaskInforById
(
Long
fInsTaskInforId
);
/**
* 查询监督检查-检查任务列表
*
* @param tInsTaskInfor 监督检查-检查任务
* @return 监督检查-检查任务集合
*/
public
List
<
TInsTaskInfor
>
selectTInsTaskInforList
(
TInsTaskInfor
tInsTaskInfor
);
/**
* 新增监督检查-检查任务
*
* @param tInsTaskInfor 监督检查-检查任务
* @return 结果
*/
public
int
insertTInsTaskInfor
(
TInsTaskInfor
tInsTaskInfor
);
/**
* 修改监督检查-检查任务
*
* @param tInsTaskInfor 监督检查-检查任务
* @return 结果
*/
public
int
updateTInsTaskInfor
(
TInsTaskInfor
tInsTaskInfor
);
/**
* 删除监督检查-检查任务
*
* @param fInsTaskInforId 监督检查-检查任务ID
* @return 结果
*/
public
int
deleteTInsTaskInforById
(
Long
fInsTaskInforId
);
/**
* 批量删除监督检查-检查任务
*
* @param fInsTaskInforIds 需要删除的数据ID
* @return 结果
*/
public
int
deleteTInsTaskInforByIds
(
Long
[]
fInsTaskInforIds
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/ITInsTaskInforService.java
0 → 100644
View file @
7094c8c4
package
com
.
zehong
.
system
.
service
;
import
java.util.List
;
import
com.zehong.system.domain.TInsTaskInfor
;
/**
* 监督检查-检查任务Service接口
*
* @author zehong
* @date 2024-05-16
*/
public
interface
ITInsTaskInforService
{
/**
* 查询监督检查-检查任务
*
* @param fInsTaskInforId 监督检查-检查任务ID
* @return 监督检查-检查任务
*/
public
TInsTaskInfor
selectTInsTaskInforById
(
Long
fInsTaskInforId
);
/**
* 查询监督检查-检查任务列表
*
* @param tInsTaskInfor 监督检查-检查任务
* @return 监督检查-检查任务集合
*/
public
List
<
TInsTaskInfor
>
selectTInsTaskInforList
(
TInsTaskInfor
tInsTaskInfor
);
/**
* 新增监督检查-检查任务
*
* @param tInsTaskInfor 监督检查-检查任务
* @return 结果
*/
public
int
insertTInsTaskInfor
(
TInsTaskInfor
tInsTaskInfor
);
/**
* 修改监督检查-检查任务
*
* @param tInsTaskInfor 监督检查-检查任务
* @return 结果
*/
public
int
updateTInsTaskInfor
(
TInsTaskInfor
tInsTaskInfor
);
/**
* 批量删除监督检查-检查任务
*
* @param fInsTaskInforIds 需要删除的监督检查-检查任务ID
* @return 结果
*/
public
int
deleteTInsTaskInforByIds
(
Long
[]
fInsTaskInforIds
);
/**
* 删除监督检查-检查任务信息
*
* @param fInsTaskInforId 监督检查-检查任务ID
* @return 结果
*/
public
int
deleteTInsTaskInforById
(
Long
fInsTaskInforId
);
}
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TInsTaskInforServiceImpl.java
0 → 100644
View file @
7094c8c4
package
com
.
zehong
.
system
.
service
.
impl
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.List
;
import
com.zehong.common.utils.SecurityUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.zehong.system.mapper.TInsTaskInforMapper
;
import
com.zehong.system.domain.TInsTaskInfor
;
import
com.zehong.system.service.ITInsTaskInforService
;
/**
* 监督检查-检查任务Service业务层处理
*
* @author zehong
* @date 2024-05-16
*/
@Service
public
class
TInsTaskInforServiceImpl
implements
ITInsTaskInforService
{
@Autowired
private
TInsTaskInforMapper
tInsTaskInforMapper
;
/**
* 查询监督检查-检查任务
*
* @param fInsTaskInforId 监督检查-检查任务ID
* @return 监督检查-检查任务
*/
@Override
public
TInsTaskInfor
selectTInsTaskInforById
(
Long
fInsTaskInforId
)
{
return
tInsTaskInforMapper
.
selectTInsTaskInforById
(
fInsTaskInforId
);
}
/**
* 查询监督检查-检查任务列表
*
* @param tInsTaskInfor 监督检查-检查任务
* @return 监督检查-检查任务
*/
@Override
public
List
<
TInsTaskInfor
>
selectTInsTaskInforList
(
TInsTaskInfor
tInsTaskInfor
)
{
return
tInsTaskInforMapper
.
selectTInsTaskInforList
(
tInsTaskInfor
);
}
/**
* 新增监督检查-检查任务
*
* @param tInsTaskInfor 监督检查-检查任务
* @return 结果
*/
@Override
public
int
insertTInsTaskInfor
(
TInsTaskInfor
tInsTaskInfor
)
{
tInsTaskInfor
.
setfCreateTime
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
new
Date
()));
tInsTaskInfor
.
setfCreateBy
(
SecurityUtils
.
getUsername
());
return
tInsTaskInforMapper
.
insertTInsTaskInfor
(
tInsTaskInfor
);
}
/**
* 修改监督检查-检查任务
*
* @param tInsTaskInfor 监督检查-检查任务
* @return 结果
*/
@Override
public
int
updateTInsTaskInfor
(
TInsTaskInfor
tInsTaskInfor
)
{
tInsTaskInfor
.
setfUpdateTime
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
new
Date
()));
tInsTaskInfor
.
setfModifyBy
(
SecurityUtils
.
getUsername
());
return
tInsTaskInforMapper
.
updateTInsTaskInfor
(
tInsTaskInfor
);
}
/**
* 批量删除监督检查-检查任务
*
* @param fInsTaskInforIds 需要删除的监督检查-检查任务ID
* @return 结果
*/
@Override
public
int
deleteTInsTaskInforByIds
(
Long
[]
fInsTaskInforIds
)
{
return
tInsTaskInforMapper
.
deleteTInsTaskInforByIds
(
fInsTaskInforIds
);
}
/**
* 删除监督检查-检查任务信息
*
* @param fInsTaskInforId 监督检查-检查任务ID
* @return 结果
*/
@Override
public
int
deleteTInsTaskInforById
(
Long
fInsTaskInforId
)
{
return
tInsTaskInforMapper
.
deleteTInsTaskInforById
(
fInsTaskInforId
);
}
}
zh-baseversion-system/src/main/resources/mapper/system/FProBehInforBrowseMapper.xml
View file @
7094c8c4
...
@@ -23,6 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -23,6 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<where>
<where>
<if
test=
"fIdNo != null and fIdNo != ''"
>
and f_id_no like concat('%', #{fIdNo}, '%')
</if>
<if
test=
"fIdNo != null and fIdNo != ''"
>
and f_id_no like concat('%', #{fIdNo}, '%')
</if>
</where>
</where>
ORDER BY f_update_time DESC
</select>
</select>
<select
id=
"selectFProBehInforBrowseById"
parameterType=
"Long"
resultMap=
"FProBehInforBrowseResult"
>
<select
id=
"selectFProBehInforBrowseById"
parameterType=
"Long"
resultMap=
"FProBehInforBrowseResult"
>
...
...
zh-baseversion-system/src/main/resources/mapper/system/FProBehInforMapper.xml
View file @
7094c8c4
...
@@ -26,6 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -26,6 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"fIdNo != null and fIdNo != ''"
>
and f_id_no like concat('%', #{fIdNo}, '%')
</if>
<if
test=
"fIdNo != null and fIdNo != ''"
>
and f_id_no like concat('%', #{fIdNo}, '%')
</if>
<if
test=
"fRepStatus != null "
>
and f_rep_status = #{fRepStatus}
</if>
<if
test=
"fRepStatus != null "
>
and f_rep_status = #{fRepStatus}
</if>
</where>
</where>
ORDER BY f_update_time DESC
</select>
</select>
<select
id=
"selectFProBehInforById"
parameterType=
"Long"
resultMap=
"FProBehInforResult"
>
<select
id=
"selectFProBehInforById"
parameterType=
"Long"
resultMap=
"FProBehInforResult"
>
...
...
zh-baseversion-system/src/main/resources/mapper/system/TInsTaskInforMapper.xml
0 → 100644
View file @
7094c8c4
<?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.TInsTaskInforMapper"
>
<resultMap
type=
"TInsTaskInfor"
id=
"TInsTaskInforResult"
>
<result
property=
"fInsTaskInforId"
column=
"f_ins_task_infor_id"
/>
<result
property=
"fUniqueCode"
column=
"f_unique_code"
/>
<result
property=
"fTaskBelong"
column=
"f_task_belong"
/>
<result
property=
"fTaskType"
column=
"f_task_type"
/>
<result
property=
"fDistributeFlag"
column=
"f_distribute_flag"
/>
<result
property=
"fName"
column=
"f_name"
/>
<result
property=
"fDesc"
column=
"f_desc"
/>
<result
property=
"fStartTime"
column=
"f_start_time"
/>
<result
property=
"fEndTime"
column=
"f_end_time"
/>
<result
property=
"fStatus"
column=
"f_status"
/>
<result
property=
"fDeleteFlag"
column=
"f_delete_flag"
/>
<result
property=
"fRemark"
column=
"f_remark"
/>
<result
property=
"fCreateTime"
column=
"f_create_time"
/>
<result
property=
"fCreateBy"
column=
"f_create_by"
/>
<result
property=
"fUpdateTime"
column=
"f_update_time"
/>
<result
property=
"fModifyBy"
column=
"f_modify_by"
/>
</resultMap>
<sql
id=
"selectTInsTaskInforVo"
>
select f_ins_task_infor_id, f_unique_code, f_task_belong, f_task_type, f_distribute_flag, f_name, f_desc, f_start_time, f_end_time, f_status, f_delete_flag, f_remark, f_create_time, f_create_by, f_update_time, f_modify_by from t_ins_task_infor
</sql>
<select
id=
"selectTInsTaskInforList"
parameterType=
"TInsTaskInfor"
resultMap=
"TInsTaskInforResult"
>
<include
refid=
"selectTInsTaskInforVo"
/>
<where>
<if
test=
"fUniqueCode != null and fUniqueCode != ''"
>
and f_unique_code like concat('%', #{fUniqueCode}, '%')
</if>
<if
test=
"fTaskBelong != null and fTaskBelong != ''"
>
and f_task_belong like concat('%', #{fTaskBelong}, '%')
</if>
<if
test=
"fTaskType != null and fTaskType != ''"
>
and f_task_type = #{fTaskType}
</if>
<if
test=
"fDistributeFlag != null "
>
and f_distribute_flag = #{fDistributeFlag}
</if>
<if
test=
"fName != null and fName != ''"
>
and f_name like concat('%', #{fName}, '%')
</if>
<if
test=
"fDesc != null and fDesc != ''"
>
and f_desc = #{fDesc}
</if>
<if
test=
"fStartTime != null and fStartTime != ''"
>
and f_start_time = #{fStartTime}
</if>
<if
test=
"fEndTime != null and fEndTime != ''"
>
and f_end_time = #{fEndTime}
</if>
<if
test=
"fStatus != null and fStatus != ''"
>
and f_status = #{fStatus}
</if>
<if
test=
"fDeleteFlag != null "
>
and f_delete_flag = #{fDeleteFlag}
</if>
<if
test=
"fRemark != null and fRemark != ''"
>
and f_remark = #{fRemark}
</if>
<if
test=
"fCreateTime != null and fCreateTime != ''"
>
and f_create_time = #{fCreateTime}
</if>
<if
test=
"fCreateBy != null and fCreateBy != ''"
>
and f_create_by = #{fCreateBy}
</if>
<if
test=
"fUpdateTime != null and fUpdateTime != ''"
>
and f_update_time = #{fUpdateTime}
</if>
<if
test=
"fModifyBy != null and fModifyBy != ''"
>
and f_modify_by = #{fModifyBy}
</if>
</where>
ORDER BY f_create_time DESC
</select>
<select
id=
"selectTInsTaskInforById"
parameterType=
"Long"
resultMap=
"TInsTaskInforResult"
>
<include
refid=
"selectTInsTaskInforVo"
/>
where f_ins_task_infor_id = #{fInsTaskInforId}
</select>
<insert
id=
"insertTInsTaskInfor"
parameterType=
"TInsTaskInfor"
useGeneratedKeys=
"true"
keyProperty=
"fInsTaskInforId"
>
insert into t_ins_task_infor
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fUniqueCode != null and fUniqueCode != ''"
>
f_unique_code,
</if>
<if
test=
"fTaskBelong != null and fTaskBelong != ''"
>
f_task_belong,
</if>
<if
test=
"fTaskType != null"
>
f_task_type,
</if>
<if
test=
"fDistributeFlag != null"
>
f_distribute_flag,
</if>
<if
test=
"fName != null"
>
f_name,
</if>
<if
test=
"fDesc != null"
>
f_desc,
</if>
<if
test=
"fStartTime != null"
>
f_start_time,
</if>
<if
test=
"fEndTime != null"
>
f_end_time,
</if>
<if
test=
"fStatus != null"
>
f_status,
</if>
<if
test=
"fDeleteFlag != null"
>
f_delete_flag,
</if>
<if
test=
"fRemark != null"
>
f_remark,
</if>
<if
test=
"fCreateTime != null"
>
f_create_time,
</if>
<if
test=
"fCreateBy != null"
>
f_create_by,
</if>
<if
test=
"fUpdateTime != null"
>
f_update_time,
</if>
<if
test=
"fModifyBy != null"
>
f_modify_by,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fUniqueCode != null and fUniqueCode != ''"
>
#{fUniqueCode},
</if>
<if
test=
"fTaskBelong != null and fTaskBelong != ''"
>
#{fTaskBelong},
</if>
<if
test=
"fTaskType != null"
>
#{fTaskType},
</if>
<if
test=
"fDistributeFlag != null"
>
#{fDistributeFlag},
</if>
<if
test=
"fName != null"
>
#{fName},
</if>
<if
test=
"fDesc != null"
>
#{fDesc},
</if>
<if
test=
"fStartTime != null"
>
#{fStartTime},
</if>
<if
test=
"fEndTime != null"
>
#{fEndTime},
</if>
<if
test=
"fStatus != null"
>
#{fStatus},
</if>
<if
test=
"fDeleteFlag != null"
>
#{fDeleteFlag},
</if>
<if
test=
"fRemark != null"
>
#{fRemark},
</if>
<if
test=
"fCreateTime != null"
>
#{fCreateTime},
</if>
<if
test=
"fCreateBy != null"
>
#{fCreateBy},
</if>
<if
test=
"fUpdateTime != null"
>
#{fUpdateTime},
</if>
<if
test=
"fModifyBy != null"
>
#{fModifyBy},
</if>
</trim>
</insert>
<update
id=
"updateTInsTaskInfor"
parameterType=
"TInsTaskInfor"
>
update t_ins_task_infor
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"fUniqueCode != null and fUniqueCode != ''"
>
f_unique_code = #{fUniqueCode},
</if>
<if
test=
"fTaskBelong != null and fTaskBelong != ''"
>
f_task_belong = #{fTaskBelong},
</if>
<if
test=
"fTaskType != null"
>
f_task_type = #{fTaskType},
</if>
<if
test=
"fDistributeFlag != null"
>
f_distribute_flag = #{fDistributeFlag},
</if>
<if
test=
"fName != null"
>
f_name = #{fName},
</if>
<if
test=
"fDesc != null"
>
f_desc = #{fDesc},
</if>
<if
test=
"fStartTime != null"
>
f_start_time = #{fStartTime},
</if>
<if
test=
"fEndTime != null"
>
f_end_time = #{fEndTime},
</if>
<if
test=
"fStatus != null"
>
f_status = #{fStatus},
</if>
<if
test=
"fDeleteFlag != null"
>
f_delete_flag = #{fDeleteFlag},
</if>
<if
test=
"fRemark != null"
>
f_remark = #{fRemark},
</if>
<if
test=
"fCreateTime != null"
>
f_create_time = #{fCreateTime},
</if>
<if
test=
"fCreateBy != null"
>
f_create_by = #{fCreateBy},
</if>
<if
test=
"fUpdateTime != null"
>
f_update_time = #{fUpdateTime},
</if>
<if
test=
"fModifyBy != null"
>
f_modify_by = #{fModifyBy},
</if>
</trim>
where f_ins_task_infor_id = #{fInsTaskInforId}
</update>
<delete
id=
"deleteTInsTaskInforById"
parameterType=
"Long"
>
delete from t_ins_task_infor where f_ins_task_infor_id = #{fInsTaskInforId}
</delete>
<delete
id=
"deleteTInsTaskInforByIds"
parameterType=
"String"
>
delete from t_ins_task_infor where f_ins_task_infor_id in
<foreach
item=
"fInsTaskInforId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{fInsTaskInforId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
zh-baseversion-system/src/main/resources/mapper/system/TProAppInforBrowseMapper.xml
View file @
7094c8c4
...
@@ -53,6 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -53,6 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"fThisProvinceFlag != null and fThisProvinceFlag != ''"
>
and f_this_province_flag = #{fThisProvinceFlag}
</if>
<if
test=
"fThisProvinceFlag != null and fThisProvinceFlag != ''"
>
and f_this_province_flag = #{fThisProvinceFlag}
</if>
<if
test=
"fValidType != null "
>
and f_valid_type = #{fValidType}
</if>
<if
test=
"fValidType != null "
>
and f_valid_type = #{fValidType}
</if>
</where>
</where>
ORDER BY f_update_time DESC
</select>
</select>
<select
id=
"selectTProAppInforBrowseById"
parameterType=
"Long"
resultMap=
"TProAppInforBrowseResult"
>
<select
id=
"selectTProAppInforBrowseById"
parameterType=
"Long"
resultMap=
"TProAppInforBrowseResult"
>
...
...
zh-baseversion-web/src/api/supervision/task.js
0 → 100644
View file @
7094c8c4
import
request
from
'@/utils/request'
// 查询监督检查-检查任务列表
export
function
listInfor
(
query
)
{
return
request
({
url
:
'/supervision/task/list'
,
method
:
'get'
,
params
:
query
})
}
// 查询监督检查-检查任务详细
export
function
getInfor
(
fInsTaskInforId
)
{
return
request
({
url
:
'/supervision/task/'
+
fInsTaskInforId
,
method
:
'get'
})
}
// 新增监督检查-检查任务
export
function
addInfor
(
data
)
{
return
request
({
url
:
'/supervision/task'
,
method
:
'post'
,
data
:
data
})
}
// 修改监督检查-检查任务
export
function
updateInfor
(
data
)
{
return
request
({
url
:
'/supervision/task'
,
method
:
'put'
,
data
:
data
})
}
// 删除监督检查-检查任务
export
function
delInfor
(
fInsTaskInforId
)
{
return
request
({
url
:
'/supervision/task/'
+
fInsTaskInforId
,
method
:
'delete'
})
}
// 导出监督检查-检查任务
export
function
exportInfor
(
query
)
{
return
request
({
url
:
'/supervision/task/export'
,
method
:
'get'
,
params
:
query
})
}
zh-baseversion-web/src/views/supervision/task/components/DetailInfo.vue
0 → 100644
View file @
7094c8c4
<
template
>
<el-dialog
title=
"详情"
:visible
.
sync=
"detailOpen"
width=
"1000px"
append-to-body
destroy-on-close
:close-on-click-modal=
"false"
>
<el-form
label-width=
"110px"
>
<el-row
class=
"el-row-table"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"任务名称"
>
<span
v-if=
"detailInfo.fName"
>
{{
detailInfo
.
fName
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"任务唯一编码"
>
<span
v-if=
"detailInfo.fUniqueCode"
>
{{
detailInfo
.
fUniqueCode
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"任务归属"
>
<span
v-if=
"detailInfo.fTaskBelong"
>
{{
detailInfo
.
fTaskBelong
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"任务类型"
>
<span
v-if=
"detailInfo.fTaskType"
>
{{
$parent
.
fTaskTypeFormat
(
detailInfo
)
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"是否下发"
>
<span
v-if=
"detailInfo.fDistributeFlag"
>
{{
$parent
.
fDistributeFlagFormat
(
detailInfo
)
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"任务说明"
>
<span
v-if=
"detailInfo.fDesc"
>
{{
detailInfo
.
fDesc
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"任务开始时间"
>
<span
v-if=
"detailInfo.fStartTime"
>
{{
detailInfo
.
fStartTime
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"任务截至时间"
>
<span
v-if=
"detailInfo.fEndTime"
>
{{
detailInfo
.
fEndTime
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"任务状态"
>
<span
v-if=
"detailInfo.fStatus"
>
{{
$parent
.
fStatusFormat
(
detailInfo
)
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"删除标记"
>
<span
v-if=
"detailInfo.fEndTime"
>
{{
$parent
.
fDeleteFlagFormat
(
detailInfo
)
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<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.fCreateTime"
>
{{
detailInfo
.
fCreateTime
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"创建人"
>
<span
v-if=
"detailInfo.fCreateBy"
>
{{
detailInfo
.
fCreateBy
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"修改时间"
>
<span
v-if=
"detailInfo.fUpdateTime"
>
{{
detailInfo
.
fUpdateTime
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"修改人"
>
<span
v-if=
"detailInfo.fModifyBy"
>
{{
detailInfo
.
fModifyBy
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-dialog>
</
template
>
<
script
>
import
{
getInfor
}
from
"@/api/supervision/task"
;
export
default
{
name
:
"detail-info"
,
data
(){
return
{
detailInfo
:
{},
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/task/index.vue
0 → 100644
View file @
7094c8c4
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