Helius
2021-01-21 a27768e7b484cc20bf0dcdb699318ae9725e0dd8
zq-erp/src/main/resources/mybatis/mapper/hive/SysProjUseDao.xml
@@ -375,7 +375,7 @@
                and a.FAIL_TIME = #{record.failTime}
            </if>
            <if test="record.targetFailTime != null  ">
                and date_format(#{record.failTime}, '%Y-%m-%d') > date_format(a.FAIL_TIME, '%Y-%m-%d')
                and date_format(#{record.targetFailTime}, '%Y-%m-%d') > date_format(a.FAIL_TIME, '%Y-%m-%d')
            </if>
            <if test="record.price != null and record.price !='' ">
                and a.PRICE = #{record.price}
@@ -510,10 +510,13 @@
    <!-- 根据id查询 -->
    <select id="selectById" resultMap="SysProjUseMap">
      select  *
      from sys_proj_use
      select a.*,
        b.TIME_LENGTH,
        b.img
        from sys_proj_use a
        left join shopping_goods b on a.proj_id=b.id
      where
      id=#{id}
      a.id=#{id}
   </select>
    <!-- 根据id查询 -->