| | |
| | | a.company_id, |
| | | a.clause_num, |
| | | a.choose_lab, |
| | | a.dept_name, |
| | | a.create_by, |
| | | a.create_time, |
| | | a.update_by, |
| | | a.update_time |
| | | from sys_functional_distribution a |
| | | left join sys_dept b on a.dept_id = b.id |
| | | left join sys_dept b on a.dept_id = b.dept_id |
| | | where 1=1 and a.company_id = #{companyId} |
| | | order by a.clause_num asc |
| | | |
| | |
| | | <foreach collection="list" item="item" separator=";"> |
| | | update sys_functional_distribution |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="item.score != null">choose_lab = #{item.chooseLab},</if> |
| | | <if test="item.chooseLab != null">choose_lab = #{item.chooseLab},</if> |
| | | <if test="item.updateBy != null">update_by = #{item.updateBy},</if> |
| | | <if test="item.updateTime != null">update_time = #{item.updateTime},</if> |
| | | </trim> |
| | |
| | | </foreach> |
| | | </update> |
| | | |
| | | <delete id="delByCompanyId" parameterType="Long"> |
| | | delete from sys_functional_distribution where company_id = #{companyId} |
| | | </delete> |
| | | |
| | | </mapper> |