Browse Source

Merge remote-tracking branch 'origin/dev_ic_v2' into develop

master
zxc 4 years ago
parent
commit
3f9dd86ee8
  1. 22
      epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/form/CancelAppointmentFormDTO.java
  2. 3
      epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/AppointmentRecordResultDTO.java
  3. 13
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/IcPartyServiceCenterController.java
  4. 8
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/IcPartyServiceCenterService.java
  5. 11
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/IcPartyServiceCenterServiceImpl.java
  6. 3
      epmet-module/gov-org/gov-org-server/src/main/resources/mapper/IcMatterAppointmentRecordDao.xml

22
epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/form/CancelAppointmentFormDTO.java

@ -0,0 +1,22 @@
package com.epmet.dto.form;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
/**
* @Author zxc
* @DateTime 2021/11/26 5:19 下午
* @DESC
*/
@Data
public class CancelAppointmentFormDTO implements Serializable {
private static final long serialVersionUID = 8646430374802086292L;
public interface CancelAppointmentForm{}
@NotBlank(message = "recordId不能为空",groups = CancelAppointmentForm.class)
private String recordId;
}

3
epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/AppointmentRecordResultDTO.java

@ -40,6 +40,8 @@ public class AppointmentRecordResultDTO implements Serializable {
*/
private String remark;
private String recordId;
/**
* 预约时间
*/
@ -55,5 +57,6 @@ public class AppointmentRecordResultDTO implements Serializable {
this.appointmentPhone = "";
this.remark = "";
this.appointmentTime = new ArrayList<>();
this.recordId = "";
}
}

13
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/controller/IcPartyServiceCenterController.java

@ -190,4 +190,17 @@ public class IcPartyServiceCenterController {
return new Result<List<AppointmentRecordResultDTO>>().ok(icPartyServiceCenterService.appointmentRecord(formDTO));
}
/**
* @Description 取消预约
* @param formDTO
* @author zxc
* @date 2021/11/26 5:21 下午
*/
@PostMapping("cancelappointment")
public Result cancelAppointment(@RequestBody CancelAppointmentFormDTO formDTO){
ValidatorUtils.validateEntity(formDTO,CancelAppointmentFormDTO.CancelAppointmentForm.class);
icPartyServiceCenterService.cancelAppointment(formDTO);
return new Result();
}
}

8
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/IcPartyServiceCenterService.java

@ -158,4 +158,12 @@ public interface IcPartyServiceCenterService extends BaseService<IcPartyServiceC
*/
List<AppointmentRecordResultDTO> appointmentRecord(AppointmentRecordFormDTO formDTO);
/**
* @Description 取消预约
* @param formDTO
* @author zxc
* @date 2021/11/26 5:21 下午
*/
void cancelAppointment(CancelAppointmentFormDTO formDTO);
}

11
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/IcPartyServiceCenterServiceImpl.java

@ -394,6 +394,17 @@ public class IcPartyServiceCenterServiceImpl extends BaseServiceImpl<IcPartyServ
return result;
}
/**
* @Description 取消预约
* @param formDTO
* @author zxc
* @date 2021/11/26 5:21 下午
*/
@Override
public void cancelAppointment(CancelAppointmentFormDTO formDTO) {
matterAppointmentRecordDao.deleteById(formDTO.getRecordId());
}
public List<TimeDTO> getTimeList(String start,String end,Integer interval){
List<TimeDTO> result = new ArrayList<>();
List<String> intervalTimeList = getIntervalTimeList(start, end, interval);

3
epmet-module/gov-org/gov-org-server/src/main/resources/mapper/IcMatterAppointmentRecordDao.xml

@ -10,7 +10,8 @@
ar.APPOINTMENT_PHONE,
ar.REMARK,
ar.TIME_ID,
cm.MATTER_NAME
cm.MATTER_NAME,
ar.ID AS recordId
FROM ic_matter_appointment_record ar
LEFT JOIN ic_party_service_center_matter cm ON (cm.ID = ar.MATTER_ID AND cm.DEL_FLAG = 0)
WHERE ar.DEL_FLAG = 0

Loading…
Cancel
Save