| | |
| | | <insert id="saveBusinessRepairUserInfo" parameterType="Map"> |
| | | insert into business_repair_user( |
| | | operate,context,repair_id,ru_id,state,community_id,b_id,staff_id,staff_name,pre_staff_id, |
| | | pre_staff_name,repair_event,end_time |
| | | pre_staff_name,repair_event,end_time,start_time |
| | | ) values ( |
| | | #{operate},#{context},#{repairId},#{ruId},#{state},#{communityId},#{bId},#{staffId}, |
| | | #{staffName},#{preStaffId},#{preStaffName},#{repairEvent},#{endTime} |
| | | #{staffName},#{preStaffId},#{preStaffName},#{repairEvent},#{endTime},#{startTime} |
| | | ) |
| | | </insert> |
| | | |
| | |
| | | <if test="preStaffId !=null and preStaffId != ''"> |
| | | and t.pre_staff_id= #{preStaffId} |
| | | </if> |
| | | order by t.create_time |
| | | order by t.start_time |
| | | <if test="page != -1 and page != null "> |
| | | limit #{page}, #{row} |
| | | </if> |
| | |
| | | return getFormatTimeString(new Date(), pattern); |
| | | } |
| | | |
| | | public static String getLastTime(){ |
| | | public static String getLastTime() { |
| | | return LAST_TIME; |
| | | } |
| | | |
| | |
| | | import org.springframework.http.HttpMethod; |
| | | import org.springframework.http.ResponseEntity; |
| | | |
| | | import java.util.Calendar; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | // 自己的单子状态修改为转单 |
| | | RepairUserPo repairUserPo = new RepairUserPo(); |
| | | repairUserPo.setRuId("-1"); |
| | | repairUserPo.setStartTime(DateUtil.getNow(DateUtil.DATE_FORMATE_STRING_A)); |
| | | repairUserPo.setEndTime(DateUtil.getNow(DateUtil.DATE_FORMATE_STRING_A)); |
| | | repairUserPo.setState(RepairUserDto.STATE_TRANSFER); |
| | | repairUserPo.setRepairId(reqJson.getString("repairId")); |
| | |
| | | //处理人信息 |
| | | repairUserPo = new RepairUserPo(); |
| | | repairUserPo.setRuId("-2"); |
| | | Calendar calendar = Calendar.getInstance(); |
| | | calendar.setTime(new Date()); |
| | | calendar.add(Calendar.SECOND, 30); |
| | | repairUserPo.setStartTime(DateUtil.getFormatTimeString(calendar.getTime(), DateUtil.DATE_FORMATE_STRING_A)); |
| | | repairUserPo.setState(RepairUserDto.STATE_DOING); |
| | | repairUserPo.setRepairId(reqJson.getString("repairId")); |
| | | repairUserPo.setStaffId(reqJson.getString("staffId")); |