PREPARMASTERServiceImplTest.java
1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package com.tianbo.analysis.service.imp;
import com.tianbo.analysis.NmmsAdminApplication;
import com.tianbo.analysis.model.BatchSend;
import com.tianbo.analysis.model.BusinessAlterLog;
import com.tianbo.analysis.service.PREPARMASTERService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import java.util.ArrayList;
import java.util.Date;
import java.util.UUID;
@SpringBootTest(classes = NmmsAdminApplication.class)
class PREPARMASTERServiceImplTest {
@Autowired
PREPARMASTERService preparmaMasterService;
@Test
void batchDel() {
BatchSend batchSend = new BatchSend();
BusinessAlterLog businessAlterLog = new BusinessAlterLog();
businessAlterLog.setAutoid(UUID.randomUUID().toString());
businessAlterLog.setBusinesstype("MT1201-08");
businessAlterLog.setAlterReason("预配删除测试");
businessAlterLog.setContantname("测试姓名");
businessAlterLog.setContenttel("12320981321");
businessAlterLog.setCreatedate(new Date());
String first = "master;fc68f797-58f9-4276-850d-f772ab54e041;Y87489;2018/7/16 0:00:00;871-52149624;NO;4620";
String sec = "sub;e430bacf-d34d-49c4-a646-c6bab53245d9;Y87489;2018/7/16 0:00:00;871-52149624;5758599033;4620";
String thrd = "sub;4ff7853f-0315-4632-ad0f-6a028054513d;Y87489;2018/7/16 0:00:00;871-52149624;5758599022;4620";
String four = "sub;52dc1407-d686-42ac-87cd-ddacdb84ca18;Y87489;2018/7/16 0:00:00;871-52149624;5758599044;4620";
ArrayList<String> strings = new ArrayList<>();
strings.add(first);
strings.add(sec);
strings.add(thrd);
strings.add(four);
batchSend.businessAlterLog = businessAlterLog;
batchSend.billListDes = strings;
preparmaMasterService.batchDel(batchSend,"admin");
}
}