<select id="selectByParam" parameterType="com.model.TmallUpkeepPeriodDO"
resultMap="BaseResultMap">
select <include refid="Base_Column_List" />
from upkeep_period WHERE 1=1
<if test="id != null and id != 0">
and id = #{id}
</if>
<if test="acId != null">
and ac_id = #{acId}
</if>
<if test="upkeepCode != null">
and upkeep_code = #{upkeepCode}
</if>
<if test="isDeleted != null">
and is_deleted = #{isDeleted}
</if>
</select>
- 创建对象千万别用