|
@ -436,6 +436,9 @@ public class IcUserDemandRecServiceImpl extends BaseServiceImpl<IcUserDemandRecD |
|
|
} |
|
|
} |
|
|
// 2、pc完成情况:完成+评价
|
|
|
// 2、pc完成情况:完成+评价
|
|
|
if(UserDemandConstant.FINISH_AND_EVALUATE.equals(formDTO.getType())){ |
|
|
if(UserDemandConstant.FINISH_AND_EVALUATE.equals(formDTO.getType())){ |
|
|
|
|
|
|
|
|
|
|
|
if(StringUtils.isNotBlank(formDTO.getFinishResult())){ |
|
|
|
|
|
// 评价
|
|
|
//2.1、插入评价得分记录
|
|
|
//2.1、插入评价得分记录
|
|
|
IcUserDemandSatisfactionEntity satisfactionEntity=ConvertUtils.sourceToTarget(formDTO,IcUserDemandSatisfactionEntity.class); |
|
|
IcUserDemandSatisfactionEntity satisfactionEntity=ConvertUtils.sourceToTarget(formDTO,IcUserDemandSatisfactionEntity.class); |
|
|
satisfactionEntity.setEvaluateTime(nowDate); |
|
|
satisfactionEntity.setEvaluateTime(nowDate); |
|
@ -452,7 +455,7 @@ public class IcUserDemandRecServiceImpl extends BaseServiceImpl<IcUserDemandRecD |
|
|
//2.3更新主表已评价标识,是否解决标识。
|
|
|
//2.3更新主表已评价标识,是否解决标识。
|
|
|
entity.setEvaluateFlag(true); |
|
|
entity.setEvaluateFlag(true); |
|
|
entity.setFinishResult(formDTO.getFinishResult()); |
|
|
entity.setFinishResult(formDTO.getFinishResult()); |
|
|
|
|
|
} |
|
|
//2.4如果需求是志愿者完成的,发送消息:您收到来自XXX的评价,请查看。
|
|
|
//2.4如果需求是志愿者完成的,发送消息:您收到来自XXX的评价,请查看。
|
|
|
sendVolunnterEvaluated(entity); |
|
|
sendVolunnterEvaluated(entity); |
|
|
|
|
|
|
|
@ -466,7 +469,7 @@ public class IcUserDemandRecServiceImpl extends BaseServiceImpl<IcUserDemandRecD |
|
|
} |
|
|
} |
|
|
String content = entity.getContent().length() > 100 ? entity.getContent().substring(0, 99) : entity.getContent(); |
|
|
String content = entity.getContent().length() > 100 ? entity.getContent().substring(0, 99) : entity.getContent(); |
|
|
finishResultDTO.setRemark(String.format(UserDemandConstant.GRANT_POINT_REMARK,entity.getDemandUserName(),content)); |
|
|
finishResultDTO.setRemark(String.format(UserDemandConstant.GRANT_POINT_REMARK,entity.getDemandUserName(),content)); |
|
|
finishResultDTO.setFinishResult(formDTO.getFinishResult()); |
|
|
finishResultDTO.setFinishResult(StringUtils.isNotBlank(formDTO.getFinishResult())?formDTO.getFinishResult():UserDemandConstant.UN_RESOLVED); |
|
|
} |
|
|
} |
|
|
baseDao.updateById(entity); |
|
|
baseDao.updateById(entity); |
|
|
|
|
|
|
|
|