| | |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="existsEntity" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from sta_assembly_work_last |
| | | where user_id = #{userId,jdbcType=BIGINT} |
| | | and station_id = #{stationId,jdbcType=BIGINT} |
| | | <choose> |
| | | <when test="planId != null"> |
| | | and plan_id = #{planId,jdbcType=BIGINT} |
| | | </when> |
| | | <otherwise> |
| | | and plan_id is null |
| | | </otherwise> |
| | | </choose> |
| | | <choose> |
| | | <when test="processId != null"> |
| | | and process_id = #{processId,jdbcType=BIGINT} |
| | | </when> |
| | | <otherwise> |
| | | and process_id is null |
| | | </otherwise> |
| | | </choose> |
| | | <choose> |
| | | <when test="nodeId != null"> |
| | | and node_id = #{nodeId,jdbcType=BIGINT} |
| | | </when> |
| | | <otherwise> |
| | | and node_id is null |
| | | </otherwise> |
| | | </choose> |
| | | and work_type = #{workType,jdbcType=TINYINT} |
| | | <if test="id != null"> |
| | | and id != #{id,jdbcType=BIGINT} |
| | | </if> |
| | | </select> |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
| | | delete |
| | | from sta_assembly_work_last |