|
@@ -85,7 +85,8 @@ public class TaOfficeContactController extends BaseController {
|
85
|
85
|
// 主键格式 20200611001 日期 + 数字, 数字 3 位, 前面补 0
|
86
|
86
|
String today = DateUtils.todayCompact();
|
87
|
87
|
Integer no = dbUtils.nextVal(SEQ_PREFIX + "-" + today);
|
88
|
|
- taOfficeContact.setSerialNo(StringUtils.lpad(no.toString(), "0", 3));
|
|
88
|
+ String serialNo = today + StringUtils.lpad(no.toString(), "0", 3);
|
|
89
|
+ taOfficeContact.setSerialNo(serialNo);
|
89
|
90
|
taOfficeContact.setCreateDate(LocalDateTime.now());
|
90
|
91
|
taOfficeContact.setStatus(2); // 待跟进
|
91
|
92
|
if (iTaOfficeContactService.save(taOfficeContact)){
|