Commit 0208fca6 authored by sherlock's avatar sherlock

Merge remote-tracking branch 'origin/dev_oracle' into dev_oracle_sherlock

# Conflicts:
#	atms-web/src/main/webapp/bundles/infrastructure.js
parents 6a1f0dae 7aaf0076
......@@ -338,6 +338,13 @@
<artifactId>httpclient</artifactId>
<version>4.5.5</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpmime -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.5.5</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpcomponents-client -->
<!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-commons -->
<dependency>
......
package pwc.taxtech.atms.common.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
@Configuration
public class FileServiceConfig {
@Value("${file.server.url}")
private String serverUrl;
@Value("${file.server.upload}")
private String uploadUrl;
public String getServerUrl() {
return serverUrl;
}
public void setServerUrl(String serverUrl) {
this.serverUrl = serverUrl;
}
public String getUploadUrl() {
return uploadUrl;
}
public void setUploadUrl(String uploadUrl) {
this.uploadUrl = uploadUrl;
}
}
package pwc.taxtech.atms.common.ftp;
public class FTPClientConfig {
private String host;
private Integer port;
private String username;
private String password;
private String passiveMode;
private String encoding;
private Integer clientTimeout;
private Integer threadNum;
private Integer transferFileType;
private boolean renameUploaded;
private Integer retryTimes;
public String getHost() {
return host;
}
public void setHost(String host) {
this.host = host;
}
public Integer getPort() {
return port;
}
public void setPort(Integer port) {
this.port = port;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getPassiveMode() {
return passiveMode;
}
public void setPassiveMode(String passiveMode) {
this.passiveMode = passiveMode;
}
public String getEncoding() {
return encoding;
}
public void setEncoding(String encoding) {
this.encoding = encoding;
}
public Integer getClientTimeout() {
return clientTimeout;
}
public void setClientTimeout(Integer clientTimeout) {
this.clientTimeout = clientTimeout;
}
public Integer getThreadNum() {
return threadNum;
}
public void setThreadNum(Integer threadNum) {
this.threadNum = threadNum;
}
public Integer getTransferFileType() {
return transferFileType;
}
public void setTransferFileType(Integer transferFileType) {
this.transferFileType = transferFileType;
}
public boolean isRenameUploaded() {
return renameUploaded;
}
public void setRenameUploaded(boolean renameUploaded) {
this.renameUploaded = renameUploaded;
}
public Integer getRetryTimes() {
return retryTimes;
}
public void setRetryTimes(Integer retryTimes) {
this.retryTimes = retryTimes;
}
}
package pwc.taxtech.atms.common.ftp;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.net.ftp.FTP;
import org.apache.commons.net.ftp.FTPClient;
import org.apache.commons.net.ftp.FTPReply;
import org.apache.commons.pool2.PooledObject;
import org.apache.commons.pool2.PooledObjectFactory;
import org.apache.commons.pool2.impl.DefaultPooledObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import pwc.taxtech.atms.exception.ServiceException;
import java.io.IOException;
public class FtpClientFactory implements PooledObjectFactory<FTPClient> {
private static final Logger logger = LoggerFactory.getLogger(FtpClientFactory.class);
private FTPClientConfig config;
public FtpClientFactory(FTPClientConfig config) {
this.config = config;
}
public FTPClientConfig getConfig() {
return config;
}
@Override
public PooledObject<FTPClient> makeObject() throws Exception {
FTPClient ftpClient = new FTPClient();
// if (null != config.getClientTimeout()) {
// ftpClient.setConnectTimeout(config.getClientTimeout());
// }
// ftpClient.connect(config.getHost(), config.getPort());
// int reply = ftpClient.getReplyCode();
// if (!FTPReply.isPositiveCompletion(reply)) {
// ftpClient.disconnect();
// logger.warn("FTPServer refused connection");
// throw new ServiceException("FTPServer refused connection");
// }
// boolean result = ftpClient.login(StringUtils.defaultString(config.getUsername()),
// StringUtils.defaultString(config.getPassword()));
// if (!result) {
// throw new ServiceException("ftpClient登陆失败! userName:" + config.getUsername() + " ; password:" + config.getPassword());
// }
// ftpClient.setFileType(FTP.BINARY_FILE_TYPE);
// if (null != config.getTransferFileType()) {
// ftpClient.setFileType(config.getTransferFileType());
// }
// ftpClient.setBufferSize(1024);
// ftpClient.setControlEncoding(StringUtils.defaultString(config.getEncoding(), "UTF-8"));
// ftpClient.enterLocalPassiveMode();
//// if (StringUtils.equals(config.getPassiveMode(), "true")) {
//// ftpClient.enterLocalPassiveMode();
//// }
//
// logger.debug("mk objec ftp client {}", ftpClient.toString());
return new DefaultPooledObject<>(ftpClient);
}
@Override
public void destroyObject(PooledObject<FTPClient> pooledObject) throws Exception {
FTPClient ftpClient = pooledObject.getObject();
try {
if (ftpClient != null && ftpClient.isConnected()) {
logger.debug("destroy ftp client {}", ftpClient.toString());
ftpClient.logout();
}
} finally {
try {
if (ftpClient != null && ftpClient.isConnected())
ftpClient.disconnect();
} catch (IOException io) {
io.printStackTrace();
}
}
}
@Override
public boolean validateObject(PooledObject<FTPClient> pooledObject) {
try {
logger.debug("validateObject {}", pooledObject.getObject().toString());
return pooledObject.getObject().sendNoOp() && pooledObject.getObject().isAvailable()
&& pooledObject.getObject().isConnected();
} catch (IOException e) {
throw new RuntimeException("Failed to validate client: " + e, e);
}
}
@Override
public void activateObject(PooledObject<FTPClient> pooledObject) throws Exception {
logger.debug("activateObject {}", pooledObject.getObject().toString());
}
@Override
public void passivateObject(PooledObject<FTPClient> pooledObject) throws Exception {
logger.debug("passivateObject {}", pooledObject.getObject().toString());
}
}
package pwc.taxtech.atms.common.ftp;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
@Configuration
public class FtpConfig {
@Value("${ftp.host}")
private String ftpHost;
@Value("${ftp.port}")
private Integer ftpPort;
@Value("${ftp.user}")
private String ftpUser;
@Value("${ftp.pwd}")
private String ftpPwd;
public String getFtpHost() {
return ftpHost;
}
public void setFtpHost(String ftpHost) {
this.ftpHost = ftpHost;
}
public Integer getFtpPort() {
return ftpPort;
}
public void setFtpPort(Integer ftpPort) {
this.ftpPort = ftpPort;
}
public String getFtpUser() {
return ftpUser;
}
public void setFtpUser(String ftpUser) {
this.ftpUser = ftpUser;
}
public String getFtpPwd() {
return ftpPwd;
}
public void setFtpPwd(String ftpPwd) {
this.ftpPwd = ftpPwd;
}
}
package pwc.taxtech.atms.common.ftp;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.net.ftp.FTPClient;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pwc.taxtech.atms.exception.ServiceException;
import java.io.*;
@Service
public class FtpService {
static String SYMBOL = "/";
@Autowired
FtpConfig config;
String ftpRootPath;
private String requestPrefix = "http://";
public void upload(String filePath, String fileName, InputStream inputStream) throws Exception {
String upPath;
try (WrapFtpClient wrapFtpClient = new WrapFtpClient(config)) {
if (StringUtils.isBlank(filePath)) {
upPath = ftpRootPath;
} else {
upPath = filePath;
}
if (!StringUtils.endsWith(upPath, SYMBOL)) {
upPath = upPath + SYMBOL;
}
if (!isExist(upPath, wrapFtpClient.ftpClient)) {
mkDir(upPath, wrapFtpClient.ftpClient);
}
wrapFtpClient.ftpClient.storeFile(upPath + fileName, inputStream);
}
}
/**
* 下载
*
* @param filePath 相对路径 + 文件名
* @return InputStream
* @throws Exception Exception
*/
public InputStream download(String filePath) throws Exception {
try (WrapFtpClient wrapFtpClient = new WrapFtpClient(config); OutputStream out = new ByteArrayOutputStream();) {
getRootPath(wrapFtpClient);
if (StringUtils.isBlank(filePath)) throw new ServiceException("file path should not empty");
wrapFtpClient.ftpClient.changeWorkingDirectory(ftpRootPath);
InputStream in = wrapFtpClient.ftpClient.retrieveFileStream(filePath);
int len = 0;
byte[] bytes = new byte[1024];
while ((len = in.read(bytes)) != -1) {
out.write(bytes, 0, len);
}
return new ByteArrayInputStream(((ByteArrayOutputStream) out).toByteArray());
}
}
private void mkDir(String path, FTPClient ftpClient) throws IOException {
if (StringUtils.isNotBlank(path)) {
ftpClient.changeWorkingDirectory(ftpRootPath);
String[] paths = path.split("/");
for (String p : paths) {
if (StringUtils.isNotBlank(p) && !StringUtils.equals(p, ".")) {
if (!ftpClient.changeWorkingDirectory(p)) {
ftpClient.makeDirectory(p);
if (!ftpClient.changeWorkingDirectory(p)) {
throw new IOException("changeWorkingDirectory error.");
}
}
}
}
}
}
private boolean isExist(String path, FTPClient ftpClient) throws IOException {
String pwd = ftpClient.printWorkingDirectory();
try {
return ftpClient.changeWorkingDirectory(path);
} finally {
ftpClient.changeWorkingDirectory(pwd);
}
}
/**
* 删除ftp文件
*
* @param filePath
*/
public void delete(String filePath) throws Exception {
try (WrapFtpClient wrapFtpClient = new WrapFtpClient(config);) {
getRootPath(wrapFtpClient);
if (StringUtils.isBlank(filePath)) {
return;
}
if (!isExist(filePath, wrapFtpClient.ftpClient)) {
return;
} else {
wrapFtpClient.ftpClient.deleteFile(filePath);
}
}
}
private void getRootPath(WrapFtpClient wrapFtpClient) throws Exception {
if (ftpRootPath == null || ftpRootPath.isEmpty())
ftpRootPath = wrapFtpClient.ftpClient.printWorkingDirectory();
}
public InputStream getFtpFileWithStaticUrl(String fileUrl) throws IOException {
if (StringUtils.isBlank(fileUrl)) {
return null;
}
if (StringUtils.isNotBlank(config.getFtpHost())) {
CloseableHttpClient client = HttpClients.createDefault();
HttpGet httpGet = new HttpGet(requestPrefix + config.getFtpHost() + ":1886/" + fileUrl);
CloseableHttpResponse response = null;
try {
response = client.execute(httpGet);
if (response.getStatusLine().getStatusCode() == 200) {
return response.getEntity().getContent();
}
} catch (IOException e) {
e.printStackTrace();
} finally {
//client.close();
//response.close();
}
}
return null;
}
}
package pwc.taxtech.atms.common.ftp;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.net.ftp.FTP;
import org.apache.commons.net.ftp.FTPClient;
import org.apache.commons.net.ftp.FTPReply;
import org.apache.commons.pool2.impl.GenericObjectPool;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import pwc.taxtech.atms.exception.ServiceException;
import java.io.IOException;
public class WrapFtpClient implements AutoCloseable {
private static Logger logger = LoggerFactory.getLogger(WrapFtpClient.class);
FTPClient ftpClient;
GenericObjectPool<FTPClient> pool;
public WrapFtpClient(FtpConfig config) throws Exception {
FTPClient ftpClient = new FTPClient();
ftpClient.connect(config.getFtpHost(), config.getFtpPort());
int reply = ftpClient.getReplyCode();
if (!FTPReply.isPositiveCompletion(reply)) {
ftpClient.disconnect();
logger.warn("FTPServer refused connection");
throw new ServiceException("FTPServer refused connection");
}
boolean result = ftpClient.login(StringUtils.defaultString(config.getFtpUser()),
StringUtils.defaultString(config.getFtpPwd()));
if (!result) {
throw new ServiceException("ftpClient登陆失败! userName:" + config.getFtpUser() + " ; password:" + config.getFtpPwd());
}
ftpClient.setFileType(FTP.BINARY_FILE_TYPE);
ftpClient.setBufferSize(1024);
ftpClient.setControlEncoding("UTF-8");
ftpClient.enterLocalPassiveMode();
this.ftpClient = ftpClient;
}
@Override
public void close() throws Exception {
try {
if (ftpClient != null && ftpClient.isConnected()) {
logger.debug("destroy ftp client {}", ftpClient.toString());
ftpClient.logout();
}
} finally {
try {
if (ftpClient != null && ftpClient.isConnected())
ftpClient.disconnect();
} catch (IOException io) {
io.printStackTrace();
}
}
}
}
......@@ -13,6 +13,7 @@ import pwc.taxtech.atms.common.util.MyAsserts;
import pwc.taxtech.atms.dto.approval.ApprovalDto;
import pwc.taxtech.atms.dto.approval.ApprovalTask;
import pwc.taxtech.atms.exception.Exceptions;
import pwc.taxtech.atms.vat.dpo.ApprovalTaskInfo;
import pwc.taxtech.atms.vat.service.impl.ApprovalService;
import javax.servlet.http.HttpServletResponse;
......@@ -51,8 +52,8 @@ public class ApprovalController {
@ResponseBody
@RequestMapping(value = "/tasks/{assignee}")
public List<ApprovalTask> data(@PathVariable String assignee) {//accountant manager
return approvalService.getTask(assignee);
public List<ApprovalTaskInfo> data(@PathVariable String assignee) {//accountant manager
return approvalService.getTask();
}
@ResponseBody
......
......@@ -19,12 +19,16 @@ public class AtmsExceptionHandler extends ResponseEntityExceptionHandler {
protected ResponseEntity<Object> handleExceptions(Exception ex) throws ServiceException {
logger.error("Rest Exception!", ex);
if (ex instanceof ApplicationException) {
ex.printStackTrace();
return handleApplicationException((ApplicationException) ex);
} else if (ex instanceof ServiceException) {
ex.printStackTrace();
return handleServiceException((ServiceException) ex);
} else if (ex instanceof ApiException) {
ex.printStackTrace();
return ((ApiException) ex).handle();
} else {
ex.printStackTrace();
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();
}
}
......
package pwc.taxtech.atms.controller;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
import org.joda.time.DateTime;
import org.slf4j.Logger;
......@@ -13,7 +14,6 @@ import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import pwc.taxtech.atms.common.ftp.FtpService;
import pwc.taxtech.atms.common.util.MyAsserts;
import pwc.taxtech.atms.dpo.TemplateUniqDto;
import pwc.taxtech.atms.dto.CellBriefDto;
......@@ -26,6 +26,7 @@ import pwc.taxtech.atms.entity.Template;
import pwc.taxtech.atms.exception.ApplicationException;
import pwc.taxtech.atms.exception.BadParameterException;
import pwc.taxtech.atms.exception.NotFoundException;
import pwc.taxtech.atms.service.impl.HttpFileService;
import pwc.taxtech.atms.service.impl.TemplateServiceImpl;
import javax.servlet.http.HttpServletResponse;
......@@ -49,7 +50,7 @@ public class TemplateController extends BaseController {
TemplateServiceImpl templateService;
@Autowired
FtpService ftpService;
private HttpFileService httpFileService;
@RequestMapping(value = "get", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public @ResponseBody
......@@ -85,20 +86,22 @@ public class TemplateController extends BaseController {
if (template.getIsSystemType()) {
inputStream = new BufferedInputStream(new FileInputStream(templateFile));
} else {
inputStream = ftpService.getFtpFileWithStaticUrl(templatePath);
inputStream = httpFileService.getUserTemplate(templatePath);
}
//客户端保存的文件名
String customFileName = "template_" + DateTime.now().toString("yyyyMMddHHmmss") + ".xlsx";
response.setHeader("Content-Disposition", String.format("inline; filename=\"" + customFileName + "\""));
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
int len = 0;
byte[] buffer = new byte[1024];
// int len = 0;
// byte[] buffer = new byte[1024];
// out = response.getOutputStream();
// while ((len = inputStream.read(buffer)) > 0) {
// out.write(buffer, 0, len);
// }
out = response.getOutputStream();
while ((len = inputStream.read(buffer)) > 0) {
out.write(buffer, 0, len);
}
IOUtils.copy(inputStream, out);
out.flush();
//FileCopyUtils.copy(inputStream, response.getOutputStream());
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (Exception e) {
......@@ -150,7 +153,8 @@ public class TemplateController extends BaseController {
OperationResultDto<String> result = templateService.deleteTemplate(param);
if (result.getResult() && StringUtils.isNotBlank(result.getData())) {
try {
ftpService.delete(result.getData());
//todo
// httpFileService.delete(result.getData());
} catch (Exception e) {
}
}
......
......@@ -15,11 +15,11 @@ import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import pwc.taxtech.atms.common.ftp.FtpService;
import pwc.taxtech.atms.common.message.ErrorMessage;
import pwc.taxtech.atms.dto.OperationResultDto;
import pwc.taxtech.atms.dto.TemplateGroupDto;
import pwc.taxtech.atms.exception.ServiceException;
import pwc.taxtech.atms.service.impl.HttpFileService;
import pwc.taxtech.atms.service.impl.TemplateGroupServiceImpl;
import java.util.List;
......@@ -33,7 +33,7 @@ public class TemplateGroupController {
TemplateGroupServiceImpl templateGroupService;
@Autowired
FtpService ftpService;
private HttpFileService httpFileService;
@ApiOperation(value = "获取所有的模板分组")
@RequestMapping(value = "getall", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
......@@ -65,7 +65,8 @@ public class TemplateGroupController {
if (pathList != null && pathList.size() > 0) {
for (String path : pathList) {
try {
//ftpService.delete(path);
//todo
//httpFileService.delete(path);
} catch (Exception e) {
}
}
......
package pwc.taxtech.atms.dao;
import org.apache.ibatis.session.ExecutorType;
import org.apache.ibatis.session.SqlSession;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pwc.taxtech.atms.entity.CellTemplateConfig;
import pwc.taxtech.atms.entity.CellTemplateConfigExample;
import javax.annotation.Resource;
import java.util.List;
@Service
public class CellTemplateConfigDao {
@Autowired
private CellTemplateConfigMapper mapper;
@Resource(name = "sqlSessionTemplate")
private SqlSessionTemplate sqlSessionTemplate;
public List<CellTemplateConfig> getByTemplateId(Long id) {
CellTemplateConfigExample example = new CellTemplateConfigExample();
......@@ -19,5 +25,15 @@ public class CellTemplateConfigDao {
return mapper.selectByExample(example);
}
public void batchInsert(List<CellTemplateConfig> list) {
long start = System.currentTimeMillis();
SqlSession sqlSession = sqlSessionTemplate.getSqlSessionFactory().openSession(ExecutorType.BATCH);
for (CellTemplateConfig cellTemplate : list) {
mapper.insertSelective(cellTemplate);
}
sqlSession.commit();
long end = System.currentTimeMillis();
System.out.println("---------------batch insert: count:" + list.size() + " time: " + (start - end) + "---------------");
}
}
package pwc.taxtech.atms.dao;
import org.apache.ibatis.session.ExecutorType;
import org.apache.ibatis.session.SqlSession;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pwc.taxtech.atms.entity.CellTemplate;
import pwc.taxtech.atms.entity.CellTemplateExample;
import javax.annotation.Resource;
import java.util.List;
@Service
public class CellTemplateDao {
@Autowired
private CellTemplateMapper mapper;
@Resource(name = "sqlSessionTemplate")
private SqlSessionTemplate sqlSessionTemplate;
public List<CellTemplate> getByTemplateId(Long id) {
CellTemplateExample example = new CellTemplateExample();
......@@ -19,5 +25,14 @@ public class CellTemplateDao {
return mapper.selectByExample(example);
}
public void batchInsert(List<CellTemplate> list) {
long start = System.currentTimeMillis();
SqlSession sqlSession = sqlSessionTemplate.getSqlSessionFactory().openSession(ExecutorType.BATCH);
for (CellTemplate cellTemplate : list) {
mapper.insertSelective(cellTemplate);
}
sqlSession.commit();
long end = System.currentTimeMillis();
System.out.println("---------------batch insert: count:" + list.size() + " time: " + (start - end) + "---------------");
}
}
......@@ -24,10 +24,10 @@ public class ApprovalDto {
}
public Integer getPeriod() {
return Integer.parseInt(periodDate.split(".")[1]);
return Integer.parseInt(periodDate.split("\\.")[1]);
}
public Integer getYear(){
return Integer.parseInt(periodDate.split(".")[0]);
return Integer.parseInt(periodDate.split("\\.")[0]);
}
}
......@@ -11,4 +11,5 @@ public class Exceptions {
public static final ApiException EMPTY_PRIODDATE_PARAM = new BadParameterException("period data is empty");
public static final ApiException NOT_FOUND_REPORT_EXCEPTION = new NotFoundException("not found report");
public static final ApiException REPORT_HAS_COMMIT_EXCEPTION = new AlreadyExistsException("report approval has commit");
public static final ApiException SERVER_ERROR_EXCEPTION= new ServerErrorException("server error exception");
}
package pwc.taxtech.atms.exception;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
public class ServerErrorException extends ApiException {
public ServerErrorException() {
super();
}
public ServerErrorException(String message) {
super(message);
}
public ServerErrorException(String message, Throwable cause) {
super(message, cause);
}
public ServerErrorException(Throwable cause) {
super(cause);
}
@Override
public <Object> ResponseEntity handle() {
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();
}
}
package pwc.taxtech.atms.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pwc.taxtech.atms.common.ftp.FtpService;
import java.io.InputStream;
@Service
public class FTPFileSystemServiceImpl {
private static final String USER_TEMPLATE_PATH = "pwc/userTemplate/";
@Autowired
private FtpService ftpService;
public String uploadUserTemplate(String fileName, InputStream inputStream) throws Exception {
ftpService.upload(USER_TEMPLATE_PATH, fileName, inputStream);
return USER_TEMPLATE_PATH + fileName;
}
public InputStream downloadUserTemplate(String filePath) throws Exception {
return ftpService.getFtpFileWithStaticUrl(filePath);
}
}
package pwc.taxtech.atms.service.impl;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.apache.commons.io.Charsets;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.CharSet;
import org.apache.commons.lang3.StringUtils;
import org.apache.http.Consts;
import org.apache.http.HttpEntity;
import org.apache.http.HttpHeaders;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.BasicHttpEntity;
import org.apache.http.entity.ContentType;
import org.apache.http.entity.StringEntity;
import org.apache.http.entity.mime.MultipartEntityBuilder;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import pwc.taxtech.atms.common.config.FileServiceConfig;
import pwc.taxtech.atms.dto.ApiResultDto;
import pwc.taxtech.atms.exception.ServiceException;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;
import java.util.HashMap;
import java.util.Map;
@Service
public class HttpFileService extends BaseService {
@Autowired
private FileServiceConfig config;
private static final String USER_TEMPLATE_PATH = "pwc/userTemplate/";
private static final String HTTP_HEADER = "application/json;charset=UTF-8";
/**
* 上传模板
*
* @param fileName 文件名
* @param file MultipartFile
* @return Boolean
*/
public String uploadTemplate(String fileName, MultipartFile file) throws ServiceException {
if (StringUtils.isBlank(fileName) || null == file) {
throw new IllegalArgumentException("上传参数为空");
}
CloseableHttpClient httpClient = null;
String fullPath = USER_TEMPLATE_PATH + fileName;
try {
httpClient = HttpClients.createDefault();
HttpPost httpPost = new HttpPost(config.getServerUrl() + config.getUploadUrl());
httpPost.addHeader(HttpHeaders.CONTENT_TYPE, ContentType.APPLICATION_JSON.getMimeType());
JSONObject param = new JSONObject();
param.put("path", fullPath);
param.put("file", file.getBytes());
HttpEntity httpEntity = new StringEntity(param.toJSONString(), ContentType.APPLICATION_JSON);
httpPost.setEntity(httpEntity);
HttpResponse httpResponse = httpClient.execute(httpPost);
ApiResultDto resultDto = JSON.parseObject(IOUtils.toString(httpResponse.getEntity().getContent(), "UTF-8"), ApiResultDto.class);
if (resultDto.getCode() == ApiResultDto.SUCCESS) {
return fullPath;
}
} catch (Exception e) {
logger.error("uploadTemplate error.", e);
} finally {
if (null != httpClient) {
try {
httpClient.close();
} catch (IOException e) {
logger.error("close httpClient error.", e);
}
}
}
throw new ServiceException("uploadTemplate error.");
}
/**
* 下载模板
*
* @param filePath 模板路径
* @return InputStream
*/
public InputStream getUserTemplate(String filePath) {
if (StringUtils.isBlank(filePath)) {
return null;
}
if (StringUtils.isNotBlank(config.getServerUrl())) {
CloseableHttpClient client = HttpClients.createDefault();
HttpGet httpGet = new HttpGet(StringUtils.appendIfMissing(config.getServerUrl(), "/") + filePath);
CloseableHttpResponse response = null;
try {
response = client.execute(httpGet);
if (response.getStatusLine().getStatusCode() == 200) {
return IOUtils.toBufferedInputStream(response.getEntity().getContent());
}
} catch (Exception e) {
logger.error("getUserTemplate error.", e);
} finally {
if (null != client) {
try {
client.close();
} catch (IOException e) {
logger.error("close httpClient error.", e);
}
}
}
}
return null;
}
}
......@@ -54,7 +54,7 @@ import java.util.stream.Collectors;
@Service
public class TemplateGroupServiceImpl extends AbstractService {
@Autowired
private FTPFileSystemServiceImpl fileSystemService;
private HttpFileService httpFileService;
@Autowired
private TemplateGroupDao templateGroupDao;
@Autowired
......@@ -222,7 +222,7 @@ public class TemplateGroupServiceImpl extends AbstractService {
}
ByteArrayOutputStream bos = new ByteArrayOutputStream();
optional.get().write(bos);
String tmpPath = fileSystemService.uploadUserTemplate(newName, new ByteArrayInputStream(bos.toByteArray()));
String tmpPath = httpFileService.uploadTemplate(newName, file);
String[] arr = sheetName.split("_");
String name = arr.length >= 2 ? arr[1] : arr[0];
Template template = new Template();
......@@ -320,7 +320,7 @@ public class TemplateGroupServiceImpl extends AbstractService {
}
ByteArrayOutputStream bos = new ByteArrayOutputStream();
optional.get().write(bos);
String tmpPath = fileSystemService.uploadUserTemplate(newName, new ByteArrayInputStream(bos.toByteArray()));
String tmpPath = httpFileService.uploadTemplate(newName, file);
String[] arr = sheetName.split("_");
String name = arr.length >= 2 ? arr[1] : arr[0];
Template template = new Template();
......@@ -371,9 +371,10 @@ public class TemplateGroupServiceImpl extends AbstractService {
}
}
List<List<CellTemplate>> tmpList = CommonUtils.subListWithLen(cellTemplateList, CommonUtils.BATCH_NUM);
tmpList.forEach(list -> cellTemplateMapper.batchInsert2(list));
// tmpList.forEach(list -> cellTemplateMapper.batchInsert2(list));
tmpList.forEach(list -> cellTemplateDao.batchInsert(list));//todo 批量插入优化
List<List<CellTemplateConfig>> tmpConfigList = CommonUtils.subListWithLen(cellTemplateConfigList, CommonUtils.BATCH_NUM);
tmpConfigList.forEach(list -> cellTemplateConfigMapper.batchInsert(list));
tmpConfigList.forEach(list -> cellTemplateConfigDao.batchInsert(list));
}
} catch (Exception e) {
logger.error("importTemplateExcelFile error.", e);
......
......@@ -300,7 +300,8 @@ public class UserAccountServiceImpl extends AbstractService {
user.setLoginType(UserLoginType.ExternalUser);
List<UserRole> userRoleList = new ArrayList<>();
// new password
String newPwd = stringHelper.generateRandomPassword();
// String newPwd = stringHelper.generateRandomPassword();
String newPwd = "12345678";//todo 没有发邮件,先默认这个
user.setPassword(atmsPasswordEncoder.encode(newPwd));
user.setCreateTime(
userAndUserRoleSaveDto.getCreateTime() == null ? new Date() : userAndUserRoleSaveDto.getCreateTime());
......
......@@ -10,14 +10,15 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import pwc.taxtech.atms.common.AuthUserHelper;
import pwc.taxtech.atms.common.util.MyAsserts;
import pwc.taxtech.atms.constant.Constant;
import pwc.taxtech.atms.dto.approval.ApprovalDto;
import pwc.taxtech.atms.dto.approval.ApprovalTask;
import pwc.taxtech.atms.exception.BadParameterException;
import pwc.taxtech.atms.exception.Exceptions;
import pwc.taxtech.atms.vat.dao.PeriodApproveMapper;
import pwc.taxtech.atms.vat.dao.PeriodReportMapper;
import pwc.taxtech.atms.vat.dpo.ApprovalTaskInfo;
import pwc.taxtech.atms.vat.entity.PeriodApprove;
import pwc.taxtech.atms.vat.entity.PeriodApproveExample;
import pwc.taxtech.atms.vat.entity.PeriodReport;
......@@ -36,16 +37,32 @@ public class ApprovalService {
PeriodApproveMapper periodApproveMapper;
@Autowired
PeriodReportMapper reportMapper;
@Autowired
AuthUserHelper authUserHelper;
@Transactional
public void startInstanceAndAssignee(ApprovalDto dto) {
PeriodApprove pa = new PeriodApprove();
startInstance(dto, pa);
startAssignee(pa);
createAttache(pa);
}
public List<ApprovalTaskInfo> getTask() {
String userId = authUserHelper.getCurrentUserId();//TODO query user role from sesstion or db
String assignee = ("66933E7B-DA75-4B2E-B7D6-AB65DCA20D50".equalsIgnoreCase(userId)) ? "manager" : "accountant";
return periodApproveMapper.queryApprovalList(assignee.equalsIgnoreCase("manager") ? null : userId);
}
private void startInstance(ApprovalDto dto, PeriodApprove pa) {
PeriodReportExample pre = new PeriodReportExample();
pre.createCriteria().andProjectIdEqualTo(dto.getProjectId()).andPeriodEqualTo(dto.getPeriod());
List<PeriodReport> currentReports = reportMapper.selectByExample(pre);
MyAsserts.assertNotEmpty(currentReports, Exceptions.NOT_FOUND_REPORT_EXCEPTION);
PeriodApprove pa = new PeriodApprove();
pa.setId(UUID.randomUUID().toString());
pa.setPeriod(dto.getPeriod());
pa.setYear(dto.getYear());
......@@ -72,10 +89,15 @@ public class ApprovalService {
pa.setReportIds(reportIds.toString());
pa.setTemplateIds(reportTemplateIds.toString());
pa.setStatus(Constant.APPROVAL_COMMITTED);
pa.setProjectId(dto.getProjectId());
pa.setCreateBy(authUserHelper.getCurrentUserId() == null ? "Admin" : authUserHelper.getCurrentUserId());
pa.setCreateTime(new Date());
periodApproveMapper.insert(pa);
}
private void startAssignee(PeriodApprove pa) {
List<Task> tasks = taskService.createTaskQuery().taskAssignee(Constant.ASSIGNEE_ACCOUNTANT).processInstanceId(
pi.getId()).list();
pa.getInstanceId()).list();
if (tasks != null && tasks.size() == 1) {
Task task = tasks.get(0);
......@@ -83,25 +105,24 @@ public class ApprovalService {
map.put("committed", 0);
taskService.complete(task.getId(), map);
taskService.createAttachment("java.lang.String", task.getId(), task.getProcessInstanceId(),
"period_approval_uuid", pa.getId(), "");
periodApproveMapper.insert(pa);
} else {
logger.warn("task must not null or size gt 1");
logger.warn("task must not null or size eq 1");
}
}
public List<ApprovalTask> getTask(String assignee) {
List<Task> tasks = taskService.createTaskQuery().taskAssignee(assignee).list();
List<ApprovalTask> list = new ArrayList<>();
for (Task task : tasks) {
ApprovalTask t = new ApprovalTask();
list.add(t.copyfrom(task));
private void createAttache(PeriodApprove pa) {
List<Task> tasks = taskService.createTaskQuery().taskAssignee(Constant.ASSIGNEE_MANAGER).processInstanceId(
pa.getInstanceId()).list();
if (tasks != null && tasks.size() == 1) {
Task task = tasks.get(0);
taskService.createAttachment("java.lang.String", task.getId(), task.getProcessInstanceId(),
"period_approval_uuid", pa.getId(), pa.getId());
} else {
logger.warn("task must not null or size eq 1");
}
return list;
}
@Transactional
public void checkTask(String taskId, String decide) {
Map<String, Object> map = new HashMap<>();
......
......@@ -10,10 +10,12 @@ import org.springframework.stereotype.Service;
import pwc.taxtech.atms.common.util.DateUtils;
import pwc.taxtech.atms.constant.enums.EnumTbImportType;
import pwc.taxtech.atms.constant.enums.EnumValidationType;
import pwc.taxtech.atms.dao.OrganizationMapper;
import pwc.taxtech.atms.dao.ProjectMapper;
import pwc.taxtech.atms.dto.FieldsMapper;
import pwc.taxtech.atms.dto.OperationResultDto;
import pwc.taxtech.atms.dto.vatdto.InputVATInvoiceDto;
import pwc.taxtech.atms.entity.Organization;
import pwc.taxtech.atms.entity.Project;
import pwc.taxtech.atms.invoice.InputInvoiceDetailMapper;
import pwc.taxtech.atms.invoice.InputInvoiceMapper;
......@@ -46,11 +48,14 @@ public class InputInvoiceDataImportServiceImpl {
private ProjectMapper projectMapper;
@Autowired
private InputInvoiceDetailMapper inputInvoiceDetailMapper;
@Autowired
private OrganizationMapper organizationMapper;
public PageInfo<InputInvoice> getInputInvoiceTreeViewData(InputInvoicePreviewQueryParam paras, String projectId) {
Project project = projectMapper.selectByPrimaryKey(projectId);
Organization organization = organizationMapper.selectByPrimaryKey(project.getOrganizationId());
InputInvoiceExample invoiceExample = new InputInvoiceExample();
invoiceExample.createCriteria().andCOMPANYIDEqualTo(project.getCode()).andRZSJBetween(DateUtils.getPeriodBegin(
invoiceExample.createCriteria().andGFSHEqualTo(organization.getTaxPayerNumber()).andRZSJBetween(DateUtils.getPeriodBegin(
project.getYear(), paras.getPeriodStart()), DateUtils.getPeriodEnd(project.getYear(), paras.getPeriodEnd()))
.andRZJGEqualTo(INPUT_RZJG_SUCCESS).andRZZTEqualTo(INPUT_RZZT_OVER);
......
......@@ -15,7 +15,6 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import pwc.taxtech.atms.common.POIUtil;
import pwc.taxtech.atms.common.ftp.FtpService;
import pwc.taxtech.atms.common.util.SpringContextUtil;
import pwc.taxtech.atms.constant.enums.CellDataSourceType;
import pwc.taxtech.atms.constant.enums.FormulaDataSourceType;
......@@ -24,6 +23,7 @@ import pwc.taxtech.atms.dto.vatdto.CellCalcInfoDto;
import pwc.taxtech.atms.dto.vatdto.CellTemplateConfigGroupDto;
import pwc.taxtech.atms.entity.Project;
import pwc.taxtech.atms.service.impl.DistributedIdService;
import pwc.taxtech.atms.service.impl.HttpFileService;
import pwc.taxtech.atms.vat.dao.*;
import pwc.taxtech.atms.vat.dpo.PeriodCellTemplateConfigExtendDto;
import pwc.taxtech.atms.vat.entity.*;
......@@ -47,7 +47,7 @@ public class ReportGeneratorImpl {
@Autowired
private ProjectMapper projectMapper;
@Autowired
private FtpService ftpService;
private HttpFileService httpFileService;
@Autowired
private FormulaAgent formulaAgent;
@Autowired
......@@ -289,11 +289,12 @@ public class ReportGeneratorImpl {
}
//如果有正则匹配就进行更新公式解析
// if (isFind) {
periodCellTemplateConfig.setParsedFormula(StringUtils.isNotBlank(resultFormula) ? resultFormula : null);
periodCellTemplateConfig.setFormula(StringUtils.isNotBlank(periodCellTemplateConfig.getFormula()) ? resultFormula : null);
periodCellTemplateConfigMapper.updateByPrimaryKeySelective(periodCellTemplateConfig);
// }
if (isFind) {
periodCellTemplateConfig.setParsedFormula(StringUtils.isNotBlank(resultFormula) ? resultFormula : null);
if (periodCellTemplateConfig.getFormula() != null && !periodCellTemplateConfig.getFormula().contains("BB("))
periodCellTemplateConfig.setFormula(StringUtils.isNotBlank(periodCellTemplateConfig.getFormula()) ? resultFormula : null);
periodCellTemplateConfigMapper.updateByPrimaryKeySelective(periodCellTemplateConfig);
}
String regexNormalCell = "[A-Z]{1,2}((?!0)[0-9]{1,3})";
p = Pattern.compile(regexNormalCell);
......@@ -394,7 +395,7 @@ public class ReportGeneratorImpl {
// periodFormulaBlockExample.createCriteria().andPeriodEqualTo(period)
// .andCellTemplateIdEqualTo(tempPeriodCellTemplate.get().getCellTemplateId());
if(StringUtils.isBlank(resultFormula)){
if (StringUtils.isBlank(resultFormula)) {
resultFormula = null;
}
// if (isFind) {
......@@ -475,7 +476,7 @@ public class ReportGeneratorImpl {
} else {
InputStream is = null;
try {
is = ftpService.getFtpFileWithStaticUrl(a.getPath());
is = httpFileService.getUserTemplate(a.getPath());
tWorkbook = WorkbookFactory.create(is);
} catch (Exception e) {
e.printStackTrace();
......
......@@ -5,10 +5,39 @@
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd">
<!-- See: https://github.com/alibaba/druid/wiki/%E9%85%8D%E7%BD%AE_DruidDataSource%E5%8F%82%E8%80%83%E9%85%8D%E7%BD%AE -->
<bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource">
<property name="url" value="${jdbc_url}"/>
<property name="username" value="${jdbc_user}"/>
<property name="password" value="${jdbc_password}"/>
<bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource"
init-method="init" destroy-method="close">
<!-- 基本属性 url、user、password -->
<property name="url" value="${jdbc_url}" />
<property name="username" value="${jdbc_user}" />
<property name="password" value="${jdbc_password}" />
<!-- 配置初始化大小、最小、最大 -->
<property name="initialSize" value="${atms.config.druid.initialSize:1}" />
<property name="minIdle" value="${atms.config.druid.minIdle:1}" />
<property name="maxActive" value="${atms.config.druid.maxActive:20}" />
<!-- 配置获取连接等待超时的时间 -->
<property name="maxWait" value="${atms.config.druid.maxWait:60000}" />
<!-- 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 -->
<property name="timeBetweenEvictionRunsMillis" value="${atms.config.druid.timeBetweenEvictionRunsMillis:60000}" />
<!-- 配置一个连接在池中最小生存的时间,单位是毫秒 -->
<property name="minEvictableIdleTimeMillis" value="${atms.config.druid.minEvictableIdleTimeMillis:300000}" />
<property name="validationQuery" value="SELECT 'x' FROM DUAL" />
<property name="testWhileIdle" value="true" />
<property name="testOnBorrow" value="false" />
<property name="testOnReturn" value="false" />
<!-- 打开PSCache,并且指定每个连接上PSCache的大小 -->
<property name="poolPreparedStatements" value="true" />
<property name="maxPoolPreparedStatementPerConnectionSize"
value="20" />
<!-- 配置监控统计拦截的filters -->
<property name="filters" value="stat" />
</bean>
<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
......
......@@ -8,11 +8,6 @@ jdbc2_user=${jdbc2_user}
jdbc2_password=${jdbc2_password}
jdbc2_admin_db=${jdbc2_admin_db}
workflow_jdbc_url=${workflow_jdbc_url}
workflow_jdbc_user=${workflow_jdbc_user}
workflow_jdbc_password=${workflow_jdbc_password}
workflow_jdbc_admin_db=${workflow_jdbc_admin_db}
jdbc_url_demo=${jdbc_url_demo}
mail_jdbc_url=${mail_jdbc_url}
......@@ -26,11 +21,9 @@ jwt.powerToken=${jwt.powerToken}
jwt.expireSecond=${jwt.expireSecond}
jwt.refreshSecond=${jwt.refreshSecond}
#FTP Config
ftp.host=${ftp.host}
ftp.port=${ftp.port}
ftp.user=${ftp.user}
ftp.pwd=${ftp.pwd}
#File Server Config
file.server.url=${file.server.url}
file.server.upload=${file.server.upload}
#upload
max_file_length=${max_file_length}
......
......@@ -9,11 +9,6 @@ jdbc2_user=pwc_invoice
jdbc2_password=pwc_invoice
jdbc2_admin_db=pwc_invoice
workflow_jdbc_url=jdbc:oracle:thin:@10.158.230.144:11521:XE
workflow_jdbc_user=TAX_ADMIN
workflow_jdbc_password=taxadmin2018
workflow_jdbc_admin_db=tax_admin
jdbc_url_demo=jdbc:mysql://10.158.230.144:3306/demo_db_name?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false
mail_jdbc_url=jdbc:sqlserver://192.168.1.102:1434;DatabaseName=MAILMaster
......@@ -27,10 +22,9 @@ jwt.powerToken=xxxx
jwt.expireSecond=180000
jwt.refreshSecond=600
ftp.host=10.158.230.144
ftp.port=2121
ftp.user=admin
ftp.pwd=admin
#File Server Config
file.server.url=http://10.158.230.144:1886
file.server.upload=/api/v1/upload
#upload
max_file_length=104857600
......
......@@ -16,10 +16,9 @@ jwt.powerToken=
jwt.expireSecond=1800
jwt.refreshSecond=900
ftp.host=cnshaappulv004.asia.pwcinternal.com
ftp.port=21
ftp.user=ftpuser
ftp.pwd=12345678
#File Server Config
file.server.url=http://10.158.230.144:1886
file.server.upload=/api/v1/upload
#upload
max_file_length=104857600
......
jdbc_url=jdbc:mysql://10.157.107.89:3306/tax_admin?useUnicode=true&amp;characterEncoding=utf-8&amp;zeroDateTimeBehavior=convertToNull&amp;allowMultiQueries=true
jdbc_user=root
jdbc_password=tax@Admin2018
jdbc_admin_db=tax_admin
jdbc_url=jdbc:oracle:thin:@127.0.0.1:1521:XE
jdbc_user=tax_admin_longi
jdbc_password=tax_admin_longi
#jdbc_password=111111
jdbc_admin_db=tax_admin_longi
jdbc_url_demo=jdbc:mysql://10.157.107.89:3306/demo_db_name?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
jdbc2_url=jdbc:oracle:thin:@127.0.0.1:1521:XE
jdbc2_user=pwc_invoice
jdbc2_password=pwc_invoice
jdbc2_admin_db=pwc_invoices
jdbc_url_demo=jdbc:mysql://10.158.230.144:3306/demo_db_name?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false
mail_jdbc_url=jdbc:sqlserver://192.168.1.102:1434;DatabaseName=MAILMaster
mail_jdbc_user=sa
mail_jdbc_password=atmsunittestSQL
web.url=http://cnshaappulv004:8080
web.url=http://etms.longi-silicon.com:8180
#web.url=*
jwt.base64Secret=TXppQjFlZFBSbnJzMHc0Tg==
jwt.powerToken=xxxx
jwt.expireSecond=1800
jwt.refreshSecond=900
jwt.expireSecond=180000
jwt.refreshSecond=600
ftp.host=cnshaappulv003.asia.pwcinternal.com
ftp.port=21
ftp.user=ftpuser
ftp.pwd=12345678
#File Server Config
file.server.url=http://10.158.230.144:1886
file.server.upload=/api/v1/upload
#upload
max_file_length=104857600
#Distributed ID Generate
distributed_id_datacenter=1
distributed_id_machine=1
\ No newline at end of file
distributed_id_datacenter=10
distributed_id_machine=10
api.url=http://etms.longi-silicon.com:8182
This diff is collapsed.
package pwc.taxtech.atms;
import java.util.Arrays;
import org.springframework.security.authentication.ProviderManager;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.test.util.ReflectionTestUtils;
import pwc.taxtech.atms.security.JwtAuthenticationProvider;
import pwc.taxtech.atms.security.JwtAuthenticationToken;
import pwc.taxtech.atms.security.JwtUtil;
public abstract class CommonTestUtils {
public static void initTestAuth() {
Authentication request = new JwtAuthenticationToken("xxxx");
JwtAuthenticationProvider jwtAuthenticationProvider = new JwtAuthenticationProvider();
JwtUtil jwtutil = new JwtUtil();
jwtutil.setJwtBase64Secret("testkey");
jwtutil.setJwtPowerToken("xxxx");
ReflectionTestUtils.setField(jwtAuthenticationProvider, "jwtUtil", jwtutil);
ProviderManager providerManager = new ProviderManager(Arrays.asList(jwtAuthenticationProvider));
Authentication authenticaiton = providerManager.authenticate(request);
SecurityContextHolder.getContext().setAuthentication(authenticaiton);
}
}
package pwc.taxtech.atms;
import java.lang.reflect.Field;
public class FieldsCompare {
public static <S, D> void map(S source, D dest) throws ClassNotFoundException, IllegalAccessException {
Class destClass = Class.forName(dest.getClass().getName());
Class clsSource = Class.forName(source.getClass().getName());
Field[] declaredFields = destClass.getDeclaredFields();
Field[] clsFields = clsSource.getDeclaredFields();
System.out.println(destClass.getName());
System.out.println();
System.out.println(clsSource.getName());
System.out.println(clsFields.toString());
System.out.println(clsSource.getName() + ":" + clsFields.length);
System.out.println(destClass.getName() + ":" + declaredFields.length);
Field[] fieldsMax = null;
Field[] fieldsMin = null;
Class fieldsMaxClass = null;
Class fieldsMinClass = null;
if (declaredFields.length > clsFields.length) {
fieldsMax = declaredFields;
fieldsMin = clsFields;
fieldsMaxClass = destClass;
fieldsMinClass = clsSource;
} else {
fieldsMax = clsFields;
fieldsMaxClass = clsSource;
fieldsMin = declaredFields;
fieldsMinClass = destClass;
}
for (Field field : fieldsMax) {
field.setAccessible(true);
String fieldName = field.getName();
try {
if ("serialVersionUId".equals(fieldName)) {
continue;
}
fieldsMinClass.getDeclaredField(fieldName);
} catch (NoSuchFieldException e) {
System.out.println("NoSuchFieldException " + fieldsMinClass.getName() + "." + fieldName);
}
}
for (Field field : fieldsMin) {
field.setAccessible(true);
String fieldName = field.getName();
try {
if ("serialVersionUId".equals(fieldName)) {
continue;
}
fieldsMaxClass.getDeclaredField(fieldName);
} catch (NoSuchFieldException e) {
System.out.println("NoSuchFieldException " + fieldsMaxClass.getName() + "." + fieldName);
}
}
}
public static void main(String[] args) throws IllegalAccessException, ClassNotFoundException {
// map(new CompanyBalanceDto(), new CompanyBalance());
}
}
\ No newline at end of file
package pwc.taxtech.atms;
//import org.eclipse.jetty.server.Server;
//import org.eclipse.jetty.webapp.WebAppContext;
//import org.eclipse.jetty.websocket.jsr356.server.ServerContainer;
//import org.eclipse.jetty.websocket.jsr356.server.deploy.WebSocketServerContainerInitializer;
public class JettyLauncher {
public static void main(String[] args) {
// int port = 8180;
// Server server = new Server(port);
// WebAppContext webAppContext = new WebAppContext("webapp", "/");
//
// webAppContext.setDescriptor("webapp/WEB-INF/web.xml");
// webAppContext.setResourceBase("src/main/webapp");
// webAppContext.setDisplayName("atms-api");
// webAppContext.setClassLoader(Thread.currentThread().getContextClassLoader());
// webAppContext.setConfigurationDiscovered(true);
// webAppContext.setParentLoaderPriority(true);
//
//
// server.setHandler(webAppContext);
// System.out.println(webAppContext.getContextPath());
// System.out.println(webAppContext.getDescriptor());
// System.out.println(webAppContext.getResourceBase());
// System.out.println(webAppContext.getBaseResource());
//
// try {
// ServerContainer wscontainer = WebSocketServerContainerInitializer.configureContext(webAppContext);
// // Add WebSocket endpoint to javax.websocket layer
//// wscontainer.addEndpoint(MyWebSocket.class); //这行是如果需要使用websocket就加上,不需要就注释掉这行,mywebsocket是自己写的websocket服务类
//
// server.start();
// } catch (Exception e) {
// e.printStackTrace();
// }
// System.out.println("server is start, port is " + port + "............");
}
}
package pwc.taxtech.atms;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class RegexTest {
public static void main(String[] args) {
String regex = "[A-Z]*\\([A-Za-z0-9\\\"\\,\\.\\u4e00-\\u9fa5\\%\\-]*\\)";
String forumula = "ND(2) +ND(1) +A2";
// 不以baidu开头的字符串 (?!SUM)[A-Z]+[0-9]+
String regex3 = "^(?!baidu).*$";
String regex2 = "[A-Z]+[0-9]+";
int count = 0;
Pattern p = Pattern.compile(regex2);
Matcher m = p.matcher(forumula);
while (m.find()) {
//如果有些公式无法用正则匹配,可以做特殊处理
System.out.println("匹配项" + count + ":" + m.group()); //group方法返回由以前匹配操作所匹配的输入子序列。
count++;
}
}
}
package pwc.taxtech.atms.common;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils;
import org.junit.Test;
import pwc.taxtech.atms.CommonIT;
import pwc.taxtech.atms.entity.StandardAccount;
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.List;
public class DataInitTest extends CommonIT {
@Test
public void initStandardAccount() {
try {
List<String> lines = FileUtils.readLines(new File("C:\\Users\\Eddie Wu\\Desktop\\隆基科目整理.csv"), StandardCharsets.UTF_8);
lines.remove(0);
String[] parent = null;
for (String line : lines) {
if (StringUtils.isBlank(line)) {
continue;
}
String[] cols = line.split(",");
String name = StringUtils.substringAfterLast(cols[7], "-");
StandardAccount account = new StandardAccount();
account.setId(CommonUtils.getUUID());
account.setCode(cols[6]);
account.setName(StringUtils.isBlank(name) ? cols[7] : name);
if (StringUtils.isNotBlank(cols[0])) {
parent = cols;
} else {
account.setParentCode(parent[6]);
}
account.setFullName(cols[7]);
account.setAcctProp(Integer.valueOf(cols[9]));
int acctLevel = 1;
if (StringUtils.isNotBlank(cols[1])) {
acctLevel = 2;
} else if (StringUtils.isNotBlank(cols[2])) {
acctLevel = 3;
} else if (StringUtils.isNotBlank(cols[3])) {
acctLevel = 4;
} else if (StringUtils.isNotBlank(cols[4])) {
acctLevel = 5;
}
account.setAcctLevel(acctLevel);
account.setDirection(Integer.valueOf(cols[10]) == 1 ? 1 : -1);
account.setIsLeaf(acctLevel != 1);
account.setRuleType(2);
account.setIsActive(true);
account.setEnglishName(cols[8]);
account.setIndustryId("0");
standardAccountMapper.insertSelective(account);
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
package pwc.taxtech.atms.plugin;
import org.mybatis.generator.api.IntrospectedTable;
import org.mybatis.generator.api.PluginAdapter;
import org.mybatis.generator.api.dom.java.FullyQualifiedJavaType;
import org.mybatis.generator.api.dom.java.Interface;
import org.mybatis.generator.api.dom.java.TopLevelClass;
import java.util.List;
public class MapperAnnotationPlugin extends PluginAdapter {
@Override
public boolean validate(List<String> warnings) {
return true;
}
@Override
public boolean clientGenerated(Interface interfaze, TopLevelClass topLevelClass,
IntrospectedTable introspectedTable) {
interfaze.addImportedType(new FullyQualifiedJavaType("org.apache.ibatis.annotations.Mapper"));
interfaze.addAnnotation("@Mapper");
interfaze.addImportedType(new FullyQualifiedJavaType("org.springframework.stereotype.Repository"));
interfaze.addAnnotation("@Repository");
return true;
}
}
package pwc.taxtech.atms.security;
import org.junit.Assert;
import org.junit.Test;
public class AtmsPasswordEncoderTest {
@Test
public void shouldMatch() {
AtmsPasswordEncoder atmsPasswordEncoder = new AtmsPasswordEncoderImpl();
boolean result = atmsPasswordEncoder.matches("111111",
"69BC651769B8D284F8E210B52F1796A170B9B0D114EC24F6EE25405BEA562BBEC0F5A03363B0F35F348A67721A92D932D294D20527097A49E216DE6ADC1D75EE");
Assert.assertTrue("Password not match", result);
}
}
package pwc.taxtech.atms.security;
import io.jsonwebtoken.JwtBuilder;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
import org.junit.Test;
import org.nutz.lang.Times;
import pwc.taxtech.atms.common.CommonUtils;
import java.util.Calendar;
import java.util.Date;
public class JwtGneratorTest {
public static void main(String[] args) {
Calendar calendar = Calendar.getInstance();
calendar.set(Calendar.YEAR, 2999);
Date now = new Date();
JwtBuilder jwtBuilder = Jwts.builder();
// 设置Subject为登录用户名
jwtBuilder.setSubject("longi");
jwtBuilder.setExpiration(calendar.getTime());
jwtBuilder.setIssuedAt(now);
// 设置时钟误差偏移量,即10分钟
Date notBefore = Times.nextSecond(now, -600);
jwtBuilder.setNotBefore(notBefore);
jwtBuilder.setId(CommonUtils.getUUID());
jwtBuilder.claim("appId", "longi");
// 设置body.username为数据库用户名
jwtBuilder.signWith(SignatureAlgorithm.HS512, "TXppQjFlZFBSbnJzMHc0Tg==");
System.out.println(jwtBuilder.compact());
}
@Test
public void tt() {
}
}
package pwc.taxtech.atms.security;
import java.util.Date;
import org.junit.Assert;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.alibaba.fastjson.JSON;
import io.jsonwebtoken.ExpiredJwtException;
import io.jsonwebtoken.JwtParser;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
public class JwtUtilTest {
private static final Logger logger = LoggerFactory.getLogger(JwtUtilTest.class);
private static final String TEST_SECRET_KEY = "test_secret_key";
private JwtUtil jwtUtil = new JwtUtil();
{
jwtUtil.setJwtBase64Secret(TEST_SECRET_KEY);
}
@Test
public void generateTokenThenValidate() {
String token = jwtUtil.generateToken("admin", "Admin", "UUID_OF_ADMIN_USER");
logger.debug("print token:{}", token);
JwtUser jwtUser = jwtUtil.parseToken(token);
logger.debug("print jwtUser:{}", JSON.toJSONString(jwtUser, true));
Assert.assertNotNull(jwtUser);
Assert.assertEquals("Admin", jwtUser.getDatabaseUsername());
Assert.assertEquals("admin", jwtUser.getUsername());
Assert.assertEquals("UUID_OF_ADMIN_USER", jwtUser.getUserid());
}
@Test(expected = ExpiredJwtException.class)
public void getExpiredToken() {
String token = Jwts.builder().setExpiration(new Date(System.currentTimeMillis() - 1000))
.signWith(SignatureAlgorithm.HS512, TEST_SECRET_KEY).compact();
JwtParser parser = Jwts.parser().setSigningKey(TEST_SECRET_KEY);
parser.parseClaimsJws(token);
}
}
package pwc.taxtech.atms.security;
import java.util.Hashtable;
import org.junit.Assert;
import org.junit.Test;
public class LdapAuthenticationProviderTest {
// 暂时跳过该测试方法
// @Test
public void authenticateOk() {
LdapAuthenticationProvider ldapAuthenticationProvider = new LdapAuthenticationProviderImpl();
String username = "xxx";
String password = "xxx";
String ldapUrl = "LDAP://nam.ad.pwcinternal.com";
String domain = "NAM";
boolean result = ldapAuthenticationProvider.authenticate(username, password, ldapUrl, domain);
System.out.println(result);
// Assert.assertTrue(result);
}
@Test
public void newClass() {
LdapAuthenticationProviderImpl ldapAuthenticationProvider = new LdapAuthenticationProviderImpl();
String username = "xxx";
String password = "xxx";
String ldapUrl = "LDAP://nam.ad.pwcinternal.com";
String domain = "NAM";
Hashtable<String, String> param = ldapAuthenticationProvider.buildParam(username, password, ldapUrl, domain);
Assert.assertNotNull(param);
}
}
jdbc_url=jdbc:sqlserver://192.168.1.102:1434;DatabaseName=TaxAdmin8
jdbc_user=sa
jdbc_password=atmsunittestSQL
mail_jdbc_url=jdbc:sqlserver://192.168.1.102:1434;DatabaseName=MAILMaster
mail_jdbc_user=sa
mail_jdbc_password=atmsunittestSQL
web.url=http://localhost:8080
jwt.base64Secret=TXppQjFlZFBSbnJzMHc0Tg==
jwt.powerToken=xxxx
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE generatorConfiguration
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration>
<!-- See: http://www.mybatis.org/generator/configreference/commentGenerator.html -->
<!--<properties resource="generator.properties" />-->
<!-- <classPathEntry location="../hsqldb/hsqldb-2.3.5.jar" /> -->
<context id="contextId" targetRuntime="MyBatis3">
<!-- 考虑需要兼容DB2与ORCAL数据库, 大部份字段不需要加双引号,autoDelimitKeywords设置为false -->
<property name="autoDelimitKeywords" value="true" />
<property name="beginningDelimiter" value="`"/>
<property name="endingDelimiter" value="`"/>
<property name="javaFileEncoding" value="UTF-8" />
<plugin type="pwc.taxtech.atms.plugin.MapperAnnotationPlugin" />
<plugin type="org.mybatis.generator.plugins.RowBoundsPlugin" />
<plugin type="org.mybatis.generator.plugins.ToStringPlugin" />
<!--<plugin type="org.mybatis.generator.plugins.SerializablePlugin" />-->
<commentGenerator>
<property name="suppressDate" value="true" />
<property name="addRemarkComments" value="true" />
</commentGenerator>
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://10.157.107.89:3306/tax_longi?useUnicode=true&amp;characterEncoding=utf-8&amp;zeroDateTimeBehavior=convertToNull&amp;allowMultiQueries=true"
userId="root" password="tax@Admin2018">
</jdbcConnection>
<javaTypeResolver>
<property name="forceBigDecimals" value="false" />
</javaTypeResolver>
<javaModelGenerator targetPackage="pwc.taxtech.atms.entity" targetProject="./src/main/java">
<property name="trimStrings" value="true" />
<property name="rootClass" value="pwc.taxtech.atms.entity.BaseEntity"/>
</javaModelGenerator>
<sqlMapGenerator targetPackage="pwc.taxtech.atms.dao" targetProject="./src/main/resources">
</sqlMapGenerator>
<javaClientGenerator type="XMLMAPPER" targetPackage="pwc.taxtech.atms.dao" targetProject="./src/main/java">
<property name="rootInterface" value="pwc.taxtech.atms.MyMapper" />
</javaClientGenerator>
<!--<table tableName="input_invoice" domainObjectName="InputInvoice">-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!--<columnOverride column="invoice_type" javaType="java.lang.Integer"/>-->
<!--<columnOverride column="upload_type" javaType="java.lang.Integer"/>-->
<!--<columnOverride column="invoice_entity_type" javaType="java.lang.Integer"/>-->
<!--<columnOverride column="invoice_source_type" javaType="java.lang.Integer"/>-->
<!--<columnOverride column="status" javaType="java.lang.Integer"/>-->
<!--<columnOverride column="deductible" javaType="java.lang.Boolean"/>-->
<!--<columnOverride column="has_down_file" javaType="java.lang.Boolean"/>-->
<!--<columnOverride column="verify_type" javaType="java.lang.Integer"/>-->
<!--<columnOverride column="deductible_result" javaType="java.lang.Integer"/>-->
<!--<columnOverride column="is_red_invoice" javaType="java.lang.Boolean"/>-->
<!--</table>-->
<!--<table tableName="input_invoice_additional" domainObjectName="InputInvoiceAdditional">-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!--<columnOverride column="type" javaType="java.lang.Integer"/>-->
<!--</table>-->
<table tableName="input_invoice_file" domainObjectName="InputInvoiceFile">
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>
<!--<table tableName="input_invoice_item" domainObjectName="InputInvoiceItem">-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!--</table>-->
<!--<table tableName="input_invoice_item_original" domainObjectName="InputInvoiceItemOriginal">-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!--</table>-->
<!--<table tableName="input_invoice_not_received" domainObjectName="InputInvoiceNotReceived">-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!--<columnOverride column="invoice_type" javaType="java.lang.Integer"/>-->
<!--<columnOverride column="upload_type" javaType="java.lang.Integer"/>-->
<!--<columnOverride column="invoice_entity_type" javaType="java.lang.Integer"/>-->
<!--<columnOverride column="invoice_source_type" javaType="java.lang.Integer"/>-->
<!--<columnOverride column="status" javaType="java.lang.Integer"/>-->
<!--<columnOverride column="deductible" javaType="java.lang.Boolean"/>-->
<!--<columnOverride column="has_down_file" javaType="java.lang.Boolean"/>-->
<!--<columnOverride column="verify_type" javaType="java.lang.Integer"/>-->
<!--<columnOverride column="deductible_result" javaType="java.lang.Integer"/>-->
<!--</table>-->
<!--<table tableName="input_invoice_original" domainObjectName="InputInvoiceOriginal">-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!--<columnOverride column="invoice_type" javaType="java.lang.Integer"/>-->
<!--<columnOverride column="upload_type" javaType="java.lang.Integer"/>-->
<!--<columnOverride column="invoice_entity_type" javaType="java.lang.Integer"/>-->
<!--<columnOverride column="invoice_source_type" javaType="java.lang.Integer"/>-->
<!--<columnOverride column="status" javaType="java.lang.Integer"/>-->
<!--<columnOverride column="deductible" javaType="java.lang.Boolean"/>-->
<!--<columnOverride column="has_down_file" javaType="java.lang.Boolean"/>-->
<!--<columnOverride column="verify_type" javaType="java.lang.Integer"/>-->
<!--<columnOverride column="deductible_result" javaType="java.lang.Integer"/>-->
<!--<columnOverride column="is_red_invoice" javaType="java.lang.Boolean"/>-->
<!--</table>-->
<!--<table tableName="api_cache" domainObjectName="ApiCache">-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!--<columnOverride column="source_type" javaType="java.lang.Integer"/>-->
<!--</table>-->
<!--<table tableName="input_material_item" domainObjectName="InputMaterialItem">-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!--</table>-->
<!--<table tableName="input_material_item_category" domainObjectName="InputMaterialItemCategory">-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!--</table>-->
<!--<table tableName="input_vendor" domainObjectName="InputVendor">-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!--</table>-->
<!--<table tableName="input_vendor_address" domainObjectName="InputVendorAddress">-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!--</table>-->
<!--<table tableName="input_vendor_bank_account" domainObjectName="InputVendorBankAccount">-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!--</table>-->
<!--<table tableName="input_vendor_contactor" domainObjectName="InputVendorContactor">-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!--</table>-->
<!--<table tableName="input_vendor_site" domainObjectName="InputVendorSite">-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!--</table>-->
<!--<table tableName="input_device" domainObjectName="InputDevice">-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!--<columnOverride column="type" javaType="java.lang.Integer"/>-->
<!--</table>-->
<!--<table tableName="task_list" domainObjectName="TaskList">-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!--<columnOverride column="type" javaType="java.lang.Integer"/>-->
<!--<columnOverride column="status" javaType="java.lang.Integer"/>-->
<!--</table>-->
</context>
</generatorConfiguration>
\ No newline at end of file
log4j.rootLogger=WARN,stdout,fileoutall
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=[%-5p] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %l - %m%n
log4j.appender.fileoutall=org.apache.log4j.RollingFileAppender
log4j.appender.fileoutall.File=./target/atms-api-all.log
log4j.appender.fileoutall.layout.ConversionPattern=[%-5p] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %l - %m%n
log4j.appender.fileoutall.MaxFileSize=40000KB
log4j.appender.fileoutall.MaxBackupIndex=8
log4j.appender.fileoutall.layout=org.apache.log4j.PatternLayout
log4j.logger.pwc.taxtech.atms.common.MyServletContextListener=DEBUG
log4j.logger.org.springframework.aop.framework.CglibAopProxy=ERROR
This diff is collapsed.
This diff is collapsed.
INSERT [AreaRegion] ([ID], [AreaID], [RegionID]) VALUES (N'00565CD7-1923-4B16-AC25-480B0C3AADCD', N'bc08cf92-c75c-4fa3-ac66-fe10be346ceb', N'110000')INSERT [AreaRegion] ([ID], [AreaID], [RegionID]) VALUES (N'8687a005-80ec-4bda-bb56-05cf560eb839', N'bc08cf92-c75c-4fa3-ac66-fe10be346ceb', N'110100')INSERT [AreaRegion] ([ID], [AreaID], [RegionID]) VALUES (N'a6bcc4a2-586d-468b-8802-a93c4a434b22', N'bc08cf92-c75c-4fa3-ac66-fe10be346ceb', N'120000')INSERT [AreaRegion] ([ID], [AreaID], [RegionID]) VALUES (N'ba3de8c5-09e6-4c91-9d03-50a985d30baf', N'bc08cf92-c75c-4fa3-ac66-fe10be346ceb', N'120100')INSERT [AreaRegion] ([ID], [AreaID], [RegionID]) VALUES (N'cab9a51b-5616-424f-b112-176e10fe7388', N'bc08cf92-c75c-4fa3-ac66-fe10be346ceb', N'440000')INSERT [AreaRegion] ([ID], [AreaID], [RegionID]) VALUES (N'49e4b472-e95f-480a-b40c-5b8746592b66', N'bc08cf92-c75c-4fa3-ac66-fe10be346ceb', N'440200')INSERT [AreaRegion] ([ID], [AreaID], [RegionID]) VALUES (N'169ec4c5-31c3-44c6-ab37-3a5ec3816a4d', N'bc08cf92-c75c-4fa3-ac66-fe10be346ceb', N'440300')GO
\ No newline at end of file
INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'000000', NULL, N'长江七号001', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'02755f74-9f44-4cda-8dc3-f876f702d263', NULL, N'aaaaaa', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'0A5602E0-5A7C-4E26-9AEB-208EDADE19FB', NULL, N'华东区', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'0fcc7202-079d-428e-8402-46971e4527c5', NULL, N'lilylily', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'11d20e9f-1f24-456a-886b-b3977f981d45', N'13704471-f3ac-475c-9d1b-b02233914b16', N'144444444444444', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'1231b189-4f2b-432d-96e5-59dc0b02889d', N'13704471-f3ac-475c-9d1b-b02233914b16', N'南沙群岛', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'13704471-f3ac-475c-9d1b-b02233914b16', NULL, N'江南一带', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'141eb884-e9b9-4188-9a00-a3571ab1e7e9', N'7c360a44-7a17-4ca0-9c2a-a88cde7670d5', N'top123', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'141eee99-4046-473e-a8b7-7ccd25892b71', N'7c360a44-7a17-4ca0-9c2a-a88cde7670d5', N'TOP12345', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'20831eae-bfde-4e76-b841-a22e44f981e1', NULL, N'22222222222222222222222222222222222222', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'22bed587-ef64-4af0-8b4d-6c8f920b3246', N'141eee99-4046-473e-a8b7-7ccd25892b71', N'TOP123456', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'230b2b25-3473-4d83-93f2-1e0a6d8dfad9', N'0A5602E0-5A7C-4E26-9AEB-208EDADE19FB', N'广东区域', 0)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'35592362-96F3-4BD9-BBEA-5AFA84C7B17C', NULL, N'华东区', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'359667ee-bf7b-47bc-95b4-1c6e00f1de8d', NULL, N'西南32rfdeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'42586b4a-2614-4afa-972c-2c290193cad6', NULL, N'TOPTOP', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'49e4b472-e95f-480a-b40c-5b8746592b66', NULL, N'123123', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'4f1902bf-6b33-4264-b6e9-46d44c148f4e', N'7c360a44-7a17-4ca0-9c2a-a88cde7670d5', N'2222', 0)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'56ebee94-f8ad-4810-bbef-9d8464d51126', N'000000', N'苏沪区', 0)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'5f4c122f-0d5b-4e88-9100-d52f4b965bac', NULL, N'888888888', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'635371fb-7ce6-4dd3-abea-7c347c211f02', N'a0b26322-4dce-41ea-ac59-fce223f3f19c', N'1', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'65476f34-58b2-40b7-865f-8a12b8b0a5e6', N'7c360a44-7a17-4ca0-9c2a-a88cde7670d5', N'top', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'77bda220-a85f-4a02-adc8-1b90851f76dd', NULL, N'1111111', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'7987b120-4840-4e4a-b38d-d4c9b71546e4', N'7cc6ff3b-0bfe-402b-93ea-b8489bb358d1', N'bbbbb->aaaaa', 0)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'7c360a44-7a17-4ca0-9c2a-a88cde7670d5', NULL, N'1111', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'7cc6ff3b-0bfe-402b-93ea-b8489bb358d1', NULL, N'bbbbbbba', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'8342228E-DFF6-4EFE-A269-F4319D687501', NULL, N'华南区', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'8687a005-80ec-4bda-bb56-05cf560eb839', NULL, N'2343434343434', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'8be4d5cf-410a-48c7-ad9e-cbf20ec03fff', N'7c360a44-7a17-4ca0-9c2a-a88cde7670d5', N'top1234', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'8e8d49ed-a62f-4a59-aa4f-5c7161e2902c', NULL, N'TEST2', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'9d53ea52-dcb6-4fea-af6f-a7e9f5b7e49c', NULL, N'test青海', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'a0b26322-4dce-41ea-ac59-fce223f3f19c', NULL, N'华中', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'a6bcc4a2-586d-468b-8802-a93c4a434b22', NULL, N'Emily 测试新增区域', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'ADC3EB0B-31D4-47F3-AADF-013C5C107945', NULL, N'华南区', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'b982fb61-3ea6-4ad7-b669-c3a68a1e43bf', NULL, N'港澳台', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'ba3de8c5-09e6-4c91-9d03-50a985d30baf', N'13704471-f3ac-475c-9d1b-b02233914b16', N'11111111111111111111111111111111111111111111111111', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'bc08cf92-c75c-4fa3-ac66-fe10be346ceb', N'7c360a44-7a17-4ca0-9c2a-a88cde7670d5', N'TOP11111', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'c9037aff-f7a4-415d-8453-ac827a689c07', NULL, N'abab!!', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'c90fe41f-1408-47ea-ba9e-a411ca581aa4', NULL, N'12', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'c9e6a83d-f55c-4122-855b-80eb4978bf73', NULL, N'test', 0)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'cab9a51b-5616-424f-b112-176e10fe7388', NULL, N'88852020025884', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'cc5c4221-d93b-4c2c-be10-05e92d7383f6', NULL, N'12345678901234567890123456789012345678901234567890', 0)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'd544e7f4-e3f5-47e6-a0de-a8dafb8b5ff6', NULL, N'11111111111太长了', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'e0d0dca4-10d5-455d-9b9f-b8ef0de57c96', NULL, N'直辖市', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'e2c4a67d-e7de-4037-939b-e6d437265ab0', NULL, N'大中华区', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'e39ce670-22e1-4c69-a626-8ba035d1128b', N'000000', N'888888888888', 0)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'e6186b6c-9995-43a8-a5d1-fde69f246a68', N'13704471-f3ac-475c-9d1b-b02233914b16', N'南沙群岛1', 1)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'e8967955-a6d6-4597-a66d-870c96effb6d', N'000000', N'华南', 0)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'f7d4b7bf-4cb4-43d8-8f85-e4f5ca2456cc', N'7987b120-4840-4e4a-b38d-d4c9b71546e4', N'ccccc', 0)INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'fdd812f9-6081-4cf6-b780-34ec52db0253', NULL, N'沿海地区', 1)GO
\ No newline at end of file
--LEVEL 1 INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'7c360a44-7a17-4ca0-9c2a-a88cde7670d5', NULL, N'1111', 1) --LEVEL 2 INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'141eb884-e9b9-4188-9a00-a3571ab1e7e9', N'7c360a44-7a17-4ca0-9c2a-a88cde7670d5', N'top123', 1) INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'141eee99-4046-473e-a8b7-7ccd25892b71', N'7c360a44-7a17-4ca0-9c2a-a88cde7670d5', N'TOP12345', 1) INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'4f1902bf-6b33-4264-b6e9-46d44c148f4e', N'7c360a44-7a17-4ca0-9c2a-a88cde7670d5', N'2222', 1) INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'65476f34-58b2-40b7-865f-8a12b8b0a5e6', N'7c360a44-7a17-4ca0-9c2a-a88cde7670d5', N'top', 1) INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'bc08cf92-c75c-4fa3-ac66-fe10be346ceb', N'7c360a44-7a17-4ca0-9c2a-a88cde7670d5', N'TOP11111', 1) --LEVEL 3 INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'8be4d5cf-410a-48c7-ad9e-cbf20ec03fff', N'141eb884-e9b9-4188-9a00-a3571ab1e7e9', N'top1234', 1) INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'22bed587-ef64-4af0-8b4d-6c8f920b3246', N'141eee99-4046-473e-a8b7-7ccd25892b71', N'TOP123456-1', 1) INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'56ebee94-f8ad-4810-bbef-9d8464d51126', N'141eee99-4046-473e-a8b7-7ccd25892b71', N'TOP123456-2', 1) --LEVEL 4 INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'359667ee-bf7b-47bc-95b4-1c6e00f1de8d', N'22bed587-ef64-4af0-8b4d-6c8f920b3246', N'TOP1234567', 1) GO --Organizatin INSERT [Organization] ([ID], [ClientCode], [Name], [Code], [ParentID], [TaxPayerNumber], [RegionID], [StructureID], [IndustryID], [BusinessUnitID], [IsActive], [PLevel], [CreateTime], [UpdateTime], [AreaID], [EnglishName], [Abbreviation], [InvoiceType], [LegalPersonName], [ManufactureAddress], [RegisterAddress], [BankAccountName], [BankAccountNumber], [PhoneNumber], [RegistrationType], [Remark], [Vehicleroutinglocation]) VALUES (N'0db8caa7-2e15-4f83-89f3-221da79625d1', N'pwc', N'华天证券有限公司', N'YGZG001', NULL, N'16227001354422218991', N'110100', N'029217e9-ee88-9f51-eb74-806734d7f013', N'10', NULL, 1, 0, CAST(0x0000A7E800FB9C94 AS DateTime), CAST(0x0000A841009FCB8A AS DateTime), N'8be4d5cf-410a-48c7-ad9e-cbf20ec03fff', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) GO
\ No newline at end of file
INSERT [Customer] ([ID], [Code], [Name], [EnterPriseAccountID]) VALUES (N'5b861795-3667-4ccc-b057-1a8fdfd779f0', N'JS4009', N'江苏晋泰装饰工程有限公司', N'0e3ed0d9-0a60-4ed1-ab72-d62a22713d55')
INSERT [Customer] ([ID], [Code], [Name], [EnterPriseAccountID]) VALUES (N'5b871bfb-1a72-48ce-b66f-3b040f7634cb', N'3116', N'市锦星机电公司', N'0e3ed0d9-0a60-4ed1-ab72-d62a22713d55')
INSERT [Customer] ([ID], [Code], [Name], [EnterPriseAccountID]) VALUES (N'5b891a2d-f7db-44bf-a0e7-a9c12b010875', N'6108', N'上海金峰工贸公司', N'0e3ed0d9-0a60-4ed1-ab72-d62a22713d55')
INSERT [Customer] ([ID], [Code], [Name], [EnterPriseAccountID]) VALUES (N'5b8927bd-f7ee-4ac1-901f-31af0a5c2130', N'HN3943', N'王小虎', N'0e3ed0d9-0a60-4ed1-ab72-d62a22713d55')
INSERT [Customer] ([ID], [Code], [Name], [EnterPriseAccountID]) VALUES (N'5b8a9638-f124-4d22-83ce-5572721276a3', N'JS4075', N'靖江市房屋产权产籍管理处', N'0e3ed0d9-0a60-4ed1-ab72-d62a22713d55')
INSERT [Customer] ([ID], [Code], [Name], [EnterPriseAccountID]) VALUES (N'5b8ad949-116c-457b-9435-5de6b0f19f2d', N'GX1722', N'北京佰图宏源装饰工程设计有限公司', N'0e3ed0d9-0a60-4ed1-ab72-d62a22713d55')
INSERT [Customer] ([ID], [Code], [Name], [EnterPriseAccountID]) VALUES (N'5b8c5bea-9b3a-433c-b919-a36b65c181c0', N'JS4198', N'何兴成', N'0e3ed0d9-0a60-4ed1-ab72-d62a22713d55')
INSERT [Customer] ([ID], [Code], [Name], [EnterPriseAccountID]) VALUES (N'5b8d0630-1659-4060-b1d0-853d94443a95', N'GDE970', N'佛山市顺德区扬声进出口贸易有限公司', N'0e3ed0d9-0a60-4ed1-ab72-d62a22713d55')
INSERT [Customer] ([ID], [Code], [Name], [EnterPriseAccountID]) VALUES (N'5b8d72f4-02a1-4bbe-942f-1f5fc9fcb85c', N'JS4263', N'南通苏建建设工程有限公司', N'0e3ed0d9-0a60-4ed1-ab72-d62a22713d55')
INSERT [Customer] ([ID], [Code], [Name], [EnterPriseAccountID]) VALUES (N'5b8e4403-f88a-4a93-9f8a-192df0dfffb7', N'GDC612', N'从化市城郊汇雅陶瓷店', N'0e3ed0d9-0a60-4ed1-ab72-d62a22713d55')
INSERT [Customer] ([ID], [Code], [Name], [EnterPriseAccountID]) VALUES (N'5b8f8c19-eb4a-4015-80e1-f6329781b14b', N'SX6783', N'陕西鹰陶卫浴有限公司', N'0e3ed0d9-0a60-4ed1-ab72-d62a22713d55')
INSERT [Customer] ([ID], [Code], [Name], [EnterPriseAccountID]) VALUES (N'5b92f958-2985-492d-963f-95e4d1b72722', N'JS3910', N'中国航天科工集团八五一一研究所', N'0e3ed0d9-0a60-4ed1-ab72-d62a22713d55')
INSERT [Customer] ([ID], [Code], [Name], [EnterPriseAccountID]) VALUES (N'5b940093-1907-4bc8-bd2e-7d258c863b92', N'JS4531', N'吴江市松陵镇恒盛建材经营部', N'0e3ed0d9-0a60-4ed1-ab72-d62a22713d55')
INSERT [Customer] ([ID], [Code], [Name], [EnterPriseAccountID]) VALUES (N'5b9408d0-b1c5-4b55-b90f-858f19994c95', N'0714', N'上海专卖店', N'0e3ed0d9-0a60-4ed1-ab72-d62a22713d55')
GO
\ No newline at end of file
INSERT [dbo].[DimensionValue] ([ID], [Name], [IsActive], [DimensionID], [CreateTime], [UpdateTime], [CreateBy], [UpdateBy]) VALUES (N'0e2697e2-a5a0-4bcc-ac83-fe89201a1129', N'产品线1', 1, N'be15c132-e634-4b20-beff-0691ee35dcdb', CAST(0x0000A86200B34401 AS DateTime), CAST(0x0000A86200B34401 AS DateTime), N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50')
INSERT [dbo].[DimensionValue] ([ID], [Name], [IsActive], [DimensionID], [CreateTime], [UpdateTime], [CreateBy], [UpdateBy]) VALUES (N'28b18de6-9606-40a5-bf7e-12c43f4ca144', N'tttt6', 1, N'0ee9c871-fd1d-4498-a1b6-acef002d3bed', CAST(0x0000A81000E96517 AS DateTime), CAST(0x0000A81000E96517 AS DateTime), N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50')
INSERT [dbo].[DimensionValue] ([ID], [Name], [IsActive], [DimensionID], [CreateTime], [UpdateTime], [CreateBy], [UpdateBy]) VALUES (N'78f67a5e-4cc6-4b1e-8f84-725705672d0a', N'test5', 1, N'0ee9c871-fd1d-4498-a1b6-acef002d3bed', CAST(0x0000A81000E9BE18 AS DateTime), CAST(0x0000A81000E9BE18 AS DateTime), N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50')
INSERT [dbo].[DimensionValue] ([ID], [Name], [IsActive], [DimensionID], [CreateTime], [UpdateTime], [CreateBy], [UpdateBy]) VALUES (N'980e742f-92e4-41f5-a7bd-fac137a1830f', N'80', 1, N'3ab81c76-43d3-4e08-b3ce-530d88934525', CAST(0x0000A82A00FEC79A AS DateTime), CAST(0x0000A82A00FEC79A AS DateTime), N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50')
INSERT [dbo].[DimensionValue] ([ID], [Name], [IsActive], [DimensionID], [CreateTime], [UpdateTime], [CreateBy], [UpdateBy]) VALUES (N'd4f9ba3c-23ff-48cb-a7d8-7133d014a57f', N'test2', 1, N'0ee9c871-fd1d-4498-a1b6-acef002d3bed', CAST(0x0000A81000E9B63D AS DateTime), CAST(0x0000A81000E9B63D AS DateTime), N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50')
INSERT [dbo].[DimensionValue] ([ID], [Name], [IsActive], [DimensionID], [CreateTime], [UpdateTime], [CreateBy], [UpdateBy]) VALUES (N'd8ed5d9a-ef20-43b0-a3e8-3a9446419dcc', N'ccc', 1, N'6df98a1b-7330-4cbb-90ec-d6290267dcbc', CAST(0x0000A8770116233C AS DateTime), CAST(0x0000A8770116233C AS DateTime), N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50')
INSERT [dbo].[DimensionValue] ([ID], [Name], [IsActive], [DimensionID], [CreateTime], [UpdateTime], [CreateBy], [UpdateBy]) VALUES (N'e270942e-23f7-4f7f-aad9-3ea8c7caa151', N'aaaa1', 1, N'59ecc26d-2888-42cf-bfdb-769d76de4d89', CAST(0x0000A8630112067D AS DateTime), CAST(0x0000A8630112067D AS DateTime), N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50')
INSERT [dbo].[DimensionValue] ([ID], [Name], [IsActive], [DimensionID], [CreateTime], [UpdateTime], [CreateBy], [UpdateBy]) VALUES (N'f7009fc0-9fb8-481a-8d22-397d236e951a', N'aaaa2', 1, N'59ecc26d-2888-42cf-bfdb-769d76de4d89', CAST(0x0000A8630113E564 AS DateTime), CAST(0x0000A8630113E564 AS DateTime), N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50')
GO
INSERT [dbo].[Dimension] ([ID], [Name], [AttributeID], [OrderIndex], [IsMandatory], [IsActive], [IsSystemDimension], [CreateBy], [UpdateBy], [CreateTime], [UpdateTime]) VALUES (N'0ee9c871-fd1d-4498-a1b6-acef002d3bed', N'test1', N'10a9a0d7-fcd3-44c2-9891-2ac64623747e', 6, 0, 1, 0, N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A86300FAA1E6 AS DateTime), CAST(0x0000A86300FAA1E6 AS DateTime))
INSERT [dbo].[Dimension] ([ID], [Name], [AttributeID], [OrderIndex], [IsMandatory], [IsActive], [IsSystemDimension], [CreateBy], [UpdateBy], [CreateTime], [UpdateTime]) VALUES (N'1958db68-7f93-4f30-8261-10647f80fc16', N'企业税负', N'86d1e3ae-b546-4113-8e82-32f8b51a05c6', 5, 0, 1, 0, N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A7ED00B7B374 AS DateTime), CAST(0x0000A7ED00B7B374 AS DateTime))
INSERT [dbo].[Dimension] ([ID], [Name], [AttributeID], [OrderIndex], [IsMandatory], [IsActive], [IsSystemDimension], [CreateBy], [UpdateBy], [CreateTime], [UpdateTime]) VALUES (N'32686e9b-f5b4-4215-b989-1ac7373db28e', N'bbbbbbba', N'c4526b23-bbff-408c-bf9c-8031aca0a32d', 10, 0, 1, 0, N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A8770114D726 AS DateTime), CAST(0x0000A8770114D726 AS DateTime))
INSERT [dbo].[Dimension] ([ID], [Name], [AttributeID], [OrderIndex], [IsMandatory], [IsActive], [IsSystemDimension], [CreateBy], [UpdateBy], [CreateTime], [UpdateTime]) VALUES (N'3ab81c76-43d3-4e08-b3ce-530d88934525', N'frankTest', N'262fdd3f-ac0d-4a57-8192-3419efb4039c', 7, 0, 0, 0, N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A82A0101B2AA AS DateTime), CAST(0x0000A82A0101B2AA AS DateTime))
INSERT [dbo].[Dimension] ([ID], [Name], [AttributeID], [OrderIndex], [IsMandatory], [IsActive], [IsSystemDimension], [CreateBy], [UpdateBy], [CreateTime], [UpdateTime]) VALUES (N'59ecc26d-2888-42cf-bfdb-769d76de4d89', N'aaa', N'7585ddf8-eb3c-477f-9aa1-0971f6342216', 8, 0, 1, 0, N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A86300FA0C2C AS DateTime), CAST(0x0000A86300FA0C2C AS DateTime))
INSERT [dbo].[Dimension] ([ID], [Name], [AttributeID], [OrderIndex], [IsMandatory], [IsActive], [IsSystemDimension], [CreateBy], [UpdateBy], [CreateTime], [UpdateTime]) VALUES (N'6df98a1b-7330-4cbb-90ec-d6290267dcbc', N'事业1', N'226b2f82-6d8a-438b-a147-5f9d03832d5e', 9, 0, 1, 0, N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A86300FE38E2 AS DateTime), CAST(0x0000A86300FE38E2 AS DateTime))
INSERT [dbo].[Dimension] ([ID], [Name], [AttributeID], [OrderIndex], [IsMandatory], [IsActive], [IsSystemDimension], [CreateBy], [UpdateBy], [CreateTime], [UpdateTime]) VALUES (N'91c81fa7-9c54-447a-af53-764a4da089e0', N'股权架构', NULL, 3, 0, 1, 1, N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A7B700B103B0 AS DateTime), CAST(0x0000A7B700B103B0 AS DateTime))
INSERT [dbo].[Dimension] ([ID], [Name], [AttributeID], [OrderIndex], [IsMandatory], [IsActive], [IsSystemDimension], [CreateBy], [UpdateBy], [CreateTime], [UpdateTime]) VALUES (N'be15c132-e634-4b20-beff-0691ee35dcdb', N'产品线', N'643fb57c-b175-438b-aa7e-23e510d8aebf', 4, 0, 1, 0, N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A86200B33585 AS DateTime), CAST(0x0000A86200B33585 AS DateTime))
INSERT [dbo].[Dimension] ([ID], [Name], [AttributeID], [OrderIndex], [IsMandatory], [IsActive], [IsSystemDimension], [CreateBy], [UpdateBy], [CreateTime], [UpdateTime]) VALUES (N'c61a5bd6-a996-4952-9869-d053995237e5', N'事业部', N'c61a5bd6-a996-4952-9869-d053995237e5', 0, 1, 1, 1, N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A86300FE2321 AS DateTime), CAST(0x0000A86300FE2321 AS DateTime))
INSERT [dbo].[Dimension] ([ID], [Name], [AttributeID], [OrderIndex], [IsMandatory], [IsActive], [IsSystemDimension], [CreateBy], [UpdateBy], [CreateTime], [UpdateTime]) VALUES (N'c61a5bd6-a996-4952-9869-d053995237e6', N'覆盖区域', N'c61a5bd6-a996-4952-9869-d053995237e6', 1, 1, 1, 1, N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A7EB01028746 AS DateTime), CAST(0x0000A7EB01028746 AS DateTime))
INSERT [dbo].[Dimension] ([ID], [Name], [AttributeID], [OrderIndex], [IsMandatory], [IsActive], [IsSystemDimension], [CreateBy], [UpdateBy], [CreateTime], [UpdateTime]) VALUES (N'c61a5bd6-a996-4952-9869-d053995237e7', N'机构', N'c61a5bd6-a996-4952-9869-d053966537e8', 2, 0, 1, 1, N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A7C901198D67 AS DateTime), CAST(0x0000A7C901198D67 AS DateTime))
GO
INSERT [EnterpriseAccountSetOrg] ([ID], [EnterpriseAccountSetID], [OrganizationID], [EffectiveDate], [ExpiredDate]) VALUES (N'06430cbf-e177-4f65-9a2a-d650c36cb564', N'2891e3dd-d673-49a2-845d-c759202056c6', N'bd5cfb8c-bc0d-4baf-8fe9-4b55811bf182', CAST(0x0000A6EE00000000 AS DateTime), CAST(0x0000A7A200000000 AS DateTime))
INSERT [EnterpriseAccountSetOrg] ([ID], [EnterpriseAccountSetID], [OrganizationID], [EffectiveDate], [ExpiredDate]) VALUES (N'08a4b230-3594-4cfb-9254-b2c3f046d734', N'2891e3dd-d673-49a2-845d-c759202056c6', N'867dda85-96ba-462a-8c2a-5a2d4627eb8a', CAST(0x0000A6EE00000000 AS DateTime), CAST(0x0000AB3400000000 AS DateTime))
INSERT [EnterpriseAccountSetOrg] ([ID], [EnterpriseAccountSetID], [OrganizationID], [EffectiveDate], [ExpiredDate]) VALUES (N'09da53b3-a728-4974-94ab-17d6ab34117c', N'2891e3dd-d673-49a2-845d-c759202056c6', N'46b3a8b4-3c28-4538-b098-29c524917dea', CAST(0x0000A6EE00000000 AS DateTime), CAST(0x0000A85A00000000 AS DateTime))
INSERT [EnterpriseAccountSetOrg] ([ID], [EnterpriseAccountSetID], [OrganizationID], [EffectiveDate], [ExpiredDate]) VALUES (N'3df0a3c4-31d5-4056-a28a-e0a982282360', N'2891e3dd-d673-49a2-845d-c759202056c6', N'ba7662c5-2031-4288-aad5-65f49e81a559', CAST(0x0000A6EE00000000 AS DateTime), CAST(0x0000AE0F00000000 AS DateTime))
INSERT [EnterpriseAccountSetOrg] ([ID], [EnterpriseAccountSetID], [OrganizationID], [EffectiveDate], [ExpiredDate]) VALUES (N'439a8363-6450-4403-b77b-701a0b1edfd1', N'2891e3dd-d673-49a2-845d-c759202056c6', N'ea3d1bb3-e09a-49ae-ad32-36eb43c19589', CAST(0x0000A6EE00000000 AS DateTime), CAST(0x0000A9C700000000 AS DateTime))
GO
--INSERT [Organization] ([ID], [ClientCode], [Name], [Code], [ParentID], [TaxPayerNumber], [RegionID], [StructureID], [IndustryID], [BusinessUnitID], [IsActive], [PLevel], [CreateTime], [UpdateTime], [AreaID], [EnglishName], [Abbreviation], [InvoiceType], [LegalPersonName], [ManufactureAddress], [RegisterAddress], [BankAccountName], [BankAccountNumber], [PhoneNumber], [RegistrationType], [Remark], [Vehicleroutinglocation]) VALUES (N'bd5cfb8c-bc0d-4baf-8fe9-4b55811bf182', N'pwc', N'通用机构', N'0710', NULL, N'0710', N'310100', N'1e7153ca-6121-4bc6-a385-2c18827b845d', N'0', N'2542b106-66a6-4135-85d3-a90ca58ba058', 1, 0, CAST(0x0000A7AC00A7078E AS DateTime), CAST(0x0000A7F401089FA5 AS DateTime), N'0bae00f7-96dc-46c8-b6f5-a427616c5bcf', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
GO
\ No newline at end of file
INSERT [EnterpriseAccountSet] ([ID], [Code], [Name], [IsActive], [CreatorID], [CreateTime], [UpdateTime]) VALUES (N'7bba71c9-97a9-4841-b9cb-8140347800ea', N'000010', N'账套无机构', 1, N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A89100E7E4D3 AS DateTime), CAST(0x0000A89100E7E68C AS DateTime))
INSERT [EnterpriseAccountSet] ([ID], [Code], [Name], [IsActive], [CreatorID], [CreateTime], [UpdateTime]) VALUES (N'2891e3dd-d673-49a2-845d-c759202056c6', N'6A274BB1-4360-4DD0-95C3-A785FFCCDCC2', N'指标分析', 1, N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A7AD00A1BA76 AS DateTime), CAST(0x0000A7AD00A1BA76 AS DateTime))
INSERT [EnterpriseAccountSet] ([ID], [Code], [Name], [IsActive], [CreatorID], [CreateTime], [UpdateTime]) VALUES (N'885c2ddc-3164-4d57-bab8-12de3d9f83a0', N'518000', N'AAC Demo', 1, N'1416b6f2-ab02-47a2-9e8d-cd3f99af5690', CAST(0x0000A85D01380E91 AS DateTime), CAST(0x0000A85E011D63AD AS DateTime))
--账套无科目
INSERT [EnterpriseAccountSet] ([ID], [Code], [Name], [IsActive], [CreatorID], [CreateTime], [UpdateTime]) VALUES (N'10be679b-75e3-4cab-85d1-28f53930cba8', N'000002', N'账套无科目', 1, N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A8910110C28D AS DateTime), CAST(0x0000A8910110C417 AS DateTime))
--测试标准科目
INSERT [EnterpriseAccountSet] ([ID], [Code], [Name], [IsActive], [CreatorID], [CreateTime], [UpdateTime]) VALUES (N'dd424793-46a4-4102-beaa-a7efe161d1ee', N'CSBZKM', N'测试标准科目', 1, N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A8910110C28D AS DateTime), CAST(0x0000A8910110C417 AS DateTime))
---测试排序
INSERT [EnterpriseAccountSet] ([ID], [Code], [Name], [IsActive], [CreatorID], [CreateTime], [UpdateTime]) VALUES (N'37175dae-0b7f-4dc7-ac58-d8b4009ef0be', N'BZMBZT', N'标准模板账套', 1, N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A8910110C28D AS DateTime), CAST(0x0000A8910110C417 AS DateTime))
--Validation error
INSERT [EnterpriseAccountSet] ([ID], [Code], [Name], [IsActive], [CreatorID], [CreateTime], [UpdateTime]) VALUES (N'e4ffadee-b545-4781-b504-fe686333d4d2', N'VALERROR', N'测试验证错误', 0, N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A8910110C28D AS DateTime), CAST(0x0000A8910110C417 AS DateTime))
GO
\ No newline at end of file
--EnterpriseAccountSet
INSERT [EnterpriseAccountSet] ([ID], [Code], [Name], [IsActive], [CreatorID], [CreateTime], [UpdateTime]) VALUES (N'e4ffadee-b545-4781-b504-fe686333d4d2', N'VALERROR', N'测试验证错误', 0, N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A8910110C28D AS DateTime), CAST(0x0000A8910110C417 AS DateTime))
INSERT [EnterpriseAccountSet] ([ID], [Code], [Name], [IsActive], [CreatorID], [CreateTime], [UpdateTime]) VALUES (N'37175dae-0b7f-4dc7-ac58-d8b4009ef0be', N'BZMBZT', N'标准模板账套', 1, N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A8910110C28D AS DateTime), CAST(0x0000A8910110C417 AS DateTime))
INSERT [EnterpriseAccountSet] ([ID], [Code], [Name], [IsActive], [CreatorID], [CreateTime], [UpdateTime]) VALUES (N'dd424793-46a4-4102-beaa-a7efe161d1ee', N'CSBZKM', N'测试标准科目', 1, N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A8910110C28D AS DateTime), CAST(0x0000A8910110C417 AS DateTime))
--Organization
INSERT [Organization] ([ID], [ClientCode], [Name], [Code], [ParentID], [TaxPayerNumber], [RegionID], [StructureID], [IndustryID], [BusinessUnitID], [IsActive], [PLevel], [CreateTime], [UpdateTime], [AreaID], [EnglishName], [Abbreviation], [InvoiceType], [LegalPersonName], [ManufactureAddress], [RegisterAddress], [BankAccountName], [BankAccountNumber], [PhoneNumber], [RegistrationType], [Remark], [Vehicleroutinglocation]) VALUES (N'bd5cfb8c-bc0d-4baf-8fe9-4b55811bf182', N'pwc', N'通用机构', N'0710', NULL, N'0710', N'310100', N'1e7153ca-6121-4bc6-a385-2c18827b845d', N'0', N'2542b106-66a6-4135-85d3-a90ca58ba058', 1, 0, CAST(0x0000A7AC00A7078E AS DateTime), CAST(0x0000A7F401089FA5 AS DateTime), N'0bae00f7-96dc-46c8-b6f5-a427616c5bcf', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [Organization] ([ID], [ClientCode], [Name], [Code], [ParentID], [TaxPayerNumber], [RegionID], [StructureID], [IndustryID], [BusinessUnitID], [IsActive], [PLevel], [CreateTime], [UpdateTime], [AreaID], [EnglishName], [Abbreviation], [InvoiceType], [LegalPersonName], [ManufactureAddress], [RegisterAddress], [BankAccountName], [BankAccountNumber], [PhoneNumber], [RegistrationType], [Remark], [Vehicleroutinglocation]) VALUES (N'0db8caa7-2e15-4f83-89f3-221da79625d1', N'pwc', N'华天证券有限公司', N'YGZG001', NULL, N'16227001354422218991', N'110100', N'029217e9-ee88-9f51-eb74-806734d7f013', N'10', N'5064297b-5a34-4dc3-a0fe-2ab5cdf18c1d', 1, 0, CAST(0x0000A7E800FB9C94 AS DateTime), CAST(0x0000A841009FCB8A AS DateTime), N'0bae00f7-96dc-46c8-b6f5-a427616c5bcf', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
GO
\ No newline at end of file
--enterpriseAccountset
INSERT [EnterpriseAccountSet] ([ID], [Code], [Name], [IsActive], [CreatorID], [CreateTime], [UpdateTime]) VALUES (N'181b735c-d75c-4e64-8e43-a2a12cd72788', N'DYCSZT', N'单元测试账套', 1, N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A89100E7E4D3 AS DateTime), CAST(0x0000A89100E7E68C AS DateTime))
GO
--Organization
INSERT [Organization] ([ID], [ClientCode], [Name], [Code], [ParentID], [TaxPayerNumber], [RegionID], [StructureID], [IndustryID], [BusinessUnitID], [IsActive], [PLevel], [CreateTime], [UpdateTime], [AreaID], [EnglishName], [Abbreviation], [InvoiceType], [LegalPersonName], [ManufactureAddress], [RegisterAddress], [BankAccountName], [BankAccountNumber], [PhoneNumber], [RegistrationType], [Remark], [Vehicleroutinglocation]) VALUES (N'2b05abc8-9429-436d-91c6-178e50d25147', N'pwc', N'20170921房地产', N'2017092123', NULL, N'2017092123', N'220100', N'0c5745d2-4d4e-46b3-a1e2-f0090cafc5d6', N'23', N'5064297b-5a34-4dc3-a0fe-2ab5cdf18c1d', 1, 0, CAST(0x0000A7F501086826 AS DateTime), CAST(0x0000A81100BCD269 AS DateTime), N'0bae00f7-96dc-46c8-b6f5-a427616c5bcf', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
GO
--enterpriseAccount
--1001
INSERT [EnterpriseAccount] ([ID], [Code], [Name], [ParentCode], [FullName], [AcctProp], [SubProp], [AcctLevel], [Direction], [IsLeaf], [RuleType], [IsActive], [EnglishName], [StdCode], [EnterpriseAccountSetID], [CreatorID], [UpdatorID], [CreateTime], [UpdateTime]) VALUES (N'f49c2471-d6c7-47b8-a890-fad745fec201', N'1001', N'现金', NULL, N'现金', 1, NULL, 1, 1, 1, 2, 1, NULL, NULL, N'181b735c-d75c-4e64-8e43-a2a12cd72788', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A89D010BE7BB AS DateTime), CAST(0x0000A89D010C105D AS DateTime))
GO
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
--enterpriseAccountset
INSERT [EnterpriseAccountSet] ([ID], [Code], [Name], [IsActive], [CreatorID], [CreateTime], [UpdateTime]) VALUES (N'181b735c-d75c-4e64-8e43-a2a12cd72788', N'DYCSZT', N'单元测试账套', 1, N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A89100E7E4D3 AS DateTime), CAST(0x0000A89100E7E68C AS DateTime))
GO
--Organization
INSERT [Organization] ([ID], [ClientCode], [Name], [Code], [ParentID], [TaxPayerNumber], [RegionID], [StructureID], [IndustryID], [BusinessUnitID], [IsActive], [PLevel], [CreateTime], [UpdateTime], [AreaID], [EnglishName], [Abbreviation], [InvoiceType], [LegalPersonName], [ManufactureAddress], [RegisterAddress], [BankAccountName], [BankAccountNumber], [PhoneNumber], [RegistrationType], [Remark], [Vehicleroutinglocation]) VALUES (N'2b05abc8-9429-436d-91c6-178e50d25147', N'pwc', N'20170921房地产', N'2017092123', NULL, N'2017092123', N'220100', N'0c5745d2-4d4e-46b3-a1e2-f0090cafc5d6', N'23', N'5064297b-5a34-4dc3-a0fe-2ab5cdf18c1d', 1, 0, CAST(0x0000A7F501086826 AS DateTime), CAST(0x0000A81100BCD269 AS DateTime), N'0bae00f7-96dc-46c8-b6f5-a427616c5bcf', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
GO
--enterpriseAccount
--1001
INSERT [EnterpriseAccount] ([ID], [Code], [Name], [ParentCode], [FullName], [AcctProp], [SubProp], [AcctLevel], [Direction], [IsLeaf], [RuleType], [IsActive], [EnglishName], [StdCode], [EnterpriseAccountSetID], [CreatorID], [UpdatorID], [CreateTime], [UpdateTime]) VALUES (N'c861b9d1-d7f2-4ca0-b95c-5534de66b0c5', N'1001.01.01', N'人民币备用金', N'1001.01', N'现金-人民币-人民币备用金', 1, NULL, 3, 1, 1, 2, 1, NULL, NULL, N'181b735c-d75c-4e64-8e43-a2a12cd72788', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A89D010DE8F7 AS DateTime), CAST(0x0000A89D010DE8F7 AS DateTime))
INSERT [EnterpriseAccount] ([ID], [Code], [Name], [ParentCode], [FullName], [AcctProp], [SubProp], [AcctLevel], [Direction], [IsLeaf], [RuleType], [IsActive], [EnglishName], [StdCode], [EnterpriseAccountSetID], [CreatorID], [UpdatorID], [CreateTime], [UpdateTime]) VALUES (N'd3ce1d49-94bc-42b8-8add-b0894e3e8835', N'1001.01', N'人民币', N'1001', N'现金-人民币', 1, NULL, 2, 1, 0, 2, 1, NULL, NULL, N'181b735c-d75c-4e64-8e43-a2a12cd72788', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A89D010C1147 AS DateTime), CAST(0x0000A89D010DE7F0 AS DateTime))
INSERT [EnterpriseAccount] ([ID], [Code], [Name], [ParentCode], [FullName], [AcctProp], [SubProp], [AcctLevel], [Direction], [IsLeaf], [RuleType], [IsActive], [EnglishName], [StdCode], [EnterpriseAccountSetID], [CreatorID], [UpdatorID], [CreateTime], [UpdateTime]) VALUES (N'eb9ac8aa-029d-4d39-a398-f44c3d95b3fa', N'1001.02', N'美元', N'1001', N'现金-美元', 1, NULL, 2, 1, 1, 2, 1, NULL, NULL, N'181b735c-d75c-4e64-8e43-a2a12cd72788', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A89D010D2B3B AS DateTime), CAST(0x0000A89D010D2B3B AS DateTime))
INSERT [EnterpriseAccount] ([ID], [Code], [Name], [ParentCode], [FullName], [AcctProp], [SubProp], [AcctLevel], [Direction], [IsLeaf], [RuleType], [IsActive], [EnglishName], [StdCode], [EnterpriseAccountSetID], [CreatorID], [UpdatorID], [CreateTime], [UpdateTime]) VALUES (N'f49c2471-d6c7-47b8-a890-fad745fec201', N'1001', N'现金', NULL, N'现金', 1, NULL, 1, 1, 0, 2, 1, NULL, NULL, N'181b735c-d75c-4e64-8e43-a2a12cd72788', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(0x0000A89D010BE7BB AS DateTime), CAST(0x0000A89D010C105D AS DateTime))
GO
\ No newline at end of file
INSERT [AccountMapping] ([ID], [EnterpriseAccountCode], [StandardAccountCode], [EnterpriseAccountSetID], [OrganizationID], [IndustryID]) VALUES (N'df854297-1665-43c4-9bf7-419fcf52ba8b', N'1000001234', N'00', N'885c2ddc-3164-4d57-bab8-12de3d9f83a0', N'5b4b8f88-571d-44c6-8002-c0716017d41e', N'0')
INSERT [AccountMapping] ([ID], [EnterpriseAccountCode], [StandardAccountCode], [EnterpriseAccountSetID], [OrganizationID], [IndustryID]) VALUES (N'24fabe2f-5c14-4957-aebc-3ac8d01448d5', N'5000510224', N'6051.99', N'885c2ddc-3164-4d57-bab8-12de3d9f83a0', N'5b4b8f88-571d-44c6-8002-c0716017d41e', N'0')
INSERT [AccountMapping] ([ID], [EnterpriseAccountCode], [StandardAccountCode], [EnterpriseAccountSetID], [OrganizationID], [IndustryID]) VALUES (N'2964193f-9700-443f-8278-d1b580a7643f', N'5000550307', N'6603.01', N'885c2ddc-3164-4d57-bab8-12de3d9f83a0', N'5b4b8f88-571d-44c6-8002-c0716017d41e', N'0')
INSERT [AccountMapping] ([ID], [EnterpriseAccountCode], [StandardAccountCode], [EnterpriseAccountSetID], [OrganizationID], [IndustryID]) VALUES (N'6299b283-8447-446b-8f31-e4551c8685c7', N'2000217102', N'2221.16', N'885c2ddc-3164-4d57-bab8-12de3d9f83a0', N'5b4b8f88-571d-44c6-8002-c0716017d41e', N'0')
GO
\ No newline at end of file
USE [TaxAdmin8]
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'0', N'通用行业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'1', N'工业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'10', N'资产管理', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'11', N'私募基金', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'12', N'主权财富基金', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'13', N'汽车制造业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'14', N'银行及其他金融服务业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'15', N'工程机械行业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'16', N'健康护理业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'17', N'航天及航空业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'18', N'化工行业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'19', N'纸类及包装行业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'2', N'私募基金(已停用)', 0, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'20', N'制造业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'21', N'保险业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'22', N'医药业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'23', N'房地产业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'24', N'消费品行业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'25', N'零售业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'26', N'酒店及休闲服务业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'27', N'娱乐业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'28', N'传媒业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'29', N'信息通讯业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'3', N'主权财富基金', 0, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'30', N'技术研发行业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'31', N'运输业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'32', N'物流业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'33', N'采矿业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'34', N'油气业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'35', N'能源和共用事业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'36', N'绿色科技行业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'37', N'工业产品', 0, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'38', N'绿色科技行业', 0, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'39', N'商业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'4', N'基础建设及相关行业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'5', N'教育及其他非营利性行业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'6', N'专门技能服务业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'7', N'其他', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'8', N'法律服务业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'9', N'政府部门', 1, NULL)
GO
This diff is collapsed.
INSERT [Organization] ([ID], [ClientCode], [Name], [Code], [ParentID], [TaxPayerNumber], [RegionID], [StructureID], [IndustryID], [BusinessUnitID], [IsActive], [PLevel], [CreateTime], [UpdateTime], [AreaID], [EnglishName], [Abbreviation], [InvoiceType], [LegalPersonName], [ManufactureAddress], [RegisterAddress], [BankAccountName], [BankAccountNumber], [PhoneNumber], [RegistrationType], [Remark], [Vehicleroutinglocation]) VALUES (N'bd5cfb8c-bc0d-4baf-8fe9-4b55811bf182', N'pwc', N'通用机构', N'0710', NULL, N'0710', N'310100', N'1e7153ca-6121-4bc6-a385-2c18827b845d', N'0', N'2542b106-66a6-4135-85d3-a90ca58ba058', 1, 0, CAST(0x0000A7AC00A7078E AS DateTime), CAST(0x0000A7F401089FA5 AS DateTime), N'0bae00f7-96dc-46c8-b6f5-a427616c5bcf', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [Organization] ([ID], [ClientCode], [Name], [Code], [ParentID], [TaxPayerNumber], [RegionID], [StructureID], [IndustryID], [BusinessUnitID], [IsActive], [PLevel], [CreateTime], [UpdateTime], [AreaID], [EnglishName], [Abbreviation], [InvoiceType], [LegalPersonName], [ManufactureAddress], [RegisterAddress], [BankAccountName], [BankAccountNumber], [PhoneNumber], [RegistrationType], [Remark], [Vehicleroutinglocation]) VALUES (N'867dda85-96ba-462a-8c2a-5a2d4627eb8a', N'pwc', N'lbFixBug4', N'lbFixBug4', NULL, NULL, N'310100', N'029217e9-ee88-9f51-eb74-806734d7f013', N'0', N'5064297b-5a34-4dc3-a0fe-2ab5cdf18c1d', 1, 0, CAST(0x0000A7FA00C35D4D AS DateTime), CAST(0x0000A7FA00C3B8A3 AS DateTime), N'0bae00f7-96dc-46c8-b6f5-a427616c5bcf', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [Organization] ([ID], [ClientCode], [Name], [Code], [ParentID], [TaxPayerNumber], [RegionID], [StructureID], [IndustryID], [BusinessUnitID], [IsActive], [PLevel], [CreateTime], [UpdateTime], [AreaID], [EnglishName], [Abbreviation], [InvoiceType], [LegalPersonName], [ManufactureAddress], [RegisterAddress], [BankAccountName], [BankAccountNumber], [PhoneNumber], [RegistrationType], [Remark], [Vehicleroutinglocation]) VALUES (N'46b3a8b4-3c28-4538-b098-29c524917dea', N'pwc', N'lbOrg_WFTest3', N'lbOrgWFTest3', NULL, NULL, N'310100', N'029217e9-ee88-9f51-eb74-806734d7f013', N'0', N'5064297b-5a34-4dc3-a0fe-2ab5cdf18c1d', 1, 0, CAST(0x0000A7D600B33B25 AS DateTime), CAST(0x0000A7D600B39833 AS DateTime), N'0bae00f7-96dc-46c8-b6f5-a427616c5bcf', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [Organization] ([ID], [ClientCode], [Name], [Code], [ParentID], [TaxPayerNumber], [RegionID], [StructureID], [IndustryID], [BusinessUnitID], [IsActive], [PLevel], [CreateTime], [UpdateTime], [AreaID], [EnglishName], [Abbreviation], [InvoiceType], [LegalPersonName], [ManufactureAddress], [RegisterAddress], [BankAccountName], [BankAccountNumber], [PhoneNumber], [RegistrationType], [Remark], [Vehicleroutinglocation]) VALUES (N'ba7662c5-2031-4288-aad5-65f49e81a559', N'pwc', N'lb申报分析模板', N'lb00001', NULL, NULL, N'310100', N'029217e9-ee88-9f51-eb74-806734d7f013', N'1', N'5064297b-5a34-4dc3-a0fe-2ab5cdf18c1d', 1, 0, CAST(0x0000A7CF00E303E7 AS DateTime), CAST(0x0000A7D000F476BF AS DateTime), N'0bae00f7-96dc-46c8-b6f5-a427616c5bcf', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [Organization] ([ID], [ClientCode], [Name], [Code], [ParentID], [TaxPayerNumber], [RegionID], [StructureID], [IndustryID], [BusinessUnitID], [IsActive], [PLevel], [CreateTime], [UpdateTime], [AreaID], [EnglishName], [Abbreviation], [InvoiceType], [LegalPersonName], [ManufactureAddress], [RegisterAddress], [BankAccountName], [BankAccountNumber], [PhoneNumber], [RegistrationType], [Remark], [Vehicleroutinglocation]) VALUES (N'ea3d1bb3-e09a-49ae-ad32-36eb43c19589', N'pwc', N'lbFixBug5', N'lbFixBug5', NULL, NULL, N'310100', N'029217e9-ee88-9f51-eb74-806734d7f013', N'0', N'5064297b-5a34-4dc3-a0fe-2ab5cdf18c1d', 1, 0, CAST(0x0000A7FA01119F7D AS DateTime), CAST(0x0000A7FA0111E7BA AS DateTime), N'0bae00f7-96dc-46c8-b6f5-a427616c5bcf', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
GO
\ No newline at end of file
INSERT [Organization] ([ID], [ClientCode], [Name], [Code], [ParentID], [TaxPayerNumber], [RegionID], [StructureID], [IndustryID], [BusinessUnitID], [IsActive], [PLevel], [CreateTime], [UpdateTime], [AreaID], [EnglishName], [Abbreviation], [InvoiceType], [LegalPersonName], [ManufactureAddress], [RegisterAddress], [BankAccountName], [BankAccountNumber], [PhoneNumber], [RegistrationType], [Remark], [Vehicleroutinglocation]) VALUES (N'0a8fa9d8-db43-4820-94db-70ca02185b01', N'pwc', N'测试商业机构', N'0001', NULL, N'33333333333', N'510100', N'0c5745d2-4d4e-46b3-a1e2-f0090cafc5d6', N'39', N'5064297b-5a34-4dc3-a0fe-2ab5cdf18c1d', 1, 0, CAST(0x0000A7A601269DA6 AS DateTime), CAST(0x0000A7FA00FE3AD5 AS DateTime), N'0bae00f7-96dc-46c8-b6f5-a427616c5bcf', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [Organization] ([ID], [ClientCode], [Name], [Code], [ParentID], [TaxPayerNumber], [RegionID], [StructureID], [IndustryID], [BusinessUnitID], [IsActive], [PLevel], [CreateTime], [UpdateTime], [AreaID], [EnglishName], [Abbreviation], [InvoiceType], [LegalPersonName], [ManufactureAddress], [RegisterAddress], [BankAccountName], [BankAccountNumber], [PhoneNumber], [RegistrationType], [Remark], [Vehicleroutinglocation]) VALUES (N'0f22832a-f3bc-40a7-9624-bc74494b9a52', N'pwc', N'增值税2017', N'20170718', N'50eb2234-2135-4109-b9f8-66ef81106d26', N'201707188', N'120100', N'029217e9-ee88-9f51-eb74-806734d7f013', N'23', N'29962a9b-3340-43b7-9ed1-4ed557b0a37c', 1, 1, CAST(0x0000A7B400A886B0 AS DateTime), CAST(0x0000A7F40109E47C AS DateTime), N'0bae00f7-96dc-46c8-b6f5-a427616c5bcf', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [Organization] ([ID], [ClientCode], [Name], [Code], [ParentID], [TaxPayerNumber], [RegionID], [StructureID], [IndustryID], [BusinessUnitID], [IsActive], [PLevel], [CreateTime], [UpdateTime], [AreaID], [EnglishName], [Abbreviation], [InvoiceType], [LegalPersonName], [ManufactureAddress], [RegisterAddress], [BankAccountName], [BankAccountNumber], [PhoneNumber], [RegistrationType], [Remark], [Vehicleroutinglocation]) VALUES (N'1A607B4F-D109-420E-9F0D-C1348104267C', N'pwc', N'普华永道咨询(成都)有限公司上海分公司', N'1111111', N'B937BD23-1875-489B-A87E-E57B00F85850', N'123456789', N'310100', N'500de3b0-0a5b-492f-81d5-34117ea119ed', N'23', N'2542b106-66a6-4135-85d3-a90ca58ba058', 1, 0, CAST(0x0000A7C3010C59F4 AS DateTime), CAST(0x0000A7F401089F89 AS DateTime), N'0A5602E0-5A7C-4E26-9AEB-208EDADE19FB', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [Organization] ([ID], [ClientCode], [Name], [Code], [ParentID], [TaxPayerNumber], [RegionID], [StructureID], [IndustryID], [BusinessUnitID], [IsActive], [PLevel], [CreateTime], [UpdateTime], [AreaID], [EnglishName], [Abbreviation], [InvoiceType], [LegalPersonName], [ManufactureAddress], [RegisterAddress], [BankAccountName], [BankAccountNumber], [PhoneNumber], [RegistrationType], [Remark], [Vehicleroutinglocation]) VALUES (N'2648521a-598e-4b8e-911b-0f15d9c6fc2e', N'pwc', N'普华永道咨询(深圳)有限公司上海分公司', N'2017070302', N'0a8fa9d8-db43-4820-94db-70ca02185b01', NULL, N'320100', N'029217e9-ee88-9f51-eb74-806734d7f013', N'20', N'47969e07-ab3e-4d0f-af50-622858965a8c', 1, 1, CAST(0x0000A7A500FFB6D4 AS DateTime), CAST(0x0000A805014146CB AS DateTime), N'0bae00f7-96dc-46c8-b6f5-a427616c5bcf', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [Organization] ([ID], [ClientCode], [Name], [Code], [ParentID], [TaxPayerNumber], [RegionID], [StructureID], [IndustryID], [BusinessUnitID], [IsActive], [PLevel], [CreateTime], [UpdateTime], [AreaID], [EnglishName], [Abbreviation], [InvoiceType], [LegalPersonName], [ManufactureAddress], [RegisterAddress], [BankAccountName], [BankAccountNumber], [PhoneNumber], [RegistrationType], [Remark], [Vehicleroutinglocation]) VALUES (N'2d87ff73-2d13-43aa-851c-efe7b59e21af', N'06086272', N'路德思汽车销售服务(北京)有限公司', N'2061', N'e597d81d-8920-47db-93aa-2e6db908016c', N'911101050785643596', N'110100', N'500de3b0-0a5b-492f-81d5-34117ea119ed', N'0', N'0bae00f7-96dc-46c8-b6f5-a427616c5bcf', 1, 1, CAST(0x0000A7E100A384BF AS DateTime), CAST(0x0000A7E100A50B69 AS DateTime), N'0A5602E0-5A7C-4E26-9AEB-208EDADE19FB', N'Roadster Automobile Sales and Service (Beijing) Co., Ltd.', N'BJBD1', N'增值税专普票、机动车销售统一发票', N'unknown', N'北京市朝阳区东大桥路9号楼一层L1-20B单元', N'北京', N'花旗银行(中国)有限公司北京分行', N'1775280219', N'010-56692601', N'unknown', NULL, N'APAC-CN-Beijing-Yizhuang')
INSERT [Organization] ([ID], [ClientCode], [Name], [Code], [ParentID], [TaxPayerNumber], [RegionID], [StructureID], [IndustryID], [BusinessUnitID], [IsActive], [PLevel], [CreateTime], [UpdateTime], [AreaID], [EnglishName], [Abbreviation], [InvoiceType], [LegalPersonName], [ManufactureAddress], [RegisterAddress], [BankAccountName], [BankAccountNumber], [PhoneNumber], [RegistrationType], [Remark], [Vehicleroutinglocation]) VALUES (N'50eb2234-2135-4109-b9f8-66ef81106d26', N'pwc', N'Emily 0712', N'070712', N'1f8daeeb-6b44-415d-916b-a19159356d81', N'070712', N'310100', N'029217e9-ee88-9f51-eb74-806734d7f013', N'0', N'2542b106-66a6-4135-85d3-a90ca58ba058', 1, 0, CAST(0x0000A7AE00F7919B AS DateTime), CAST(0x0000A7F401089F72 AS DateTime), N'a6bcc4a2-586d-468b-8802-a93c4a434b22', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [Organization] ([ID], [ClientCode], [Name], [Code], [ParentID], [TaxPayerNumber], [RegionID], [StructureID], [IndustryID], [BusinessUnitID], [IsActive], [PLevel], [CreateTime], [UpdateTime], [AreaID], [EnglishName], [Abbreviation], [InvoiceType], [LegalPersonName], [ManufactureAddress], [RegisterAddress], [BankAccountName], [BankAccountNumber], [PhoneNumber], [RegistrationType], [Remark], [Vehicleroutinglocation]) VALUES (N'B937BD23-1875-489B-A87E-E57B00F85850', N'pwc', N'普华永道机构', N'1111111', NULL, N'123456789', N'310100', N'029217e9-ee88-9f51-eb74-806734d7f013', N'23', N'2542b106-66a6-4135-85d3-a90ca58ba058', 1, 0, CAST(0x0000A7C3010C59F4 AS DateTime), CAST(0x0000A7F401089F97 AS DateTime), N'0A5602E0-5A7C-4E26-9AEB-208EDADE19FB', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
INSERT [Organization] ([ID], [ClientCode], [Name], [Code], [ParentID], [TaxPayerNumber], [RegionID], [StructureID], [IndustryID], [BusinessUnitID], [IsActive], [PLevel], [CreateTime], [UpdateTime], [AreaID], [EnglishName], [Abbreviation], [InvoiceType], [LegalPersonName], [ManufactureAddress], [RegisterAddress], [BankAccountName], [BankAccountNumber], [PhoneNumber], [RegistrationType], [Remark], [Vehicleroutinglocation]) VALUES (N'e597d81d-8920-47db-93aa-2e6db908016c', N'06086272', N'拓速乐汽车销售(北京)有限公司', N'2060', NULL, N'911101050555837099', N'110100', N'500de3b0-0a5b-492f-81d5-34117ea119ed', N'0', N'0bae00f7-96dc-46c8-b6f5-a427616c5bcf', 1, 0, CAST(0x0000A7E100A14016 AS DateTime), CAST(0x0000A7E100A5255B AS DateTime), N'0A5602E0-5A7C-4E26-9AEB-208EDADE19FB', N'Tesla Automobile Distribution (Beijing) Co., Ltd.', N'GD', N'增值税专普票', N'不知道', N'北京市朝阳区东大桥路9号楼一层L1-20A', N'北京市', N'花旗银行(中国)有限公司北京分行', N'1775125205', N'010-56692601', N'不知道', NULL, N'APAC-CN-Beijing-Yizhuang')
GO
INSERT [BusinessUnit] ([ID], [Name], [IsActive], [CreateTime], [UpdateTime]) VALUES (N'5064297b-5a34-4dc3-a0fe-2ab5cdf18c1d', N'月球事业部', 1, CAST(0x0000A799010BEEF1 AS DateTime), CAST(0x0000A7AF00BB43AD AS DateTime))
INSERT [BusinessUnit] ([ID], [Name], [IsActive], [CreateTime], [UpdateTime]) VALUES (N'0bae00f7-96dc-46c8-b6f5-a427616c5bcf', N'事业部111', 0, CAST(0x0000A79B00E48E01 AS DateTime), CAST(0x0000A7F40104F2A6 AS DateTime))
INSERT [BusinessUnit] ([ID], [Name], [IsActive], [CreateTime], [UpdateTime]) VALUES (N'2542b106-66a6-4135-85d3-a90ca58ba058', N'事业部1', 1, CAST(0x0000A79800E1D0A9 AS DateTime), CAST(0x0000A7B700C52520 AS DateTime))
INSERT [BusinessUnit] ([ID], [Name], [IsActive], [CreateTime], [UpdateTime]) VALUES (N'47969e07-ab3e-4d0f-af50-622858965a8c', N'事业部389', 1, CAST(0x0000A7A0010E1A44 AS DateTime), CAST(0x0000A7B7012439F7 AS DateTime))
INSERT [BusinessUnit] ([ID], [Name], [IsActive], [CreateTime], [UpdateTime]) VALUES (N'29962a9b-3340-43b7-9ed1-4ed557b0a37c', N'事业部2', 1, CAST(0x0000A79800C4F7D4 AS DateTime), CAST(0x0000A7A100A8FB58 AS DateTime))
GO
INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'a6bcc4a2-586d-468b-8802-a93c4a434b22', NULL, N'Emily 测试新增区域', 1)
INSERT [Area] ([ID], [ParentID], [Name], [IsActive]) VALUES (N'0A5602E0-5A7C-4E26-9AEB-208EDADE19FB', NULL, N'华东区', 1)
GO
\ No newline at end of file
USE [TaxAdmin8]
GO
INSERT [dbo].[Organization] ([ID], [ClientCode], [Name], [Code], [ParentID], [TaxPayerNumber], [RegionID], [StructureID], [IndustryID], [BusinessUnitID], [IsActive], [PLevel], [CreateTime], [UpdateTime], [AreaID], [EnglishName], [Abbreviation], [InvoiceType], [LegalPersonName], [ManufactureAddress], [RegisterAddress], [BankAccountName], [BankAccountNumber], [PhoneNumber], [RegistrationType], [Remark], [Vehicleroutinglocation]) VALUES (N'007e9946-6217-4756-bee3-023d1e4e583f', N'pwc', N'test1234567788', N'EDMOND12345678', N'05f7c09b-8711-4320-be25-89ba438d20c4', N'', N'110100', N'500de3b0-0a5b-492f-81d5-34117ea119ed', N'0', N'5064297b-5a34-4dc3-a0fe-2ab5cdf18c1d', 1, 0, CAST(N'2017-11-21T15:13:41.803' AS DateTime), CAST(N'2017-11-21T15:13:41.803' AS DateTime), N'0bae00f7-96dc-46c8-b6f5-a427616c5bcf', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
GO
\ No newline at end of file
USE [TaxAdmin8]
GO
INSERT [dbo].[Organization] ([ID], [ClientCode], [Name], [Code], [ParentID], [TaxPayerNumber], [RegionID], [StructureID], [IndustryID], [BusinessUnitID], [IsActive], [PLevel], [CreateTime], [UpdateTime], [AreaID], [EnglishName], [Abbreviation], [InvoiceType], [LegalPersonName], [ManufactureAddress], [RegisterAddress], [BankAccountName], [BankAccountNumber], [PhoneNumber], [RegistrationType], [Remark], [Vehicleroutinglocation]) VALUES (N'007e9946-6217-4756-bee3-023d1e4e583f', N'pwc', N'test1234567788', N'EDMOND12345678', N'05f7c09b-8711-4320-be25-89ba438d20c4', N'', N'110100', N'500de3b0-0a5b-492f-81d5-34117ea119ed', N'0', N'5064297b-5a34-4dc3-a0fe-2ab5cdf18c1d', 1, 0, CAST(N'2017-11-21T15:13:41.803' AS DateTime), CAST(N'2017-11-21T15:13:41.803' AS DateTime), N'0bae00f7-96dc-46c8-b6f5-a427616c5bcf', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
GO
INSERT [dbo].[Organization] ([ID], [ClientCode], [Name], [Code], [ParentID], [TaxPayerNumber], [RegionID], [StructureID], [IndustryID], [BusinessUnitID], [IsActive], [PLevel], [CreateTime], [UpdateTime], [AreaID], [EnglishName], [Abbreviation], [InvoiceType], [LegalPersonName], [ManufactureAddress], [RegisterAddress], [BankAccountName], [BankAccountNumber], [PhoneNumber], [RegistrationType], [Remark], [Vehicleroutinglocation]) VALUES (N'05f7c09b-8711-4320-be25-89ba438d20c4', N'pwc', N'ida测试报表001', N'0111001', NULL, NULL, N'110100', N'd72fd390-742d-4aee-95ef-bc8a641da35b', N'23', NULL, 0, 0, CAST(N'2018-01-11T14:02:52.100' AS DateTime), CAST(N'2018-01-11T14:41:40.197' AS DateTime), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
GO
\ No newline at end of file
This diff is collapsed.
USE [TaxAdmin8]
GO
INSERT [dbo].[ProjectClient] ([ID], [Code], [Name], [IndustryID], [IsActive], [CreateTime], [UpdateTime]) VALUES (N'1', N'code', N'pwc', N'2', 1, CAST(N'2017-06-15T09:00:50.073' AS DateTime), CAST(N'2017-06-15T09:00:50.073' AS DateTime))
GO
This diff is collapsed.
This diff is collapsed.
USE [TaxAdmin8]
GO
INSERT [dbo].[ServiceType] ([ID], [Name], [Prefix], [IsActive]) VALUES (N'1', N'后台Administration', N'Admin', 0)
GO
INSERT [dbo].[ServiceType] ([ID], [Name], [Prefix], [IsActive]) VALUES (N'10', N'递延所得税', N'DTA', 1)
GO
INSERT [dbo].[ServiceType] ([ID], [Name], [Prefix], [IsActive]) VALUES (N'11', N'税务现金流', N'CF', 1)
GO
INSERT [dbo].[ServiceType] ([ID], [Name], [Prefix], [IsActive]) VALUES (N'12', N'资产管理增值税服务', N'AssetsManage', 1)
GO
INSERT [dbo].[ServiceType] ([ID], [Name], [Prefix], [IsActive]) VALUES (N'2', N'增值税申报分析', N'VAT', 1)
GO
INSERT [dbo].[ServiceType] ([ID], [Name], [Prefix], [IsActive]) VALUES (N'3', N'电子税务管理', N'AM', 0)
GO
INSERT [dbo].[ServiceType] ([ID], [Name], [Prefix], [IsActive]) VALUES (N'4', N'财务尽职调查', N'FDD', 1)
GO
INSERT [dbo].[ServiceType] ([ID], [Name], [Prefix], [IsActive]) VALUES (N'5', N'税务管理平台', N'Dashboard', 0)
GO
INSERT [dbo].[ServiceType] ([ID], [Name], [Prefix], [IsActive]) VALUES (N'6', N'企业所得税', N'CIT', 1)
GO
INSERT [dbo].[ServiceType] ([ID], [Name], [Prefix], [IsActive]) VALUES (N'7', N'电子税务审计', N'TCS', 0)
GO
INSERT [dbo].[ServiceType] ([ID], [Name], [Prefix], [IsActive]) VALUES (N'8', N'电子税务审计', N'TaxAudit', 1)
GO
INSERT [dbo].[ServiceType] ([ID], [Name], [Prefix], [IsActive]) VALUES (N'9', N'关联交易管理', N'RPT', 1)
GO
This diff is collapsed.
This diff is collapsed.
USE [TaxAdmin8]
GO
INSERT [dbo].[Organization] ([ID], [ClientCode], [Name], [Code], [ParentID], [TaxPayerNumber], [RegionID], [StructureID], [IndustryID], [BusinessUnitID], [IsActive], [PLevel], [CreateTime], [UpdateTime], [AreaID], [EnglishName], [Abbreviation], [InvoiceType], [LegalPersonName], [ManufactureAddress], [RegisterAddress], [BankAccountName], [BankAccountNumber], [PhoneNumber], [RegistrationType], [Remark], [Vehicleroutinglocation]) VALUES (N'007e9946-6217-4756-bee3-023d1e4e583f', N'pwc', N'test1234567788', N'EDMOND12345678', N'05f7c09b-8711-4320-be25-89ba438d20c4', N'', N'110100', N'500de3b0-0a5b-492f-81d5-34117ea119ed', N'0', N'5064297b-5a34-4dc3-a0fe-2ab5cdf18c1d', 1, 0, CAST(N'2017-11-21T15:13:41.803' AS DateTime), CAST(N'2017-11-21T15:13:41.803' AS DateTime), N'0bae00f7-96dc-46c8-b6f5-a427616c5bcf', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
GO
INSERT [dbo].[Organization] ([ID], [ClientCode], [Name], [Code], [ParentID], [TaxPayerNumber], [RegionID], [StructureID], [IndustryID], [BusinessUnitID], [IsActive], [PLevel], [CreateTime], [UpdateTime], [AreaID], [EnglishName], [Abbreviation], [InvoiceType], [LegalPersonName], [ManufactureAddress], [RegisterAddress], [BankAccountName], [BankAccountNumber], [PhoneNumber], [RegistrationType], [Remark], [Vehicleroutinglocation]) VALUES (N'05f7c09b-8711-4320-be25-89ba438d20c4', N'pwc', N'ida测试报表001', N'0111001', NULL, NULL, N'110100', N'd72fd390-742d-4aee-95ef-bc8a641da35b', N'23', NULL, 0, 0, CAST(N'2018-01-11T14:02:52.100' AS DateTime), CAST(N'2018-01-11T14:41:40.197' AS DateTime), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'23', N'房地产业', 1, NULL)
GO
INSERT [dbo].[Industry] ([ID], [Name], [IsActive], [EnglishName]) VALUES (N'0', N'通用行业', 1, NULL)
GO
INSERT [dbo].[Region] ([ID], [ParentID], [Name], [ShortName], [MergerName], [LevelType], [TelCode], [ZipCode], [PinYin], [Longitude], [Latitude], [IsActive]) VALUES (N'100000', NULL, N'中国', N'中国', N'中国', 0, NULL, NULL, N'China', 116.368324, 39.9150848, 1)
GO
INSERT [dbo].[Region] ([ID], [ParentID], [Name], [ShortName], [MergerName], [LevelType], [TelCode], [ZipCode], [PinYin], [Longitude], [Latitude], [IsActive]) VALUES (N'110000', N'100000', N'北京市', N'北京', N'中国,北京', 1, NULL, NULL, N'Beijing', 116.405289, 39.9049873, 1)
GO
INSERT [dbo].[Region] ([ID], [ParentID], [Name], [ShortName], [MergerName], [LevelType], [TelCode], [ZipCode], [PinYin], [Longitude], [Latitude], [IsActive]) VALUES (N'110100', N'110000', N'北京市', N'北京', N'中国,北京,北京市', 2, N'010 ', 100000, N'Beijing', 116.405289, 39.9049873, 1)
GO
INSERT [dbo].[OrganizationStructure] ([ID], [Name], [IsActive], [CreateTime], [UpdateTime]) VALUES (N'500de3b0-0a5b-492f-81d5-34117ea119ed', N'分公司', 1, CAST(N'2017-04-24T23:31:41.527' AS DateTime), CAST(N'2017-06-20T13:43:33.527' AS DateTime))
GO
INSERT [dbo].[OrganizationStructure] ([ID], [Name], [IsActive], [CreateTime], [UpdateTime]) VALUES (N'd72fd390-742d-4aee-95ef-bc8a641da35b', N'11122333445566778899', 1, CAST(N'2017-07-27T16:40:36.010' AS DateTime), CAST(N'2018-02-28T17:47:39.143' AS DateTime))
GO
INSERT [dbo].[BusinessUnit] ([ID], [Name], [IsActive], [CreateTime], [UpdateTime]) VALUES (N'5064297b-5a34-4dc3-a0fe-2ab5cdf18c1d', N'月球事业部', 1, CAST(N'2017-06-21T16:15:30.937' AS DateTime), CAST(N'2017-07-13T11:21:48.523' AS DateTime))
GO
INSERT [dbo].[OrganizationServiceTemplateGroup] ([ID], [OrganizationID], [ServiceTypeID], [TemplateGroupID]) VALUES (N'92d5b268-86bf-4482-bad6-4fcb86a7cb1f', N'05f7c09b-8711-4320-be25-89ba438d20c4', N'2', N'D7C49ECB-27D8-446D-8AF0-29852763B097')
GO
INSERT [dbo].[OrganizationServiceTemplateGroup] ([ID], [OrganizationID], [ServiceTypeID], [TemplateGroupID]) VALUES (N'f136d474-1be8-4ba3-ad08-e78c2bed3047', N'05f7c09b-8711-4320-be25-89ba438d20c4', N'6', N'03DE48D6-4980-47B8-A9A4-30484EE62966')
GO
INSERT [dbo].[TemplateGroup] ([ID], [Name], [ServiceTypeID], [IndustryIDs], [PayTaxType], [GroupType], [CopyFrom], [UpdateTime], [CreateTime], [IsSystemType]) VALUES (N'03DE48D6-4980-47B8-A9A4-30484EE62966', N'企业所得税默认模板1', N'6', N'0', NULL, 1, N'97A5CF03-53D7-49B0-9CD2-B534D6A803D5', CAST(N'2017-10-11T11:55:14.047' AS DateTime), CAST(N'2017-10-11T11:55:14.047' AS DateTime), 0)
GO
INSERT [dbo].[TemplateGroup] ([ID], [Name], [ServiceTypeID], [IndustryIDs], [PayTaxType], [GroupType], [CopyFrom], [UpdateTime], [CreateTime], [IsSystemType]) VALUES (N'44FCDD85-0CDA-4882-8A16-38FE99CF1FA7', N'ida测试模板002', N'6', N'0', NULL, 1, N'03DE48D6-4980-47B8-A9A4-30484EE62966', CAST(N'2018-01-16T09:41:09.050' AS DateTime), CAST(N'2018-01-16T09:41:09.050' AS DateTime), 0)
GO
INSERT [dbo].[TemplateGroup] ([ID], [Name], [ServiceTypeID], [IndustryIDs], [PayTaxType], [GroupType], [CopyFrom], [UpdateTime], [CreateTime], [IsSystemType]) VALUES (N'683E89B1-BEC9-458B-ADE0-06343055C751', N'ida测试模板001', N'6', N'0', NULL, 1, N'03DE48D6-4980-47B8-A9A4-30484EE62966', CAST(N'2018-01-16T09:39:50.487' AS DateTime), CAST(N'2018-01-16T09:39:50.487' AS DateTime), 0)
GO
INSERT [dbo].[TemplateGroup] ([ID], [Name], [ServiceTypeID], [IndustryIDs], [PayTaxType], [GroupType], [CopyFrom], [UpdateTime], [CreateTime], [IsSystemType]) VALUES (N'D7C49ECB-27D8-446D-8AF0-29852763B097', N'PwC_Demo模板', N'2', N'0', 1, 1, N'1F5247ED-72B8-4919-AB06-C13DABE43585', CAST(N'2017-09-28T10:46:58.200' AS DateTime), CAST(N'2017-09-28T10:46:58.200' AS DateTime), 0)
GO
INSERT [dbo].[EnterpriseAccountSet] ([ID], [Code], [Name], [IsActive], [CreatorID], [CreateTime], [UpdateTime]) VALUES (N'98a60fe3-39f9-4ae5-b5e4-9621c7510e74', N'891288BB-2A51-401E-B63C-45575C779CC1', N'房地产企业账套', 1, N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', CAST(N'2017-06-21T09:52:09.930' AS DateTime), CAST(N'2017-06-21T09:52:09.930' AS DateTime))
GO
INSERT [dbo].[EnterpriseAccountSetOrg] ([ID], [EnterpriseAccountSetID], [OrganizationID], [EffectiveDate], [ExpiredDate]) VALUES (N'dded0b68-c355-42e6-b894-a885a77bef4e', N'98a60fe3-39f9-4ae5-b5e4-9621c7510e74', N'05f7c09b-8711-4320-be25-89ba438d20c4', CAST(N'2018-01-01T00:00:00.000' AS DateTime), CAST(N'2018-12-31T00:00:00.000' AS DateTime))
GO
INSERT [dbo].[ServiceType] ([ID], [Name], [Prefix], [IsActive]) VALUES (N'1', N'后台Administration', N'Admin', 0)
GO
INSERT [dbo].[ServiceType] ([ID], [Name], [Prefix], [IsActive]) VALUES (N'10', N'递延所得税', N'DTA', 1)
GO
INSERT [dbo].[ServiceType] ([ID], [Name], [Prefix], [IsActive]) VALUES (N'11', N'税务现金流', N'CF', 1)
GO
INSERT [dbo].[ServiceType] ([ID], [Name], [Prefix], [IsActive]) VALUES (N'12', N'资产管理增值税服务', N'AssetsManage', 1)
GO
INSERT [dbo].[ServiceType] ([ID], [Name], [Prefix], [IsActive]) VALUES (N'2', N'增值税申报分析', N'VAT', 1)
GO
INSERT [dbo].[ServiceType] ([ID], [Name], [Prefix], [IsActive]) VALUES (N'3', N'电子税务管理', N'AM', 0)
GO
INSERT [dbo].[ServiceType] ([ID], [Name], [Prefix], [IsActive]) VALUES (N'4', N'财务尽职调查', N'FDD', 1)
GO
INSERT [dbo].[ServiceType] ([ID], [Name], [Prefix], [IsActive]) VALUES (N'5', N'税务管理平台', N'Dashboard', 0)
GO
INSERT [dbo].[ServiceType] ([ID], [Name], [Prefix], [IsActive]) VALUES (N'6', N'企业所得税', N'CIT', 1)
GO
INSERT [dbo].[ServiceType] ([ID], [Name], [Prefix], [IsActive]) VALUES (N'7', N'电子税务审计', N'TCS', 0)
GO
INSERT [dbo].[ServiceType] ([ID], [Name], [Prefix], [IsActive]) VALUES (N'8', N'电子税务审计', N'TaxAudit', 1)
GO
INSERT [dbo].[ServiceType] ([ID], [Name], [Prefix], [IsActive]) VALUES (N'9', N'关联交易管理', N'RPT', 1)
GO
This diff is collapsed.
INSERT [dbo].[UserDimensionValue] ([ID], [UserID], [DimensionID], [DimensionValueID], [IsAccessible], [HasOriginalRole]) VALUES (N'B8FEA997-F9C4-4E5A-BF90-93E6FE330FAF', N'd0665e84-ab6e-4393-8b3c-666cff461efe', N'c61a5bd6-a996-4952-9869-d053995237e5', N'2399fb65-896a-4c99-9295-b73585bd1b50', 1, 1)
INSERT [dbo].[User] ([ID], [UserName], [Email], [Password], [LoginType], [Status], [ExpirationDate], [CreateTime], [UpdateTime], [IsAdmin], [PasswordUpdateTime], [AttemptTimes], [LockedTime], [OrganizationID], [IsSuperAdmin]) VALUES (N'd0665e84-ab6e-4393-8b3c-666cff461efe', N'123123', N'12345@123.com', N'69BC651769B8D284F8E210B52F1796A170B9B0D114EC24F6EE25405BEA562BBEC0F5A03363B0F35F348A67721A92D932D294D20527097A49E216DE6ADC1D75EE', 3, 1, NULL, CAST(0x0000A79B010BFF02 AS DateTime), CAST(0x0000A877012694A7 AS DateTime), 0, NULL, 0, NULL, N'299a6736-c7d3-4bc3-95fb-96b4b750d245', 0)
INSERT [dbo].[UserDimensionValueRole] ([ID], [UserDimensionValueID], [RoleID]) VALUES (N'67DD050E-BC8D-4B5B-A3EA-86121533D07F', N'B8FEA997-F9C4-4E5A-BF90-93E6FE330FAF', N'07CCEC5C-F059-4864-8009-D460689F1007')
INSERT [dbo].[Role] ([ID], [Name], [Description], [RoleCategoryID], [ServiceTypeID], [CreateTime], [UpdateTime]) VALUES (N'05D40C22-03F5-4A0F-A4B3-CEB1D7E6B9DC', N'查看纳税识别', NULL, N'09243bce-1994-4d92-b849-30da2cf35eaf', N'2', CAST(0x0000A7B700AAE45F AS DateTime), CAST(0x0000A7B700AAE45F AS DateTime))
INSERT [dbo].[Role] ([ID], [Name], [Description], [RoleCategoryID], [ServiceTypeID], [CreateTime], [UpdateTime]) VALUES (N'07CCEC5C-F059-4864-8009-D460689F1007', N'新增/复制工作流', N'1111111111111111111', N'f21d950a-cc4d-4d65-b2cf-42554f281854', N'2', CAST(0x0000A7C900EB0A5A AS DateTime), CAST(0x0000A7C900EB0A5A AS DateTime))
GO
\ No newline at end of file
INSERT [dbo].[User] ([ID], [UserName], [Email], [Password], [LoginType], [Status], [ExpirationDate], [CreateTime], [UpdateTime], [IsAdmin], [PasswordUpdateTime], [AttemptTimes], [LockedTime], [OrganizationID], [IsSuperAdmin]) VALUES (N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D50', N'Admin', N'a@a.aaxx', N'69BC651769B8D284F8E210B52F1796A170B9B0D114EC24F6EE25405BEA562BBEC0F5A03363B0F35F348A67721A92D932D294D20527097A49E216DE6ADC1D75EE', 3, 1, CAST(0x4BB10B00 AS Date), CAST(0x0000A723012E3FB3 AS DateTime), CAST(0x0000A87400DF73A6 AS DateTime), 1, CAST(0x0000A87400DF73A6 AS DateTime), 0, CAST(0x0000A87400EEE06A AS DateTime), N'2d87ff73-2d13-43aa-851c-efe7b59e21af', 1)
INSERT [dbo].[User] ([ID], [UserName], [Email], [Password], [LoginType], [Status], [ExpirationDate], [CreateTime], [UpdateTime], [IsAdmin], [PasswordUpdateTime], [AttemptTimes], [LockedTime], [OrganizationID], [IsSuperAdmin]) VALUES (N'66933E7B-DA75-4B2E-B7D6-AB65DCA20D51', N'test@test.com', N'test@test.com', N'69BC651769B8D284F8E210B52F1796A170B9B0D114EC24F6EE25405BEA562BBEC0F5A03363B0F35F348A67721A92D932D294D20527097A49E216DE6ADC1D75EE', 3, 1, CAST(0x4BB10B00 AS Date), CAST(0x0000A723012E3FB3 AS DateTime), CAST(0x0000A87400DF73A6 AS DateTime), 1, CAST(0x0000A87400DF73A6 AS DateTime), 0, CAST(0x0000A87400EEE06A AS DateTime), N'2d87ff73-2d13-43aa-851c-efe7b59e21af', 1)
GO
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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