|
|
@ -24,15 +24,15 @@ |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="getDepartmentList" resultMap="BaseResultMap"> |
|
|
<select id="getDepartmentList" resultMap="BaseResultMap"> |
|
|
<!--@mbg.generated--> |
|
|
<!--@mbg.generated--> |
|
|
select |
|
|
|
|
|
<include refid="Base_Column_List"/> |
|
|
|
|
|
from department |
|
|
|
|
|
|
|
|
select A.id,A.site,A.department_no,A.department_desc,A.active,A.created_by,A.created_date,A.remark,A.update_by |
|
|
|
|
|
,A.updated_date,A.delflag,A.version |
|
|
|
|
|
from department A |
|
|
<where> |
|
|
<where> |
|
|
<if test="site != null"> |
|
|
<if test="site != null"> |
|
|
and site=#{site,jdbcType=VARCHAR} |
|
|
|
|
|
|
|
|
and A.site=#{site,jdbcType=VARCHAR} |
|
|
</if> |
|
|
</if> |
|
|
<if test="active != null"> |
|
|
<if test="active != null"> |
|
|
and active=#{active,jdbcType=CHAR} |
|
|
|
|
|
|
|
|
and A.active=#{active,jdbcType=CHAR} |
|
|
</if> |
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
</select> |
|
|
</select> |
|
|
|