Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-cloud
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data-hook
gic-cloud
Commits
fced8c62
Commit
fced8c62
authored
Apr 19, 2023
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 删除文件
parent
fb63201a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
2 deletions
+30
-2
Test.java
gic-cloud-data-hook-service/src/test/java/Test.java
+10
-0
ExceTest2.java
...ud-data-hook-service/src/test/java/com/gic/ExceTest2.java
+2
-2
Test2.java
gic-cloud-data-hook-service/src/test/java/com/gic/Test2.java
+18
-0
No files found.
gic-cloud-data-hook-service/src/test/java/Test.java
View file @
fced8c62
...
...
@@ -3,8 +3,11 @@ import com.gic.cloud.data.hook.api.dto.DownloadTask;
import
com.gic.cloud.data.hook.api.entity.FlatQueryTaskCondition
;
import
com.gic.cloud.data.hook.service.impl.DownloadTaskServiceImpl
;
import
com.gic.cloud.data.hook.service.impl.FlatQueryResultServiceImpl
;
import
com.gic.redis.data.util.RedisUtil
;
import
org.junit.runner.RunWith
;
import
org.redisson.api.RedissonClient
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.support.ClassPathXmlApplicationContext
;
import
org.springframework.test.context.ContextConfiguration
;
import
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
;
...
...
@@ -31,6 +34,13 @@ public class Test {
}
@org
.
junit
.
Test
public
void
test3
(){
ClassPathXmlApplicationContext
context
=
new
ClassPathXmlApplicationContext
(
"redis-init.xml"
);
RedissonClient
redisClient
=
RedisUtil
.
getRedisClient
();
System
.
out
.
println
(
redisClient
);
}
@org
.
junit
.
Test
public
void
test2
(){
String
json
=
"{\"allFields\":[\"is_mbr\",\"main_store_name\",\"main_store_code\",\"card_num\",\"open_card_time\",\"clerk_name\",\"add_clerk_code\",\"clerk_store_name\",\"clerk_store_code\",\"add_buddy_time\",\"create_time\"],\"amount\":1169963,\"authStoreIdList\":[],\"buildPermitted\":\"1\",\"conditions\":[{\"enableEncrypt\":false,\"extendFilter\":\"\",\"fieldMark\":\"是否会员\",\"fieldName\":\"is_mbr\",\"fieldType\":\"text\",\"filterTunnel\":\"\",\"mainFilter\":\"是\"},{\"enableEncrypt\":false,\"extendFilter\":\"\",\"fieldMark\":\"会员服务门店名称\",\"fieldName\":\"main_store_name\",\"fieldType\":\"text\",\"filterTunnel\":\"\",\"mainFilter\":\"\"},{\"enableEncrypt\":false,\"extendFilter\":\"\",\"fieldMark\":\"会员服务门店code\",\"fieldName\":\"main_store_code\",\"fieldType\":\"text\",\"filterTunnel\":\"\",\"mainFilter\":\"\"},{\"enableEncrypt\":false,\"extendFilter\":\"\",\"fieldMark\":\"会员卡号\",\"fieldName\":\"card_num\",\"fieldType\":\"text\",\"filterTunnel\":\"\",\"mainFilter\":\"\"},{\"enableEncrypt\":false,\"extendFilter\":\"\",\"fieldMark\":\"开卡时间\",\"fieldName\":\"open_card_time\",\"fieldType\":\"date\",\"filterTunnel\":\"\",\"mainFilter\":\"\"},{\"enableEncrypt\":false,\"extendFilter\":\"\",\"fieldMark\":\"好友导购姓名\",\"fieldName\":\"clerk_name\",\"fieldType\":\"text\",\"filterTunnel\":\"\",\"mainFilter\":\"\"},{\"enableEncrypt\":false,\"extendFilter\":\"\",\"fieldMark\":\"好友导购code\",\"fieldName\":\"add_clerk_code\",\"fieldType\":\"text\",\"filterTunnel\":\"\",\"mainFilter\":\"\"},{\"enableEncrypt\":false,\"extendFilter\":\"\",\"fieldMark\":\"导购门店名称\",\"fieldName\":\"clerk_store_name\",\"fieldType\":\"text\",\"filterTunnel\":\"\",\"mainFilter\":\"\"},{\"enableEncrypt\":false,\"extendFilter\":\"\",\"fieldMark\":\"好友导购所属门店code\",\"fieldName\":\"clerk_store_code\",\"fieldType\":\"text\",\"filterTunnel\":\"\",\"mainFilter\":\"\"},{\"enableEncrypt\":false,\"extendFilter\":\"2023-02-28 23:59:59\",\"fieldMark\":\"添加好友时间\",\"fieldName\":\"add_buddy_time\",\"fieldType\":\"date\",\"filterTunnel\":\"\",\"mainFilter\":\"2010-03-01 00:00:00\"},{\"enableEncrypt\":false,\"extendFilter\":\"\",\"fieldMark\":\"好办导购与客户建立好友关系时间\",\"fieldName\":\"create_time\",\"fieldType\":\"date\",\"filterTunnel\":\"\",\"mainFilter\":\"\"}],\"decryptFilters\":[],\"enterpriseIds\":[\"ff80808180b3c54a0180bc3df3bb4bca\"],\"execDistinct\":false,\"orderDir\":\"\",\"orderField\":\"\",\"queryDataType\":0,\"tableId\":\"extract_entwechat_detail_d\",\"taskId\":\"1678674610424\"}"
;
FlatQueryTaskCondition
condition
=
JSON
.
parseObject
(
json
,
FlatQueryTaskCondition
.
class
);
...
...
gic-cloud-data-hook-service/src/test/java/com/gic/ExceTest2.java
View file @
fced8c62
...
...
@@ -59,7 +59,7 @@ public class ExceTest2 {
first
=
false
;
continue
;
}
func
.
deal
(
cells
,
titles
,
first
);
//
func.deal(cells,titles,first);
}
while
((
cells
=
csvReader
.
readNext
())!=
null
);
logger
.
info
(
"读取结束:{}"
,
midFile
.
getName
());
csvReader
.
close
();
...
...
@@ -179,7 +179,7 @@ public class ExceTest2 {
currentFile
.
set
(
xlsxFileInfo
);
xlsxFiles
.
add
(
currentFile
.
get
().
filepath
);
}
saveXlsSplitNew
(
currentFile
.
get
().
filepath
,
cells
,
titles
,
currentFile
.
get
(),
count
,
false
);
//
saveXlsSplitNew(currentFile.get().filepath,cells,titles,currentFile.get(),count,false);
});
}
}
gic-cloud-data-hook-service/src/test/java/com/gic/Test2.java
0 → 100644
View file @
fced8c62
package
com
.
gic
;
import
com.gic.redis.data.util.RedisUtil
;
import
org.junit.Test
;
import
org.redisson.api.RMap
;
import
org.redisson.api.RedissonClient
;
import
org.springframework.context.support.ClassPathXmlApplicationContext
;
public
class
Test2
{
@Test
public
void
test
(){
ClassPathXmlApplicationContext
context
=
new
ClassPathXmlApplicationContext
(
"redis-init.xml"
);
RedissonClient
redisClient
=
RedisUtil
.
getRedisClient
();
RMap
<
Object
,
Object
>
aaa
=
redisClient
.
getMap
(
"aaa123"
);
aaa
.
put
(
"aa"
,
"2"
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment