| | |
| | | |
| | | <select id="getList" resultType="com.panzhihua.common.model.dtos.partybuilding.NeedProblemClaimDTO"> |
| | | SELECT |
| | | <include refid="Base_Column_List" /> |
| | | nfnpc.id, |
| | | nfnpc.task_id, |
| | | nfnpc.user_id, |
| | | su.name as userNmae, |
| | | su.image_url as userImage, |
| | | nfnpc.punch_start_time, |
| | | nfnpc.punch_end_time, |
| | | nfnpc.service_time, |
| | | nfnpc.unit_id, |
| | | nfnpc.creation_time, |
| | | nfnpc.update_time |
| | | FROM |
| | | new_fight_need_problem_claim |
| | | new_fight_need_problem_claim as nfnpc |
| | | LEFT JOIN sys_user ON su.user_id=nfnpc.user_id |
| | | <where> |
| | | 1=1 |
| | | <if test="taskId !=null and taskId != '' "> |
| | | and task_id =#{taskId} |
| | | and nfnpc.task_id =#{taskId} |
| | | </if> |
| | | <if test="userId !=null and userId != '' "> |
| | | and user_id =#{userId} |
| | | and nfnpc.user_id =#{userId} |
| | | </if> |
| | | <if test="unitId !=null and unitId != '' "> |
| | | and unit_id =#{unitId} |
| | | and nfnpc.unit_id =#{unitId} |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | |
| | | <select id="getDetails" resultType="com.panzhihua.common.model.dtos.partybuilding.NeedProblemClaimDTO"> |
| | | SELECT |
| | | <include refid="Base_Column_List" /> |
| | | nfnpc.id, |
| | | nfnpc.task_id, |
| | | nfnpc.user_id, |
| | | su.name as userNmae, |
| | | su.image_url as userImage, |
| | | nfnpc.punch_start_time, |
| | | nfnpc.punch_end_time, |
| | | nfnpc.service_time, |
| | | nfnpc.unit_id, |
| | | nfnpc.creation_time, |
| | | nfnpc.update_time |
| | | FROM |
| | | new_fight_need_problem_claim |
| | | new_fight_need_problem_claim as nfnpc |
| | | LEFT JOIN sys_user ON su.user_id=nfnpc.user_id |
| | | <where> |
| | | 1=1 |
| | | <if test="id !=null and id != '' "> |
| | | and id =#{id} |
| | | and nfnpc.id =#{id} |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | |
| | | <select id="getUserIdDetails" resultType="com.panzhihua.common.model.dtos.partybuilding.NeedProblemClaimDTO"> |
| | | SELECT |
| | | <include refid="Base_Column_List" /> |
| | | nfnpc.id, |
| | | nfnpc.task_id, |
| | | nfnpc.user_id, |
| | | su.name as userNmae, |
| | | su.image_url as userImage, |
| | | nfnpc.punch_start_time, |
| | | nfnpc.punch_end_time, |
| | | nfnpc.service_time, |
| | | nfnpc.unit_id, |
| | | nfnpc.creation_time, |
| | | nfnpc.update_time |
| | | FROM |
| | | new_fight_need_problem_claim |
| | | new_fight_need_problem_claim as nfnpc |
| | | LEFT JOIN sys_user ON su.user_id=nfnpc.user_id |
| | | <where> |
| | | 1=1 |
| | | <if test="taskId !=null and taskId != '' "> |
| | | and task_id =#{taskId} |
| | | and nfnpc.task_id =#{taskId} |
| | | </if> |
| | | <if test="userId !=null and userId != '' "> |
| | | and user_id =#{userId} |
| | | and nfnpc.user_id =#{userId} |
| | | </if> |
| | | </where> |
| | | LIMIT 1 |