Browse Source

考核小程序BUg修复

dev-pushdata-important
汤建军 1 year ago
parent
commit
8f7e612003
  1. 14
      blade-service/logpm-supervise/src/main/java/com/logpm/supervise/mapper/IndicatorsMapper.xml

14
blade-service/logpm-supervise/src/main/java/com/logpm/supervise/mapper/IndicatorsMapper.xml

@ -45,15 +45,15 @@
and si.id = #{id} and si.id = #{id}
</select> </select>
<select id="selectMyApiIndicators" resultType="com.logpm.supervise.vo.IndicatorsVO"> <select id="selectMyApiIndicators" resultType="com.logpm.supervise.vo.IndicatorsVO">
SELECT * FROM sup_indicators WHERE is_deleted = 0 and SELECT * FROM sup_indicators WHERE is_deleted = 0 and create_user = #{params.userId}
<if test="param.assessDept != null and param.assessDept != ''" > <if test="params.assessDept != null and params.assessDept != ''" >
and assess_dept = #{param.assessDept} and assess_dept = #{params.assessDept}
</if> </if>
<if test="param.startTime != null and param.startTime != ''" > <if test="params.startTime != null and params.startTime != ''" >
and date_format(create_time,'%y%m%d%') >= date_format(#{param.startTime},'%y%m%d%') and date_format(create_time,'%y%m%d%') >= date_format(#{params.startTime},'%y%m%d%')
</if> </if>
<if test="param.endTime != null and param.endTime != ''" > <if test="params.endTime != null and params.endTime != ''" >
and date_format(create_time,'%y%m%d%') &lt;= date_format(#{param.endTime},'%y%m%d%') and date_format(create_time,'%y%m%d%') &lt;= date_format(#{params.endTime},'%y%m%d%')
</if> </if>
</select> </select>

Loading…
Cancel
Save