diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/clz/MaterialLeaseInfoMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/clz/MaterialLeaseInfoMapper.xml index fbc0400e..fdd5665d 100644 --- a/bonus-modules/bonus-material/src/main/resources/mapper/material/clz/MaterialLeaseInfoMapper.xml +++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/clz/MaterialLeaseInfoMapper.xml @@ -875,7 +875,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" mt.type_name as typeName, mm.ma_id as maId, mm.ma_code as maCode, - lod.create_by as outPerson, + su.nick_name as outPerson, lod.create_time as outTime FROM clz_lease_out_details lod @@ -884,6 +884,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" AND mt.del_flag = '0' LEFT JOIN ma_type mt1 ON mt.parent_id = mt1.type_id AND mt1.del_flag = '0' + LEFT JOIN sys_user su on su.user_id=lod.create_by WHERE lod.parent_id = #{parentId} and mt.type_id = #{typeId} @@ -1194,5 +1195,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" WHERE lod.parent_id = #{id} AND lod.type_id = #{typeId} + AND su.sign_type IS NOT NULL + AND su.sign_url IS NOT NULL \ No newline at end of file diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/clz/MaterialMachineMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/clz/MaterialMachineMapper.xml index 186d15fa..0a28d824 100644 --- a/bonus-modules/bonus-material/src/main/resources/mapper/material/clz/MaterialMachineMapper.xml +++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/clz/MaterialMachineMapper.xml @@ -344,7 +344,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" FROM bm_unit WHERE bzz_idcard = #{username} - LIMIT 1