Browse Source

Merge remote-tracking branch 'origin/dev_policy_service' into dev_policy_service

master
yinzuomei 3 years ago
parent
commit
c21c7acf52
  1. 5
      epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/IcServiceScopeV2DTO.java
  2. 2
      epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/IcServiceFeedbackV2AddFormDTO.java
  3. 7
      epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/IcServiceRecordV2AddEditFormDTO.java
  4. 4
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/controller/IcServiceFeedbackV2Controller.java
  5. 6
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/controller/IcServiceRecordV2Controller.java
  6. 5
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/entity/IcServiceScopeV2Entity.java
  7. 1
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/IcServiceRecordV2ServiceImpl.java
  8. 1
      epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcServiceFeedbackV2Dao.xml

5
epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/IcServiceScopeV2DTO.java

@ -51,11 +51,6 @@ public class IcServiceScopeV2DTO implements Serializable {
*/
private String objectName;
/**
* 备注
*/
private String remark;
/**
* 乐观锁
*/

2
epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/IcServiceFeedbackV2AddFormDTO.java

@ -41,7 +41,7 @@ public class IcServiceFeedbackV2AddFormDTO implements Serializable {
*/
private String satisfaction;
/**
* 服务状态[服务状态cancel取消closed已关闭underway进行中]
* 服务状态[in_service服务中completed:已完成cancel取消]
*/
private String serviceStatus;
/**

7
epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/IcServiceRecordV2AddEditFormDTO.java

@ -8,6 +8,7 @@ import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
@ -48,7 +49,7 @@ public class IcServiceRecordV2AddEditFormDTO implements Serializable {
/**
* 政策依据Id
*/
private Integer policyId;
private String policyId;
/**
* 经办人姓名
*/
@ -62,13 +63,13 @@ public class IcServiceRecordV2AddEditFormDTO implements Serializable {
*/
@NotNull(message = "起始服务时间不能为空", groups = {AddGroup.class})
@JsonFormat(pattern = "yyyy-MM-dd")
private String serviceTimeStart;
private Date serviceTimeStart;
/**
* 终止服务时间
*/
@NotNull(message = "终止服务时间不能为空", groups = {AddGroup.class})
@JsonFormat(pattern = "yyyy-MM-dd")
private String serviceTimeEnd;
private Date serviceTimeEnd;
/**
* 备注信息
*/

4
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/controller/IcServiceFeedbackV2Controller.java

@ -45,9 +45,9 @@ public class IcServiceFeedbackV2Controller {
}
@NoRepeatSubmit
@PostMapping("save")
@PostMapping("add")
public Result save(@LoginUser TokenDto tokenDto, @RequestBody IcServiceFeedbackV2AddFormDTO formDTO) {
ValidatorUtils.validateEntity(formDTO, UpdateGroup.class);
ValidatorUtils.validateEntity(formDTO, AddGroup.class);
formDTO.setCustomerId(tokenDto.getCustomerId());
formDTO.setUserId(tokenDto.getUserId());
icServiceFeedbackV2Service.save(formDTO);

6
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/controller/IcServiceRecordV2Controller.java

@ -48,9 +48,9 @@ public class IcServiceRecordV2Controller {
}
@NoRepeatSubmit
@PostMapping("save")
@PostMapping("add")
public Result save(@LoginUser TokenDto tokenDto, @RequestBody IcServiceRecordV2AddEditFormDTO formDTO) {
ValidatorUtils.validateEntity(formDTO, UpdateGroup.class);
ValidatorUtils.validateEntity(formDTO, AddGroup.class);
formDTO.setCustomerId(tokenDto.getCustomerId());
formDTO.setUserId(tokenDto.getUserId());
icServiceRecordV2Service.save(formDTO);
@ -58,7 +58,7 @@ public class IcServiceRecordV2Controller {
}
@NoRepeatSubmit
@PostMapping("update")
@PostMapping("edit")
public Result update(@RequestBody IcServiceRecordV2AddEditFormDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);

5
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/entity/IcServiceScopeV2Entity.java

@ -51,9 +51,4 @@ public class IcServiceScopeV2Entity extends BaseEpmetEntity {
*/
private String objectName;
/**
* 备注
*/
private String remark;
}

1
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/IcServiceRecordV2ServiceImpl.java

@ -125,6 +125,7 @@ public class IcServiceRecordV2ServiceImpl extends BaseServiceImpl<IcServiceRecor
scope.setObjectName(scopeObjectIdPathAndName[1]);
scopeList.add(scope);
});
icServiceScopeV2Service.insertBatch(scopeList);
//3.新增服务反馈数据feedback
if(null != formDTO.getFeedback()){

1
epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcServiceFeedbackV2Dao.xml

@ -57,6 +57,7 @@
FROM ic_service_feedback_v2 sf
LEFT JOIN heart_attachment ha ON ha.business_id = sf.ID AND ha.del_flag = '0'
WHERE sf.SERVICE_RECORD_ID = #{serviceRecordId}
AND sf.del_flag = '0'
</select>

Loading…
Cancel
Save