Browse Source

[fix]工程管理:

修复产品型号管理的bug
修复 修改数据的时候不显示修改人问题
修改数据库字段错误问题
dev
liuxiaoxu 7 months ago
parent
commit
11b72504f7
  1. 1
      ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysProductModelServiceImpl.java
  2. 6
      ruoyi-admin/src/main/resources/mapper/system/SysProductModelMapper.xml

1
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) public int updateSysProductModel(SysProductModel sysProductModel)
{ {
sysProductModel.setUpdateTime(DateUtils.getNowDate()); sysProductModel.setUpdateTime(DateUtils.getNowDate());
sysProductModel.setUpdateBy(ShiroUtils.getLoginName());
return sysProductModelMapper.updateSysProductModel(sysProductModel); return sysProductModelMapper.updateSysProductModel(sysProductModel);
} }

6
ruoyi-admin/src/main/resources/mapper/system/SysProductModelMapper.xml

@ -23,12 +23,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql id="selectSysProductModelVo"> <sql id="selectSysProductModelVo">
select pid, pcode, equipModel, equipName,engineer,use_status, 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 update_time,remark, photoUrl from sys_product_model
</sql> </sql>
<select id="selectSysProductModelList" parameterType="SysProductModel" resultMap="SysProductModelResult"> <select id="selectSysProductModelList" parameterType="SysProductModel" resultMap="SysProductModelResult">
select s.pid, s.pcode, s.equipModel, s.equipName,s.engineer,s.use_status, 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,file.url as photo_url from sys_product_model as s s.update_time,s.remark, s.photoUrl,file.url as photo_url from sys_product_model as s
left join ( left join (
select select
@ -60,7 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectSysProductModelById" parameterType="Long" resultMap="SysProductModelResult"> <select id="selectSysProductModelById" parameterType="Long" resultMap="SysProductModelResult">
select s.pid, s.pcode, s.equipModel, s.equipName,s.engineer,s.use_status, 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 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 left join sys_attach as att
on s.pid = att.rel_id and att.source_type = 'sysProductModel' and att.source_sub_type = 'photo' on s.pid = att.rel_id and att.source_type = 'sysProductModel' and att.source_sub_type = 'photo'

Loading…
Cancel
Save