update some small bug
This commit is contained in:
@@ -18,8 +18,6 @@ import javax.annotation.Resource;
|
||||
public class ServiceFactory {
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 后台用户管理Service.
|
||||
*/
|
||||
|
||||
@@ -858,7 +858,7 @@ public class FieldController extends BaseController {
|
||||
}
|
||||
|
||||
@PostMapping(value = "/updateFieldFolder")
|
||||
@ArchivesLog(operationType = OpTypeConst.UPDATE_FIELD_FOLDER)
|
||||
// @ArchivesLog(operationType = OpTypeConst.UPDATE_FIELD_FOLDER)
|
||||
public ResponseEntityDto<Object> updateFieldFolder(@RequestBody UpdateFolderParam param){
|
||||
UpdateFolderParam.checkNotNull(param);
|
||||
int result = s.fieldService.updateFieldFolder(param);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package com.risk.riskmanage.datamanage.service.imp;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
@@ -17,8 +16,7 @@ import com.risk.riskmanage.datamanage.service.FieldTypeService;
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@Service
|
||||
public class FieldTypeServiceImp extends BaseService implements
|
||||
FieldTypeService {
|
||||
public class FieldTypeServiceImp extends BaseService implements FieldTypeService {
|
||||
@Resource
|
||||
|
||||
@Override
|
||||
|
||||
@@ -24,14 +24,14 @@ public class DataSourceController {
|
||||
DataSourceService dataSourceService;
|
||||
|
||||
@RequestMapping(value = "save", method = RequestMethod.POST)
|
||||
@ArchivesLog(operationType = OpTypeConst.DATA_SOURCE_SAVE)
|
||||
// @ArchivesLog(operationType = OpTypeConst.DATA_SOURCE_SAVE)
|
||||
public ResponseEntityDto<Object> save(@RequestBody DataSourceVo dataSourceVo) {
|
||||
Integer result = dataSourceService.saveDataSource(dataSourceVo);
|
||||
return ResponseEntityBuilder.buildNormalResponse(result);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "update", method = RequestMethod.POST)
|
||||
@ArchivesLog(operationType = OpTypeConst.DATA_SOURCE_MODIFY)
|
||||
// @ArchivesLog(operationType = OpTypeConst.DATA_SOURCE_MODIFY)
|
||||
public ResponseEntityDto<Object> update(@RequestBody DataSourceVo dataSourceVo) {
|
||||
Integer result = dataSourceService.updateDataSource(dataSourceVo);
|
||||
return ResponseEntityBuilder.buildNormalResponse(result);
|
||||
@@ -50,7 +50,7 @@ public class DataSourceController {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
|
||||
@ArchivesLog(operationType = OpTypeConst.DATA_SOURCE_DELETE)
|
||||
// @ArchivesLog(operationType = OpTypeConst.DATA_SOURCE_DELETE)
|
||||
public ResponseEntityDto<Object> deleteDataSourceById(@PathVariable Integer id) {
|
||||
Integer result = dataSourceService.deleteDataSourceById(id);
|
||||
return ResponseEntityBuilder.buildNormalResponse(result);
|
||||
|
||||
@@ -91,7 +91,7 @@ public class InterfaceController {
|
||||
|
||||
//添加接口
|
||||
@PostMapping("addInterface")
|
||||
@ArchivesLog(operationType = OpTypeConst.ADD_INTERFACE)
|
||||
// @ArchivesLog(operationType = OpTypeConst.ADD_INTERFACE)
|
||||
public ResponseEntityDto<InterfaceVo> addInterface(@RequestBody InterfaceVo interfaceVo ) {
|
||||
InterfaceVo insert = interfaceService.inserInterfaceInfo(interfaceVo);
|
||||
ResponseEntityDto<InterfaceVo> ruleResponseEntityDto = ResponseEntityBuilder.buildNormalResponse(insert);
|
||||
@@ -100,7 +100,7 @@ public class InterfaceController {
|
||||
|
||||
//删除接口
|
||||
@PostMapping("deleteInterface")
|
||||
@ArchivesLog(operationType = OpTypeConst.DELETE_INTERFACE)
|
||||
// @ArchivesLog(operationType = OpTypeConst.DELETE_INTERFACE)
|
||||
public ResponseEntityDto<Boolean> deleteInterface(@RequestBody InterfaceVo interfaceVo ) {
|
||||
Boolean bool = interfaceService.deleteInterfaceInfo(interfaceVo);
|
||||
ResponseEntityDto<Boolean> ruleResponseEntityDto = ResponseEntityBuilder.buildNormalResponse(bool);
|
||||
@@ -109,7 +109,7 @@ public class InterfaceController {
|
||||
|
||||
//编辑接口
|
||||
@PostMapping("updateInterface")
|
||||
@ArchivesLog(operationType = OpTypeConst.UPDATE_INTERFACE)
|
||||
// @ArchivesLog(operationType = OpTypeConst.UPDATE_INTERFACE)
|
||||
public ResponseEntityDto<InterfaceVo> updateInterface(@RequestBody InterfaceVo interfaceVo ) {
|
||||
InterfaceVo insert = interfaceService.updateInterfaceInfo(interfaceVo);
|
||||
ResponseEntityDto<InterfaceVo> ruleResponseEntityDto = ResponseEntityBuilder.buildNormalResponse(insert);
|
||||
@@ -118,7 +118,7 @@ public class InterfaceController {
|
||||
|
||||
//批量更新接口状态
|
||||
@PostMapping("updateInterfaceStatus")
|
||||
@ArchivesLog(operationType = OpTypeConst.UPDATE_INTERFACE_STATUS)
|
||||
// @ArchivesLog(operationType = OpTypeConst.UPDATE_INTERFACE_STATUS)
|
||||
public ResponseEntityDto updateStatus(@RequestBody InterfaceUpdateStatusParam param) {
|
||||
Long[] ids = param.getIds();
|
||||
Integer status = param.getStatus();
|
||||
|
||||
@@ -233,7 +233,7 @@ public class RuleInfoController {
|
||||
// 查询简单规则
|
||||
@ResponseBody
|
||||
@RequestMapping(value = "getSimpleRule/{id}", method = RequestMethod.POST)
|
||||
@ArchivesLog(operationType = OpTypeConst.SELECT_SAMPLE_RULE)
|
||||
// @ArchivesLog(operationType = OpTypeConst.SELECT_SAMPLE_RULE)
|
||||
public ResponseEntityDto<RuleVo> getSimpleRule(@PathVariable Long id) {
|
||||
if (id == null) {
|
||||
throw new ApiException(ErrorCodeEnum.PARAMS_EXCEPTION.getCode(), ErrorCodeEnum.PARAMS_EXCEPTION.getMessage());
|
||||
|
||||
@@ -38,7 +38,7 @@ public class RuleVersionController {
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/addRuleVersion")
|
||||
@ArchivesLog(operationType = OpTypeConst.SAVE_RULE_VERSION)
|
||||
// @ArchivesLog(operationType = OpTypeConst.SAVE_RULE_VERSION)
|
||||
public ResponseEntityDto addRuleVersion(@RequestBody RuleVersionVo version){
|
||||
boolean b = versionService.addVersion(version);
|
||||
if (!b){
|
||||
@@ -54,7 +54,7 @@ public class RuleVersionController {
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/copyRuleVersion")
|
||||
@ArchivesLog(operationType = OpTypeConst.COPY_RULE_VERSION)
|
||||
// @ArchivesLog(operationType = OpTypeConst.COPY_RULE_VERSION)
|
||||
public ResponseEntityDto copyRuleVersion(@RequestBody RuleVersionVo version){
|
||||
boolean b = versionService.copyVersion(version);
|
||||
List< RuleVersionVo> ruleVersionList = versionService.queryVersionListByRuleId(version.getRuleId());
|
||||
@@ -67,7 +67,7 @@ public class RuleVersionController {
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/updateRuleVersion")
|
||||
@ArchivesLog(operationType = OpTypeConst.UPDATE_RULE_VERSION)
|
||||
// @ArchivesLog(operationType = OpTypeConst.UPDATE_RULE_VERSION)
|
||||
public ResponseEntityDto updateRuleVersion(@RequestBody RuleVersionVo version){
|
||||
boolean b = versionService.updateVersion(version);
|
||||
List<RuleVersionVo> ruleVersionList = versionService.queryVersionListByRuleId(version.getRuleId());
|
||||
@@ -80,7 +80,7 @@ public class RuleVersionController {
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(value = "/updateRuleVersionStatus", method = RequestMethod.POST)
|
||||
@ArchivesLog(operationType = OpTypeConst.UPDATE_RULE_VERSION_STATUS)
|
||||
// @ArchivesLog(operationType = OpTypeConst.UPDATE_RULE_VERSION_STATUS)
|
||||
public ResponseEntityDto<Object> updateStatus(@RequestBody StatusParam statusParam) {
|
||||
versionService.updateStatus(statusParam);
|
||||
List<RuleVersionVo> ruleVersionList = versionService.queryVersionListByRuleId(statusParam.getTacticsId());
|
||||
|
||||
@@ -161,7 +161,7 @@ public class SysMenuController extends CcpBaseController {
|
||||
* {"status":"1","error":"00000000","msg":null,"data":1}
|
||||
*/
|
||||
@RequestMapping(value = "updateStatus", method = RequestMethod.POST)
|
||||
@ArchivesLog(operationType = OpTypeConst.UPDATE_SYS_MENU_STATUS)
|
||||
// @ArchivesLog(operationType = OpTypeConst.UPDATE_SYS_MENU_STATUS)
|
||||
public ResponseEntityDto updateStatus(@RequestBody Map<String, Object> param) {
|
||||
int status = (Integer) param.get("status");
|
||||
String ids = (String)param.get("ids");
|
||||
|
||||
@@ -4,16 +4,16 @@ server.servlet.context-path=/Riskmanage
|
||||
logging.config=classpath:logging-config.xml
|
||||
|
||||
# mysql
|
||||
spring.datasource.default.url = jdbc:mysql://localhost:3306/zsxntest?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true
|
||||
spring.datasource.default.url = jdbc:mysql://47.102.125.25:3306/zsxntest?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true
|
||||
spring.datasource.default.username = root
|
||||
spring.datasource.default.password = localhost
|
||||
spring.datasource.default.password = enginex513
|
||||
spring.datasource.default.driver-class-name = com.mysql.cj.jdbc.Driver
|
||||
|
||||
# redis
|
||||
redis.host=localhost
|
||||
redis.host=47.102.125.25
|
||||
redis.port=6379
|
||||
redis.db=0
|
||||
redis.password=localhost
|
||||
redis.password=enginex123
|
||||
redis.pool.maxTotal=3000
|
||||
redis.pool.maxIdle=100
|
||||
redis.pool.maxWait=1000
|
||||
|
||||
Reference in New Issue
Block a user