指标具体功能

This commit is contained in:
ly19960718 2021-04-01 17:33:20 +08:00
parent 54e30716e6
commit 61b22d29a4
12 changed files with 221 additions and 50 deletions

View File

@ -26,7 +26,7 @@ import java.util.Map;
* @Date: 2021-03-29 18:09:50
* @Version: 3.0
**/
@Api(tags = ISystemConstant.API_TAGS_SYSTEM_PREFIX + "接口")
@Api(tags = ISystemConstant.API_TAGS_SYSTEM_PREFIX + "基础纪检委员发挥作用平台模板接口")
@RestController
@RequestMapping(ISystemConstant.API_PREFIX + "/basiccheckpersonaction")
public class BasicCheckPersonActionController extends DefaultBaseController {

View File

@ -57,9 +57,6 @@ public class IndexLibController extends DefaultBaseController {
@ApiOperation(value = "指标库树形列表", notes = "指标库树形列表接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listztree")

View File

@ -26,7 +26,7 @@ import java.util.Map;
* @Date: 2021-03-29 18:09:50
* @Version: 3.0
**/
@Api(tags = ISystemConstant.API_TAGS_APP_PREFIX + "接口")
@Api(tags = ISystemConstant.API_TAGS_APP_PREFIX + "基础纪检委员发挥作用平台模板接口")
@RestController
@RequestMapping(ISystemConstant.APP_PREFIX + "/basiccheckpersonaction")
public class BasicCheckPersonActionAppController extends DefaultBaseController {

View File

@ -26,7 +26,7 @@ import java.util.Map;
* @Date: 2021-03-29 18:09:50
* @Version: 3.0
**/
@Api(tags = ISystemConstant.API_TAGS_RESOURCE_PREFIX + "接口")
@Api(tags = ISystemConstant.API_TAGS_RESOURCE_PREFIX + "基础纪检委员发挥作用平台模板接口")
@RestController
@RequestMapping(ISystemConstant.RESOURCE_PREFIX + "/basiccheckpersonaction")
public class BasicCheckPersonActionResourceController extends DefaultBaseController {

View File

@ -12,7 +12,9 @@ public class IndexTemplateBO {
private String indexTemplateId;
private String indexTemplateName;
private String indexTemplatePath;
private String indexTemplateSavePath;
private String indexTemplateUploadPath;
private String indexTemplateListPath;
private String indexTemplateRemark;
private Integer indexTemplateState;
private String gmtCreate;
@ -37,12 +39,28 @@ public class IndexTemplateBO {
this.indexTemplateName = indexTemplateName;
}
public String getIndexTemplatePath() {
return indexTemplatePath;
public String getIndexTemplateSavePath() {
return indexTemplateSavePath;
}
public void setIndexTemplatePath(String indexTemplatePath) {
this.indexTemplatePath = indexTemplatePath;
public void setIndexTemplateSavePath(String indexTemplateSavePath) {
this.indexTemplateSavePath = indexTemplateSavePath;
}
public String getIndexTemplateUploadPath() {
return indexTemplateUploadPath;
}
public void setIndexTemplateUploadPath(String indexTemplateUploadPath) {
this.indexTemplateUploadPath = indexTemplateUploadPath;
}
public String getIndexTemplateListPath() {
return indexTemplateListPath;
}
public void setIndexTemplateListPath(String indexTemplateListPath) {
this.indexTemplateListPath = indexTemplateListPath;
}
public String getGmtCreate() {

View File

@ -21,8 +21,14 @@ public class IndexTemplateDTO {
@ApiModelProperty(name = "indexTemplateName", value = "模板名称")
private String indexTemplateName;
@ApiModelProperty(name = "indexTemplatePath", value = "模板路径")
private String indexTemplatePath;
@ApiModelProperty(name = "indexTemplateSavePath", value = "保存路径")
private String indexTemplateSavePath;
@ApiModelProperty(name = "indexTemplateUploadPath", value = "修改路径")
private String indexTemplateUploadPath;
@ApiModelProperty(name = "indexTemplateListPath", value = "列表路径")
private String indexTemplateListPath;
@ApiModelProperty(name = "indexTemplateRemark", value = "模板说明")
private String indexTemplateRemark;
@ApiModelProperty(name = "indexTemplateState", value = "模板状态")
@ -44,14 +50,29 @@ public class IndexTemplateDTO {
this.indexTemplateName = indexTemplateName;
}
public String getIndexTemplatePath() {
return indexTemplatePath == null ? "" : indexTemplatePath.trim();
public String getIndexTemplateSavePath() {
return indexTemplateSavePath;
}
public void setIndexTemplatePath(String indexTemplatePath) {
this.indexTemplatePath = indexTemplatePath;
public void setIndexTemplateSavePath(String indexTemplateSavePath) {
this.indexTemplateSavePath = indexTemplateSavePath;
}
public String getIndexTemplateUploadPath() {
return indexTemplateUploadPath;
}
public void setIndexTemplateUploadPath(String indexTemplateUploadPath) {
this.indexTemplateUploadPath = indexTemplateUploadPath;
}
public String getIndexTemplateListPath() {
return indexTemplateListPath;
}
public void setIndexTemplateListPath(String indexTemplateListPath) {
this.indexTemplateListPath = indexTemplateListPath;
}
public String getIndexTemplateRemark() {
return indexTemplateRemark;

View File

@ -1,5 +1,7 @@
package com.tenlion.twoduty.pojo.pos.indextemplate;
import io.swagger.annotations.ApiModelProperty;
/**
*
* @ClassName: IndexTemplatePO
@ -12,7 +14,9 @@ public class IndexTemplatePO {
private String indexTemplateId;
private String indexTemplateName;
private String indexTemplatePath;
private String indexTemplateSavePath;
private String indexTemplateUploadPath;
private String indexTemplateListPath;
private String indexTemplateRemark;
private Integer indexTemplateState;
private String gmtCreate;
@ -37,12 +41,28 @@ public class IndexTemplatePO {
this.indexTemplateName = indexTemplateName;
}
public String getIndexTemplatePath() {
return indexTemplatePath;
public String getIndexTemplateSavePath() {
return indexTemplateSavePath;
}
public void setIndexTemplatePath(String indexTemplatePath) {
this.indexTemplatePath = indexTemplatePath;
public void setIndexTemplateSavePath(String indexTemplateSavePath) {
this.indexTemplateSavePath = indexTemplateSavePath;
}
public String getIndexTemplateUploadPath() {
return indexTemplateUploadPath;
}
public void setIndexTemplateUploadPath(String indexTemplateUploadPath) {
this.indexTemplateUploadPath = indexTemplateUploadPath;
}
public String getIndexTemplateListPath() {
return indexTemplateListPath;
}
public void setIndexTemplateListPath(String indexTemplateListPath) {
this.indexTemplateListPath = indexTemplateListPath;
}
public String getGmtCreate() {

View File

@ -19,9 +19,12 @@ public class IndexTemplateVO {
@ApiModelProperty(name = "indexTemplateName", value = "模板名称")
@CheckEmptyAnnotation(name="模板名称")
private String indexTemplateName;
@ApiModelProperty(name = "indexTemplatePath", value = "模板路径")
@CheckEmptyAnnotation(name="模板路径")
private String indexTemplatePath;
@ApiModelProperty(name = "indexTemplateSavePath", value = "保存路径")
private String indexTemplateSavePath;
@ApiModelProperty(name = "indexTemplateUploadPath", value = "修改路径")
private String indexTemplateUploadPath;
@ApiModelProperty(name = "indexTemplateListPath", value = "列表路径")
private String indexTemplateListPath;
@ApiModelProperty(name = "indexTemplateRemark", value = "模板说明")
private String indexTemplateRemark;
@ApiModelProperty(name = "indexTemplateState", value = "模板状态")
@ -36,12 +39,28 @@ public class IndexTemplateVO {
this.indexTemplateName = indexTemplateName;
}
public String getIndexTemplatePath() {
return indexTemplatePath == null ? "" : indexTemplatePath.trim();
public String getIndexTemplateSavePath() {
return indexTemplateSavePath;
}
public void setIndexTemplatePath(String indexTemplatePath) {
this.indexTemplatePath = indexTemplatePath;
public void setIndexTemplateSavePath(String indexTemplateSavePath) {
this.indexTemplateSavePath = indexTemplateSavePath;
}
public String getIndexTemplateUploadPath() {
return indexTemplateUploadPath;
}
public void setIndexTemplateUploadPath(String indexTemplateUploadPath) {
this.indexTemplateUploadPath = indexTemplateUploadPath;
}
public String getIndexTemplateListPath() {
return indexTemplateListPath;
}
public void setIndexTemplateListPath(String indexTemplateListPath) {
this.indexTemplateListPath = indexTemplateListPath;
}
public String getIndexTemplateRemark() {

View File

@ -5,7 +5,9 @@
<resultMap id="indexTemplateDTO" type="com.tenlion.twoduty.pojo.dtos.indextemplate.IndexTemplateDTO">
<result column="index_template_id" property="indexTemplateId"/>
<result column="index_template_name" property="indexTemplateName"/>
<result column="index_template_path" property="indexTemplatePath"/>
<result column="index_template_save_path" property="indexTemplateSavePath"/>
<result column="index_template_upload_path" property="indexTemplateUploadPath"/>
<result column="index_template_list_path" property="indexTemplateListPath"/>
<result column="index_template_remark" property="indexTemplateRemark"/>
<result column="index_template_state" property="indexTemplateState"/>
</resultMap>
@ -13,7 +15,9 @@
<resultMap id="indexTemplateBO" type="com.tenlion.twoduty.pojo.bos.indextemplate.IndexTemplateBO">
<result column="index_template_id" property="indexTemplateId"/>
<result column="index_template_name" property="indexTemplateName"/>
<result column="index_template_path" property="indexTemplatePath"/>
<result column="index_template_save_path" property="indexTemplateSavePath"/>
<result column="index_template_upload_path" property="indexTemplateUploadPath"/>
<result column="index_template_list_path" property="indexTemplateListPath"/>
<result column="index_template_remark" property="indexTemplateRemark"/>
<result column="index_template_state" property="indexTemplateState"/>
<result column="gmt_create" property="gmtCreate"/>
@ -26,7 +30,9 @@
<resultMap id="indexTemplatePO" type="com.tenlion.twoduty.pojo.pos.indextemplate.IndexTemplatePO">
<result column="index_template_id" property="indexTemplateId"/>
<result column="index_template_name" property="indexTemplateName"/>
<result column="index_template_path" property="indexTemplatePath"/>
<result column="index_template_save_path" property="indexTemplateSavePath"/>
<result column="index_template_upload_path" property="indexTemplateUploadPath"/>
<result column="index_template_list_path" property="indexTemplateListPath"/>
<result column="index_template_remark" property="indexTemplateRemark"/>
<result column="index_template_state" property="indexTemplateState"/>
<result column="gmt_create" property="gmtCreate"/>
@ -41,7 +47,9 @@
INSERT INTO duty_index_template(
index_template_id,
index_template_name,
index_template_path,
index_template_save_path,
index_template_upload_path,
index_template_list_path,
index_template_remark,
index_template_state,
gmt_create,
@ -52,7 +60,9 @@
) VALUES(
#{indexTemplateId},
#{indexTemplateName},
#{indexTemplatePath},
#{indexTemplateSavePath},
#{indexTemplateUploadPath},
#{indexTemplateListPath},
#{indexTemplateRemark},
#{indexTemplateState},
#{gmtCreate},
@ -100,8 +110,14 @@
<if test="indexTemplateName != null and indexTemplateName != ''">
index_template_name = #{indexTemplateName},
</if>
<if test="indexTemplatePath != null and indexTemplatePath != ''">
index_template_path = #{indexTemplatePath},
<if test="indexTemplateSavePath != null and indexTemplateSavePath != ''">
index_template_save_path = #{indexTemplateSavePath},
</if>
<if test="indexTemplateUploadPath != null and indexTemplateUploadPath != ''">
index_template_upload_path = #{indexTemplateUploadPath},
</if>
<if test="indexTemplateListPath != null and indexTemplateListPath != ''">
index_template_list_path = #{indexTemplateListPath},
</if>
<if test="indexTemplateRemark != null and indexTemplateRemark != ''">
index_template_remark = #{indexTemplateRemark},
@ -119,7 +135,9 @@
<select id="get" parameterType="map" resultMap="indexTemplateDTO">
SELECT
t1.index_template_name,
t1.index_template_path,
t1.index_template_save_path,
t1.index_template_upload_path,
t1.index_template_list_path,
t1.index_template_remark,
t1.index_template_state,
t1.index_template_id
@ -138,7 +156,9 @@
SELECT
t1.index_template_id,
t1.index_template_name,
t1.index_template_path,
t1.index_template_save_path,
t1.index_template_upload_path,
t1.index_template_list_path,
t1.index_template_remark,
t1.index_template_state,
t1.gmt_create,
@ -160,7 +180,9 @@
SELECT
t1.index_template_id,
t1.index_template_name,
t1.index_template_path,
t1.index_template_save_path,
t1.index_template_upload_path,
t1.index_template_list_path,
t1.index_template_remark,
t1.index_template_state,
t1.gmt_create,
@ -182,7 +204,9 @@
SELECT
t1.index_template_id,
t1.index_template_name,
t1.index_template_path,
t1.index_template_save_path,
t1.index_template_upload_path,
t1.index_template_list_path,
t1.index_template_remark,
t1.index_template_state
FROM
@ -209,7 +233,9 @@
SELECT
t1.index_template_id,
t1.index_template_name,
t1.index_template_path,
t1.index_template_save_path,
t1.index_template_upload_path,
t1.index_template_list_path,
t1.index_template_remark,
t1.index_template_state,
t1.gmt_create,
@ -240,7 +266,9 @@
SELECT
t1.index_template_id,
t1.index_template_name,
t1.index_template_path,
t1.index_template_save_path,
t1.index_template_upload_path,
t1.index_template_list_path,
t1.index_template_remark,
t1.index_template_state,
t1.gmt_create,

View File

@ -95,7 +95,23 @@
return rowData;
}
},
{field: 'indexTemplatePath', width: 180, title: '模板路径', align:'center',
{field: 'indexTemplateSavePath', width: 180, title: '保存路径', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
}, {field: 'indexTemplateUploadPath', width: 180, title: '修改路径', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
return '-';
}
return rowData;
}
}, {field: 'indexTemplateListPath', width: 180, title: '列表路径', align:'center',
templet: function(row) {
var rowData = row[this.field];
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
@ -131,7 +147,9 @@
{field: 'show', width: 180, title: '查看', align:'center',
templet: function(row) {
var data ='<div class="layui-btn-group">'
+'<button type="button" class="layui-btn layui-btn-sm" lay-event="showEvent">查看</button>'
+'<button type="button" class="layui-btn layui-btn-sm" lay-event="showSavePath">保存</button>'
+'<button type="button" class="layui-btn layui-btn-sm" lay-event="showUploadPath">修改</button>'
+'<button type="button" class="layui-btn layui-btn-sm" lay-event="showListPath">列表</button>'
+'</div>';
return data;
}
@ -271,7 +289,7 @@
var data = obj.data;
var event = obj.event;
if (event === 'showEvent') {
if (event === 'showSavePath') {
layer.open({
type: 2,
title: false,
@ -279,7 +297,33 @@
area: ['90%', '90%'],
shadeClose: true,
anim: 2,
content: top.restAjax.path(data.indexTemplatePath, []),
content: top.restAjax.path(data.indexTemplateSavePath, []),
end: function () {
reloadTable();
}
})
} else if (event === 'showUploadPath') {
layer.open({
type: 2,
title: false,
closeBtn: 0,
area: ['90%', '90%'],
shadeClose: true,
anim: 2,
content: top.restAjax.path(data.indexTemplateUploadPath, []),
end: function () {
reloadTable();
}
})
} else if (event === 'showListPath') {
layer.open({
type: 2,
title: false,
closeBtn: 0,
area: ['90%', '90%'],
shadeClose: true,
anim: 2,
content: top.restAjax.path(data.indexTemplateListPath, []),
end: function () {
reloadTable();
}

View File

@ -29,9 +29,21 @@
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">模板路径</label>
<label class="layui-form-label">保存路径</label>
<div class="layui-input-block">
<input type="text" id="indexTemplatePath" name="indexTemplatePath" class="layui-input" value="" placeholder="请输入模板路径" maxlength="500">
<input type="text" id="indexTemplateSavePath" name="indexTemplateSavePath" class="layui-input" value="" placeholder="请输入保存路径" maxlength="150">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">修改路径</label>
<div class="layui-input-block">
<input type="text" id="indexTemplateUploadPath" name="indexTemplateUploadPath" class="layui-input" value="" placeholder="请输入修改路径" maxlength="150">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">列表路径</label>
<div class="layui-input-block">
<input type="text" id="indexTemplateListPath" name="indexTemplateListPath" class="layui-input" value="" placeholder="请输入列表路径" maxlength="150">
</div>
</div>
<div class="layui-form-item">

View File

@ -29,9 +29,21 @@
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">模板路径</label>
<label class="layui-form-label">保存路径</label>
<div class="layui-input-block">
<input type="text" id="indexTemplatePath" name="indexTemplatePath" class="layui-input" value="" placeholder="请输入模板路径" maxlength="500">
<input type="text" id="indexTemplateSavePath" name="indexTemplateSavePath" class="layui-input" value="" placeholder="请输入保存路径" maxlength="150">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">修改路径</label>
<div class="layui-input-block">
<input type="text" id="indexTemplateUploadPath" name="indexTemplateUploadPath" class="layui-input" value="" placeholder="请输入修改路径" maxlength="150">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">列表路径</label>
<div class="layui-input-block">
<input type="text" id="indexTemplateListPath" name="indexTemplateListPath" class="layui-input" value="" placeholder="请输入列表路径" maxlength="150">
</div>
</div>
<div class="layui-form-item">