|
|
|
@ -17,6 +17,7 @@ import org.springframework.transaction.annotation.Transactional; |
|
|
|
import java.text.ParseException; |
|
|
|
import java.text.ParseException; |
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
import java.time.LocalDateTime; |
|
|
|
import java.time.LocalDateTime; |
|
|
|
|
|
|
|
import java.time.format.DateTimeFormatter; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.Date; |
|
|
|
|
|
|
|
|
|
|
|
@Service |
|
|
|
@Service |
|
|
|
@ -47,7 +48,12 @@ public class HotService extends ServiceImpl<HotMapper, Hot> { |
|
|
|
hot.setContactPhone(mailBo.getString("contactPhone")); |
|
|
|
hot.setContactPhone(mailBo.getString("contactPhone")); |
|
|
|
hot.setContactIdCard(mailBo.getString("contactIdCard")); |
|
|
|
hot.setContactIdCard(mailBo.getString("contactIdCard")); |
|
|
|
hot.setContent(mailBo.getString("content")); |
|
|
|
hot.setContent(mailBo.getString("content")); |
|
|
|
hot.setPhoneTime(LocalDateTime.parse(mailBo.getString("phoneTime"))); |
|
|
|
DateTimeFormatter dateFormat = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); |
|
|
|
|
|
|
|
if (mailBo.getString("phoneTime").equals("")||mailBo.getString("phoneTime")==null){ |
|
|
|
|
|
|
|
hot.setPhoneTime(null); |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
hot.setPhoneTime(LocalDateTime.parse(mailBo.getString("phoneTime"),dateFormat)); |
|
|
|
|
|
|
|
} |
|
|
|
hot.setContactType(mailBo.getString("contactType")); |
|
|
|
hot.setContactType(mailBo.getString("contactType")); |
|
|
|
hot.setCaseType(mailBo.getString("caseType")); |
|
|
|
hot.setCaseType(mailBo.getString("caseType")); |
|
|
|
hot.setSource(mailBo.getString("source")); |
|
|
|
hot.setSource(mailBo.getString("source")); |
|
|
|
|