|
|
|
@ -56,16 +56,16 @@ public class CustomServiceImpl extends ServiceImpl<CustomMapper, Custom> impleme
|
|
|
|
|
public void customRegister(Custom custom,List<CustomSupport> customSupports){
|
|
|
|
|
String uuid = UUID.randomUUID().toString();
|
|
|
|
|
custom.setId(uuid);
|
|
|
|
|
custom.setCreateDate(LocalDateTime.now());
|
|
|
|
|
custom.setModifyDate(LocalDateTime.now());
|
|
|
|
|
custom.setCreateDate( new Date());
|
|
|
|
|
custom.setModifyDate( new Date());
|
|
|
|
|
custom.setStatusCode("todo");
|
|
|
|
|
customMapper.insert(custom);
|
|
|
|
|
if(customSupports.size()>0){
|
|
|
|
|
for(CustomSupport customSupport:customSupports){
|
|
|
|
|
String id = UUID.randomUUID().toString();
|
|
|
|
|
customSupport.setId(id);
|
|
|
|
|
customSupport.setCreateDate(LocalDateTime.now());
|
|
|
|
|
customSupport.setModifyDate(LocalDateTime.now());
|
|
|
|
|
customSupport.setCreateDate( new Date());
|
|
|
|
|
customSupport.setModifyDate( new Date());
|
|
|
|
|
customSupport.setCustomId(uuid);
|
|
|
|
|
customSupportMapper.insert(customSupport);
|
|
|
|
|
}
|
|
|
|
@ -141,7 +141,7 @@ public class CustomServiceImpl extends ServiceImpl<CustomMapper, Custom> impleme
|
|
|
|
|
|
|
|
|
|
Custom custom = new Custom();
|
|
|
|
|
custom.setId(customId);
|
|
|
|
|
custom.setModifyDate(LocalDateTime.now());
|
|
|
|
|
custom.setModifyDate( new Date());
|
|
|
|
|
custom.setCopycatId(userId);
|
|
|
|
|
custom.setStatusCode("disable");
|
|
|
|
|
customMapper.updateById(custom);
|
|
|
|
@ -156,7 +156,7 @@ public class CustomServiceImpl extends ServiceImpl<CustomMapper, Custom> impleme
|
|
|
|
|
|
|
|
|
|
Custom custom = new Custom();
|
|
|
|
|
custom.setId(customId);
|
|
|
|
|
custom.setModifyDate(LocalDateTime.now());
|
|
|
|
|
custom.setModifyDate( new Date());
|
|
|
|
|
custom.setCopycatId(userId);
|
|
|
|
|
customMapper.updateById(custom);
|
|
|
|
|
}
|
|
|
|
@ -169,7 +169,7 @@ public class CustomServiceImpl extends ServiceImpl<CustomMapper, Custom> impleme
|
|
|
|
|
|
|
|
|
|
Custom custom = new Custom();
|
|
|
|
|
custom.setId(customId);
|
|
|
|
|
custom.setModifyDate(LocalDateTime.now());
|
|
|
|
|
custom.setModifyDate( new Date());
|
|
|
|
|
custom.setNotice(notice);
|
|
|
|
|
custom.setNoticeContent(noticeContent);
|
|
|
|
|
customMapper.updateById(custom);
|
|
|
|
@ -183,15 +183,12 @@ public class CustomServiceImpl extends ServiceImpl<CustomMapper, Custom> impleme
|
|
|
|
|
|
|
|
|
|
Custom custom = new Custom();
|
|
|
|
|
custom.setId(customId);
|
|
|
|
|
custom.setModifyDate(LocalDateTime.now());
|
|
|
|
|
custom.setModifyDate( new Date());
|
|
|
|
|
custom.setBusinessLicense(businessLicense);
|
|
|
|
|
custom.setSocialCreditCode(socialCreditCode);
|
|
|
|
|
custom.setStatusCode("enable");
|
|
|
|
|
Instant serviceBeginDateIn = Instant.ofEpochMilli(serviceBeginDate);
|
|
|
|
|
Instant serviceEndDateIn = Instant.ofEpochMilli(serviceEndDate);
|
|
|
|
|
ZoneId zone = ZoneId.systemDefault();
|
|
|
|
|
custom.setServiceBeginDate(LocalDateTime.ofInstant(serviceBeginDateIn, zone));
|
|
|
|
|
custom.setServiceEndDate(LocalDateTime.ofInstant(serviceEndDateIn, zone));
|
|
|
|
|
custom.setServiceBeginDate(new Date(serviceBeginDate));
|
|
|
|
|
custom.setServiceEndDate(new Date(serviceEndDate));
|
|
|
|
|
customMapper.updateById(custom);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|