|
|
@ -4,6 +4,7 @@ import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import com.ruoyi.common.core.domain.entity.SysUser; |
|
|
|
import com.ruoyi.common.utils.DateUtils; |
|
|
|
import com.ruoyi.common.utils.ShiroUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
@ -63,7 +64,8 @@ public class SysContactsServiceImpl implements ISysContactsService |
|
|
|
public int insertSysContacts(SysContacts sysContacts) |
|
|
|
{ |
|
|
|
String loginName = ShiroUtils.getLoginName(); |
|
|
|
sysContacts.setFirstAddTime(String.valueOf(new Date().getTime())); |
|
|
|
sysContacts.setFirstAddTime(String.valueOf(DateUtils.getNowDate())); |
|
|
|
sysContacts.setCreateTime(DateUtils.getNowDate()); |
|
|
|
sysContacts.setCreateBy(loginName); |
|
|
|
int id = sysContactsMapper.insertSysContacts(sysContacts); |
|
|
|
sysContacts.getContactid(); |
|
|
@ -79,6 +81,8 @@ public class SysContactsServiceImpl implements ISysContactsService |
|
|
|
@Override |
|
|
|
public int updateSysContacts(SysContacts sysContacts) |
|
|
|
{ |
|
|
|
sysContacts.setUpdateBy(ShiroUtils.getLoginName()); |
|
|
|
sysContacts.setUpdateTime(DateUtils.getNowDate()); |
|
|
|
return sysContactsMapper.updateSysContacts(sysContacts); |
|
|
|
} |
|
|
|
|
|
|
|