Merge branch 'v1.6' of github.com:dataease/dataease into v1.6

This commit is contained in:
taojinlong 2022-01-05 21:30:24 +08:00
commit 4de0465ee9
2 changed files with 8 additions and 2 deletions

View File

@ -81,7 +81,12 @@
and v_auth_model.`level` = #{record.level,jdbcType=BIGINT}
</if>
<if test="record.mode != null">
and v_auth_model.`mode` = #{record.mode,jdbcType=BIGINT}
<if test="record.mode == 0">
and v_auth_model.`mode` = 0
</if>
<if test='record.mode == 1 and record.modelType != null and record.modelType == "dataset"'>
and (v_auth_model.`mode` = 1 or (v_auth_model.`model_inner_type` = 'group' and v_auth_model.model_type = 'dataset'))
</if>
</if>
<if test="record.dataSourceId != null">
and v_auth_model.data_source_id = #{record.dataSourceId,jdbcType=VARCHAR}

View File

@ -79,7 +79,8 @@ public abstract class TaskHandler implements InitializingBean {
private String getDayOfWeek(Calendar instance) {
int index = instance.get(Calendar.DAY_OF_WEEK);
return week[index];
index = (index + 1) % 7;
return String.valueOf(index);
}