diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysProductModelServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysProductModelServiceImpl.java index 49285071..c5bdc358 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysProductModelServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysProductModelServiceImpl.java @@ -108,6 +108,7 @@ public class SysProductModelServiceImpl implements ISysProductModelService public int updateSysProductModel(SysProductModel sysProductModel) { sysProductModel.setUpdateTime(DateUtils.getNowDate()); + sysProductModel.setUpdateBy(ShiroUtils.getLoginName()); return sysProductModelMapper.updateSysProductModel(sysProductModel); } diff --git a/ruoyi-admin/src/main/resources/mapper/system/SysProductModelMapper.xml b/ruoyi-admin/src/main/resources/mapper/system/SysProductModelMapper.xml index 2eba77a8..bdde7309 100644 --- a/ruoyi-admin/src/main/resources/mapper/system/SysProductModelMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/system/SysProductModelMapper.xml @@ -23,12 +23,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" select pid, pcode, equipModel, equipName,engineer,use_status, - specification, differences, create_by, create_time, udpate_by, + specification, differences, create_by, create_time, update_by, update_time,remark, photoUrl from sys_product_model select s.pid, s.pcode, s.equipModel, s.equipName,s.engineer,s.use_status, - s.specification, s.differences, s. create_by, s.create_time, s.udpate_by, + s.specification, s.differences, s. create_by, s.create_time, s.update_by, s.update_time,s.remark, s.photoUrl,att.id as photo_attach_id from sys_product_model as s left join sys_attach as att on s.pid = att.rel_id and att.source_type = 'sysProductModel' and att.source_sub_type = 'photo'