|
|
@ -48,23 +48,25 @@ public class ReceivablesInitialCreateEAIService extends AbsEAIService { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//随机赋值list |
|
|
|
private List<ReceivablesDetailEntity> list = Arrays.asList( |
|
|
|
new ReceivablesDetailEntity("鼎捷A半导体有限公司","dj001","张三","186****9498"), |
|
|
|
new ReceivablesDetailEntity("鼎捷B半导体有限公司","dj002","李四","158****4794"), |
|
|
|
new ReceivablesDetailEntity("鼎捷C半导体有限公司","dj003","王五","150****9529"), |
|
|
|
new ReceivablesDetailEntity("鼎新A半导体有限公司","dj004","赵六","139****0530"), |
|
|
|
new ReceivablesDetailEntity("鼎新B半导体有限公司","dj005","陈七","136****5333"), |
|
|
|
new ReceivablesDetailEntity("鼎新C半导体有限公司","dj006","刘八","188****9299"), |
|
|
|
new ReceivablesDetailEntity("鼎华A半导体有限公司","dj007","韩九","130****3555"), |
|
|
|
new ReceivablesDetailEntity("鼎华B半导体有限公司","dj008","管十一","138****9999"), |
|
|
|
new ReceivablesDetailEntity("鼎华C半导体有限公司","dj009","谢十二","187****6160")); |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public DWEAIResult execute(Map<String, String> headers, String messageBody) throws Exception { |
|
|
|
|
|
|
|
|
|
|
|
//随机赋值list |
|
|
|
List<ReceivablesDetailEntity> list = Arrays.asList( |
|
|
|
new ReceivablesDetailEntity("鼎捷A半导体有限公司","dj001","张三","186****9498"), |
|
|
|
new ReceivablesDetailEntity("鼎捷B半导体有限公司","dj002","李四","158****4794"), |
|
|
|
new ReceivablesDetailEntity("鼎捷C半导体有限公司","dj003","王五","150****9529"), |
|
|
|
new ReceivablesDetailEntity("鼎新A半导体有限公司","dj004","赵六","139****0530"), |
|
|
|
new ReceivablesDetailEntity("鼎新B半导体有限公司","dj005","陈七","136****5333"), |
|
|
|
new ReceivablesDetailEntity("鼎新C半导体有限公司","dj006","刘八","188****9299"), |
|
|
|
new ReceivablesDetailEntity("鼎华A半导体有限公司","dj007","韩九","130****3555"), |
|
|
|
new ReceivablesDetailEntity("鼎华B半导体有限公司","dj008","管十一","138****9999"), |
|
|
|
new ReceivablesDetailEntity("鼎华C半导体有限公司","dj009","谢十二","187****6160")); |
|
|
|
|
|
|
|
|
|
|
|
Long tenantSid = SecurityUtil.getUserProfile().getTenantSid(); |
|
|
|
|
|
|
|
//取出已完成的数据 |
|
|
@ -81,7 +83,7 @@ public class ReceivablesInitialCreateEAIService extends AbsEAIService { |
|
|
|
|
|
|
|
Random random = new Random(); |
|
|
|
//随机新增 |
|
|
|
for (ReceivablesDetailEntity receivablesDetailEntity : this.list) { |
|
|
|
for (ReceivablesDetailEntity receivablesDetailEntity : list) { |
|
|
|
int randomNumber = random.nextInt(100)+1; |
|
|
|
int nextInt = random.nextInt(30)+1; |
|
|
|
int dayInt = random.nextInt(10)+1; |
|
|
@ -102,7 +104,7 @@ public class ReceivablesInitialCreateEAIService extends AbsEAIService { |
|
|
|
receivablesDetailEntity.setOverdueDays(String.valueOf(DateUtils.getDayInterval(new Date(),receivablesDetailEntity.getReceivableDate()))); |
|
|
|
} |
|
|
|
|
|
|
|
receivablesDetailService.saveBatch(this.list); |
|
|
|
receivablesDetailService.saveBatch(list); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|