Commit 3082ed1d by 陶光胜

Merge branch 'developer' of…

Merge branch 'developer' of http://115.159.76.241/base_platform_enterprise/gic-data-cloud into developer
parents 64dce82a c8144a3c
...@@ -43,6 +43,8 @@ public class FunctionModuleDTO implements Serializable{ ...@@ -43,6 +43,8 @@ public class FunctionModuleDTO implements Serializable{
*/ */
private String operationName; private String operationName;
private String logo;
/** /**
* 1:有效 0:无效 * 1:有效 0:无效
*/ */
...@@ -138,4 +140,13 @@ public class FunctionModuleDTO implements Serializable{ ...@@ -138,4 +140,13 @@ public class FunctionModuleDTO implements Serializable{
this.updateTime = updateTime; this.updateTime = updateTime;
return this; return this;
} }
public String getLogo() {
return logo;
}
public FunctionModuleDTO setLogo(String logo) {
this.logo = logo;
return this;
}
} }
...@@ -32,7 +32,7 @@ public class DataExplainController { ...@@ -32,7 +32,7 @@ public class DataExplainController {
@Autowired @Autowired
private IndexLogApiService indexLogApiService; private IndexLogApiService indexLogApiService;
@RequestMapping("/saveDataExplain") @RequestMapping("/save-data-explain")
public RestResponse saveDataExplain(DataExplainDTO dataExplainDTO) { public RestResponse saveDataExplain(DataExplainDTO dataExplainDTO) {
if (StringUtils.isBlank(dataExplainDTO.getDataName()) || StringUtils.isBlank(dataExplainDTO.getIndexRemark())) { if (StringUtils.isBlank(dataExplainDTO.getDataName()) || StringUtils.isBlank(dataExplainDTO.getIndexRemark())) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), ErrorCode.PARAMETER_ERROR.getMsg()); return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), ErrorCode.PARAMETER_ERROR.getMsg());
...@@ -41,37 +41,37 @@ public class DataExplainController { ...@@ -41,37 +41,37 @@ public class DataExplainController {
return ResultControllerUtils.commonResult(serviceResponse); return ResultControllerUtils.commonResult(serviceResponse);
} }
@RequestMapping("/updateDataExplain") @RequestMapping("/update-data-explain")
public RestResponse updateDataExplain(DataExplainDTO dataExplainDTO, Integer updateType, String reason) { public RestResponse updateDataExplain(DataExplainDTO dataExplainDTO, Integer updateType, String reason) {
ServiceResponse<Void> serviceResponse = dataExplainApiService.updateDataExplain(dataExplainDTO, updateType, reason); ServiceResponse<Void> serviceResponse = dataExplainApiService.updateDataExplain(dataExplainDTO, updateType, reason);
return ResultControllerUtils.commonResult(serviceResponse); return ResultControllerUtils.commonResult(serviceResponse);
} }
@RequestMapping("/getByDataExplainId") @RequestMapping("/get-by-data-explain-id")
public RestResponse getByDataExplainId(Integer dataExplainId) { public RestResponse getByDataExplainId(Integer dataExplainId) {
ServiceResponse<DataExplainDTO> serviceResponse = dataExplainApiService.getByDataExplainId(dataExplainId); ServiceResponse<DataExplainDTO> serviceResponse = dataExplainApiService.getByDataExplainId(dataExplainId);
return ResultControllerUtils.commonResult(serviceResponse); return ResultControllerUtils.commonResult(serviceResponse);
} }
@RequestMapping("/listDataExplain") @RequestMapping("/list-data-explain")
public RestResponse listDataExplain(DataExplainQO dataExplainQO) { public RestResponse listDataExplain(DataExplainQO dataExplainQO) {
ServiceResponse<Page<DataExplainDTO>> serviceResponse = dataExplainApiService.listDataExplain(dataExplainQO); ServiceResponse<Page<DataExplainDTO>> serviceResponse = dataExplainApiService.listDataExplain(dataExplainQO);
return ResultControllerUtils.commonResult(serviceResponse); return ResultControllerUtils.commonResult(serviceResponse);
} }
@RequestMapping("/dataExplainLog") @RequestMapping("/data-explain-log")
public RestResponse dataExplainLog(Integer dataExplainId) { public RestResponse dataExplainLog(Integer dataExplainId) {
ServiceResponse<List<IndexLogDTO>> serviceResponse = indexLogApiService.listDataExplainLog(dataExplainId); ServiceResponse<List<IndexLogDTO>> serviceResponse = indexLogApiService.listDataExplainLog(dataExplainId);
return ResultControllerUtils.commonResult(serviceResponse); return ResultControllerUtils.commonResult(serviceResponse);
} }
@RequestMapping("/deleteDataExplain") @RequestMapping("/delete-data-explain")
public RestResponse delete(Integer dataExplainId) { public RestResponse delete(Integer dataExplainId) {
ServiceResponse<Void> serviceResponse = dataExplainApiService.delete(dataExplainId); ServiceResponse<Void> serviceResponse = dataExplainApiService.delete(dataExplainId);
return ResultControllerUtils.commonResult(serviceResponse); return ResultControllerUtils.commonResult(serviceResponse);
} }
@RequestMapping("/publishDataExplain") @RequestMapping("/publish-data-explain")
public RestResponse publishIndex(String dataExplainIds) { public RestResponse publishIndex(String dataExplainIds) {
if (StringUtils.isBlank(dataExplainIds)) { if (StringUtils.isBlank(dataExplainIds)) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), ErrorCode.PARAMETER_ERROR.getMsg()); return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), ErrorCode.PARAMETER_ERROR.getMsg());
......
...@@ -39,7 +39,7 @@ public class IndexController { ...@@ -39,7 +39,7 @@ public class IndexController {
private IndexLogApiService indexLogApiService; private IndexLogApiService indexLogApiService;
@RequestMapping("/saveIndex") @RequestMapping("/save-index")
public RestResponse saveIndex(IndexDTO indexDTO, String relModuleIds) { public RestResponse saveIndex(IndexDTO indexDTO, String relModuleIds) {
if (indexDTO.getClassifyType() == null || if (indexDTO.getClassifyType() == null ||
StringUtils.isBlank(indexDTO.getCode()) || StringUtils.isBlank(indexDTO.getCode()) ||
...@@ -58,7 +58,7 @@ public class IndexController { ...@@ -58,7 +58,7 @@ public class IndexController {
return ResultControllerUtils.commonResult(serviceResponse); return ResultControllerUtils.commonResult(serviceResponse);
} }
@RequestMapping("/updateIndex") @RequestMapping("/update-index")
public RestResponse updateIndex(IndexDTO indexDTO, Integer updateType, String reason) { public RestResponse updateIndex(IndexDTO indexDTO, Integer updateType, String reason) {
if (indexDTO.getIndexId() == null || updateType == null) { if (indexDTO.getIndexId() == null || updateType == null) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), ErrorCode.PARAMETER_ERROR.getMsg()); return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), ErrorCode.PARAMETER_ERROR.getMsg());
...@@ -67,31 +67,31 @@ public class IndexController { ...@@ -67,31 +67,31 @@ public class IndexController {
return ResultControllerUtils.commonResult(serviceResponse); return ResultControllerUtils.commonResult(serviceResponse);
} }
@RequestMapping("/getByIndexId") @RequestMapping("/get-by-index-id")
public RestResponse getByIndexId(Integer indexId) { public RestResponse getByIndexId(Integer indexId) {
ServiceResponse<IndexDTO> serviceResponse = indexApiService.getByIndexId(indexId); ServiceResponse<IndexDTO> serviceResponse = indexApiService.getByIndexId(indexId);
return ResultControllerUtils.commonResult(serviceResponse); return ResultControllerUtils.commonResult(serviceResponse);
} }
@RequestMapping("/listIndex") @RequestMapping("/list-index")
public RestResponse listIndex(IndexQO indexQO) { public RestResponse listIndex(IndexQO indexQO) {
ServiceResponse<Page<IndexDTO>> serviceResponse = indexApiService.listIndex(indexQO); ServiceResponse<Page<IndexDTO>> serviceResponse = indexApiService.listIndex(indexQO);
return ResultControllerUtils.commonResult(serviceResponse); return ResultControllerUtils.commonResult(serviceResponse);
} }
@RequestMapping("/indexLog") @RequestMapping("/index-log")
public RestResponse indexLog(Integer indexId) { public RestResponse indexLog(Integer indexId) {
ServiceResponse<List<IndexLogDTO>> serviceResponse = indexLogApiService.listIndexLog(indexId); ServiceResponse<List<IndexLogDTO>> serviceResponse = indexLogApiService.listIndexLog(indexId);
return ResultControllerUtils.commonResult(serviceResponse); return ResultControllerUtils.commonResult(serviceResponse);
} }
@RequestMapping("/deleteIndex") @RequestMapping("/delete-index")
public RestResponse delete(Integer indexId) { public RestResponse delete(Integer indexId) {
ServiceResponse<Void> serviceResponse = indexApiService.delete(indexId); ServiceResponse<Void> serviceResponse = indexApiService.delete(indexId);
return ResultControllerUtils.commonResult(serviceResponse); return ResultControllerUtils.commonResult(serviceResponse);
} }
@RequestMapping("/publishIndex") @RequestMapping("/publish-index")
public RestResponse publishIndex(String indexIds) { public RestResponse publishIndex(String indexIds) {
if (StringUtils.isBlank(indexIds)) { if (StringUtils.isBlank(indexIds)) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), ErrorCode.PARAMETER_ERROR.getMsg()); return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), ErrorCode.PARAMETER_ERROR.getMsg());
...@@ -100,7 +100,7 @@ public class IndexController { ...@@ -100,7 +100,7 @@ public class IndexController {
return ResultControllerUtils.commonResult(serviceResponse); return ResultControllerUtils.commonResult(serviceResponse);
} }
@RequestMapping("/moduleList") @RequestMapping("/module-list")
public RestResponse moduleList() { public RestResponse moduleList() {
Object cache = RedisUtil.getCache("enterprise:datacloud:moduleList"); Object cache = RedisUtil.getCache("enterprise:datacloud:moduleList");
if (cache != null) { if (cache != null) {
......
...@@ -36,6 +36,8 @@ public class FunctionModuleVO implements Serializable{ ...@@ -36,6 +36,8 @@ public class FunctionModuleVO implements Serializable{
*/ */
private String operationName; private String operationName;
private String logo;
/** /**
* 1:有效 0:无效 * 1:有效 0:无效
*/ */
...@@ -131,4 +133,13 @@ public class FunctionModuleVO implements Serializable{ ...@@ -131,4 +133,13 @@ public class FunctionModuleVO implements Serializable{
this.updateTime = updateTime; this.updateTime = updateTime;
return this; return this;
} }
public String getLogo() {
return logo;
}
public FunctionModuleVO setLogo(String logo) {
this.logo = logo;
return this;
}
} }
...@@ -36,6 +36,8 @@ public class TabSysFunctionModule { ...@@ -36,6 +36,8 @@ public class TabSysFunctionModule {
*/ */
private String operationName; private String operationName;
private String logo;
/** /**
* 1:有效 0:无效 * 1:有效 0:无效
*/ */
...@@ -131,4 +133,13 @@ public class TabSysFunctionModule { ...@@ -131,4 +133,13 @@ public class TabSysFunctionModule {
this.updateTime = updateTime; this.updateTime = updateTime;
return this; return this;
} }
public String getLogo() {
return logo;
}
public TabSysFunctionModule setLogo(String logo) {
this.logo = logo;
return this;
}
} }
\ No newline at end of file
...@@ -77,7 +77,7 @@ public class IndexLogServiceImpl implements IndexLogService { ...@@ -77,7 +77,7 @@ public class IndexLogServiceImpl implements IndexLogService {
indexLog.setStatus(1); indexLog.setStatus(1);
indexLog.setCreateTime(new Date()); indexLog.setCreateTime(new Date());
indexLog.setUpdateTime(new Date()); indexLog.setUpdateTime(new Date());
indexLog.setType(LogAndUpdateTipsTypeEnum.INDEX.getCode()); indexLog.setType(LogAndUpdateTipsTypeEnum.DATA_EXPLAIN.getCode());
tabIndexLogMapper.insert(indexLog); tabIndexLogMapper.insert(indexLog);
} }
} }
...@@ -8,13 +8,14 @@ ...@@ -8,13 +8,14 @@
<result column="function_module_desc" jdbcType="VARCHAR" property="functionModuleDesc" /> <result column="function_module_desc" jdbcType="VARCHAR" property="functionModuleDesc" />
<result column="operation_id" jdbcType="VARCHAR" property="operationId" /> <result column="operation_id" jdbcType="VARCHAR" property="operationId" />
<result column="operation_name" jdbcType="VARCHAR" property="operationName" /> <result column="operation_name" jdbcType="VARCHAR" property="operationName" />
<result column="logo" jdbcType="VARCHAR" property="logo" />
<result column="status" jdbcType="INTEGER" property="status" /> <result column="status" jdbcType="INTEGER" property="status" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
function_module_id, function_module_name, function_module_code, function_module_desc, function_module_id, function_module_name, function_module_code, function_module_desc,
operation_id, operation_name, status, create_time, update_time operation_id, operation_name, logo, status, create_time, update_time
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select select
...@@ -29,11 +30,11 @@ ...@@ -29,11 +30,11 @@
<insert id="insert" parameterType="com.gic.cloud.entity.TabSysFunctionModule" useGeneratedKeys="true" keyProperty="functionModuleId"> <insert id="insert" parameterType="com.gic.cloud.entity.TabSysFunctionModule" useGeneratedKeys="true" keyProperty="functionModuleId">
insert into tab_sys_function_module (function_module_id, function_module_name, insert into tab_sys_function_module (function_module_id, function_module_name,
function_module_code, function_module_desc, function_module_code, function_module_desc,
operation_id, operation_name, status, operation_id, operation_name, logo, status,
create_time, update_time) create_time, update_time)
values (#{functionModuleId,jdbcType=INTEGER}, #{functionModuleName,jdbcType=VARCHAR}, values (#{functionModuleId,jdbcType=INTEGER}, #{functionModuleName,jdbcType=VARCHAR},
#{functionModuleCode,jdbcType=VARCHAR}, #{functionModuleDesc,jdbcType=VARCHAR}, #{functionModuleCode,jdbcType=VARCHAR}, #{functionModuleDesc,jdbcType=VARCHAR},
#{operationId,jdbcType=VARCHAR}, #{operationName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{operationId,jdbcType=VARCHAR}, #{operationName,jdbcType=VARCHAR}, #{logo,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}) #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
</insert> </insert>
<insert id="insertSelective" parameterType="com.gic.cloud.entity.TabSysFunctionModule"> <insert id="insertSelective" parameterType="com.gic.cloud.entity.TabSysFunctionModule">
...@@ -57,6 +58,9 @@ ...@@ -57,6 +58,9 @@
<if test="operationName != null"> <if test="operationName != null">
operation_name, operation_name,
</if> </if>
<if test="logo != null">
logo,
</if>
<if test="status != null"> <if test="status != null">
status, status,
</if> </if>
...@@ -86,6 +90,9 @@ ...@@ -86,6 +90,9 @@
<if test="operationName != null"> <if test="operationName != null">
#{operationName,jdbcType=VARCHAR}, #{operationName,jdbcType=VARCHAR},
</if> </if>
<if test="logo != null">
#{logo,jdbcType=VARCHAR},
</if>
<if test="status != null"> <if test="status != null">
#{status,jdbcType=INTEGER}, #{status,jdbcType=INTEGER},
</if> </if>
...@@ -115,6 +122,9 @@ ...@@ -115,6 +122,9 @@
<if test="operationName != null"> <if test="operationName != null">
operation_name = #{operationName,jdbcType=VARCHAR}, operation_name = #{operationName,jdbcType=VARCHAR},
</if> </if>
<if test="logo != null">
logo = #{logo,jdbcType=VARCHAR},
</if>
<if test="status != null"> <if test="status != null">
status = #{status,jdbcType=INTEGER}, status = #{status,jdbcType=INTEGER},
</if> </if>
...@@ -134,6 +144,7 @@ ...@@ -134,6 +144,7 @@
function_module_desc = #{functionModuleDesc,jdbcType=VARCHAR}, function_module_desc = #{functionModuleDesc,jdbcType=VARCHAR},
operation_id = #{operationId,jdbcType=VARCHAR}, operation_id = #{operationId,jdbcType=VARCHAR},
operation_name = #{operationName,jdbcType=VARCHAR}, operation_name = #{operationName,jdbcType=VARCHAR},
logo = #{logo,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER}, status = #{status,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP} update_time = #{updateTime,jdbcType=TIMESTAMP}
......
...@@ -22,6 +22,8 @@ public class FunctionModuleVO implements Serializable{ ...@@ -22,6 +22,8 @@ public class FunctionModuleVO implements Serializable{
*/ */
private String functionModuleDesc; private String functionModuleDesc;
private String logo;
public String getFunctionModuleName() { public String getFunctionModuleName() {
...@@ -51,4 +53,12 @@ public class FunctionModuleVO implements Serializable{ ...@@ -51,4 +53,12 @@ public class FunctionModuleVO implements Serializable{
return this; return this;
} }
public String getLogo() {
return logo;
}
public FunctionModuleVO setLogo(String logo) {
this.logo = logo;
return this;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment