java110
2023-05-30 f14c50cb0036d3ddd655ce4e34732ba396a836c4
java110-db/src/main/resources/mapper/store/ScheduleClassesV1ServiceDaoImplMapper.xml
@@ -19,8 +19,11 @@
    <select id="getScheduleClassesInfo" parameterType="Map" resultType="Map">
        select t.schedule_type,t.schedule_type scheduleType,t.schedule_cycle,t.schedule_cycle
        scheduleCycle,t.compute_time,t.compute_time computeTime,t.name,t.remark,t.status_cd,t.status_cd
        statusCd,t.state,t.store_id,t.store_id storeId,t.schedule_id,t.schedule_id scheduleId
        statusCd,t.state,t.store_id,t.store_id storeId,t.schedule_id,t.schedule_id scheduleId,
        td.name scheduleTypeName,td1.name stateName,t.create_time createTime
        from schedule_classes t
        left join t_dict td on t.schedule_type =  td.status_cd and td.table_name = 'schedule_classes' and td.table_columns = 'schedule_type'
        left join t_dict td1 on t.state =  td1.status_cd and td1.table_name = 'schedule_classes' and td1.table_columns = 'state'
        where 1 =1
        <if test="scheduleType !=null and scheduleType != ''">
            and t.schedule_type= #{scheduleType}
@@ -33,6 +36,9 @@
        </if>
        <if test="name !=null and name != ''">
            and t.name= #{name}
        </if>
        <if test="nameLike !=null and nameLike != ''">
            and t.name like concat('%',#{name},'%')
        </if>
        <if test="remark !=null and remark != ''">
            and t.remark= #{remark}
@@ -108,6 +114,9 @@
        <if test="name !=null and name != ''">
            and t.name= #{name}
        </if>
        <if test="nameLike !=null and nameLike != ''">
            and t.name like concat('%',#{name},'%')
        </if>
        <if test="remark !=null and remark != ''">
            and t.remark= #{remark}
        </if>