| | |
| | | <if test="query.status != null"> |
| | | and tcc.status = #{query.status} |
| | | </if> |
| | | <if test="query.userId != null and query.userId == 2"> |
| | | and tcc.branch_id = #{query.userId} |
| | | <if test="query.branchId != null and query.userId == 2"> |
| | | and tcc.branch_id = #{query.branchId} |
| | | </if> |
| | | <if test="query.userId != null and query.userId == 3"> |
| | | and tcc.salesperson_id = #{query.userId} |
| | | <if test="query.salespersonId != null and query.userId == 3"> |
| | | and tcc.salesperson_id = #{query.salespersonId} |
| | | </if> |
| | | AND tcc.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |