| | |
| | | import org.activiti.engine.task.Task; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import javax.servlet.http.HttpSession; |
| | | import java.io.*; |
| | | import java.io.FileNotFoundException; |
| | | import java.io.IOException; |
| | | import java.io.InputStream; |
| | | import java.io.OutputStream; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | |
| | | |
| | | @Autowired |
| | | IMaintainFieldService maintainFieldService; |
| | | @Value("${img.url}") |
| | | String basePath; |
| | | |
| | | |
| | | @RequestMapping(value = "/list", method = RequestMethod.GET) |
| | | public Result<List<Map<String, Object>>> list(HttpServletRequest request) throws FileNotFoundException { |
| | |
| | | @RequestMapping(value = "/delete/{characterId}", method = RequestMethod.GET) |
| | | public Result delete(@PathVariable String characterId, @RequestParam MasterAuthorType type){ |
| | | List<MasterAuthor> masterAuthorList = authorService.selectList(new EntityWrapper<MasterAuthor>() |
| | | .eq(Constant.TYPE, type).eq(this.characterId, characterId)); |
| | | .eq(Constant.TYPE, type).eq(this.character_id, characterId)); |
| | | if (masterAuthorList.isEmpty()) { |
| | | return Result.success(null); |
| | | } |
| | |
| | | JSONObject resultObj = new JSONObject(); |
| | | MasterAuthor masterAuthor = masterAuthorService.selectOne(new EntityWrapper<MasterAuthor>() |
| | | .eq(Constant.TYPE, type) |
| | | .eq("character_id", characterId).eq("maintain_field_id", id)); |
| | | .eq("table_name", tableName) |
| | | .eq("character_id", characterId) |
| | | .eq("maintain_field_id", id)); |
| | | |
| | | if (masterAuthor == null && type.equals(MasterAuthorType.user)) { |
| | | List<TUserRole> tUserRoles = userRoleService.selectList(new EntityWrapper<TUserRole>().eq(Constant.USERID, characterId)); |
| | |
| | | server: |
| | | port: 18090 |
| | | |
| | | img: |
| | | url: /usr/datagovernance/file/activiti/ |
| | | |
| | | |
| | | spring: |
| | | datasource: |
| | | driver-class-name: com.mysql.jdbc.Driver |
| | | url: jdbc:mysql://127.0.0.1:3306/data_admin?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true |
| | | username: root |
| | | password: datacvg123! |
| | | url: jdbc:mysql://139.224.69.76:3306/data_admin?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true |
| | | username: dsmp |
| | | password: Datacvg123! |
| | | hikari: |
| | | minimum-idle: 3 |
| | | max-lifetime: 30000 |
| | |
| | | master: |
| | | unbigdata: |
| | | db: |
| | | host: http://127.0.0.1 |
| | | url: jdbc:mysql://127.0.0.1:3306/data_admin?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true |
| | | host: http://139.224.69.76 |
| | | type: MYSQL |
| | | port: 3306 |
| | | schema: data_admin |
| | | username: root |
| | | password: datacvg123! |
| | | url: jdbc:mysql://139.224.69.76:3306/data_admin?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true |
| | | username: dsmp |
| | | password: Datacvg123! |
| | | bigdata: |
| | | db:hbase? |