Browse Source

[fix]

销售管理 客户资料 客户基本信息
修改其他送货地址service添加和更新接口,新增录入时间、更新时间、更新人信息字段;
修改其他联系人service添加记录接口,修改第一次添加时间赋值,新增录入时间、更新时间、更新人信息;
修改其他开票信息列表页面,新增录入人、录入时间、更新时间表格列;
dev
王晓迪 3 months ago
parent
commit
3a5ac7f3aa
  1. 6
      ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysContactsServiceImpl.java
  2. 4
      ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysShippingAddressServiceImpl.java
  3. 12
      ruoyi-admin/src/main/resources/templates/system/invoice/invoice.html

6
ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysContactsServiceImpl.java

@ -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);
}

4
ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysShippingAddressServiceImpl.java

@ -1,6 +1,7 @@
package com.ruoyi.system.service.impl;
import com.ruoyi.common.core.text.Convert;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.ShiroUtils;
import com.ruoyi.system.domain.SysShippingAddress;
import com.ruoyi.system.mapper.SysShippingAddressMapper;
@ -57,6 +58,7 @@ public class SysShippingAddressServiceImpl implements ISysShippingAddressService
{
String loginName = ShiroUtils.getLoginName();
sysShippingAddress.setCreateBy(loginName);
sysShippingAddress.setCreateTime(DateUtils.getNowDate());
int id = sysShippingAddressMapper.insertSysShippingAddress(sysShippingAddress);
sysShippingAddress.getDeliveryId();
return id;
@ -71,6 +73,8 @@ public class SysShippingAddressServiceImpl implements ISysShippingAddressService
@Override
public int updateSysShippingAddress(SysShippingAddress sysShippingAddress)
{
sysShippingAddress.setUpdateBy(ShiroUtils.getLoginName());
sysShippingAddress.setUpdateTime(DateUtils.getNowDate());
return sysShippingAddressMapper.updateSysShippingAddress(sysShippingAddress);
}

12
ruoyi-admin/src/main/resources/templates/system/invoice/invoice.html

@ -93,6 +93,18 @@
title: '公司开户账号',
field: 'bankAccount',
},
{
title: '录入人',
field: 'createBy',
},
{
title: '录入时间',
field: 'createTime',
},
{
title: '更新时间',
field: 'updateTime',
},
{
title: '操作',
align: 'center',

Loading…
Cancel
Save