刘小明
2024-08-30 5b207a55bdd10f1516031f629217daac069b64fd
pms-parent/pms-global/src/main/resources/mapper/PrScheduleMapper.xml
@@ -47,13 +47,13 @@
      <if test="userId != null">
        user_id,
      </if>
      <if test="scheduleDate != null">
      <if test="scheduleDate != null and scheduleDate !=''">
        schedule_date,
      </if>
      <if test="deleted != null">
        deleted,
      </if>
      <if test="dt != null">
      <if test="dt != null and dt !=''">
        dt,
      </if>
    </trim>
@@ -64,13 +64,13 @@
      <if test="userId != null">
        #{userId,jdbcType=BIGINT},
      </if>
      <if test="scheduleDate != null">
      <if test="scheduleDate != null  and scheduleDate !=''">
        #{scheduleDate,jdbcType=VARCHAR},
      </if>
      <if test="deleted != null">
        #{deleted,jdbcType=TINYINT},
      </if>
      <if test="dt != null">
      <if test="dt != null and dt !=''">
        #{dt,jdbcType=TIMESTAMP},
      </if>
    </trim>
@@ -82,7 +82,7 @@
      <if test="userId != null">
        user_id = #{userId,jdbcType=BIGINT},
      </if>
      <if test="scheduleDate != null">
      <if test="scheduleDate != null  and scheduleDate !=''">
        schedule_date = #{scheduleDate,jdbcType=VARCHAR},
      </if>
      <if test="deleted != null">
@@ -107,7 +107,7 @@
    <if test="userId != null">
      and user_id = #{userId,jdbcType=BIGINT}
    </if>
    <if test="scheduleDate != null">
    <if test="scheduleDate != null  and scheduleDate !=''">
      and schedule_date = #{scheduleDate,jdbcType=VARCHAR}
    </if>
  </select>
@@ -120,7 +120,7 @@
    <if test="userId != null">
      and user_id = #{userId}
    </if>
    <if test="scheduleDate != null">
    <if test="scheduleDate != null  and scheduleDate !=''">
      and schedule_date = #{scheduleDate}
    </if>
  </select>
@@ -133,8 +133,9 @@
    <if test="userId != null">
      and user_id = #{userId}
    </if>
    <if test="scheduleDate != null">
    <if test="scheduleDate != null  and scheduleDate !=''">
      and schedule_date = #{scheduleDate}
    </if>
    order by schedule_date desc
  </select>
</mapper>