|
@ -436,23 +436,26 @@ 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())){ |
|
|
//2.1、插入评价得分记录
|
|
|
|
|
|
IcUserDemandSatisfactionEntity satisfactionEntity=ConvertUtils.sourceToTarget(formDTO,IcUserDemandSatisfactionEntity.class); |
|
|
|
|
|
satisfactionEntity.setEvaluateTime(nowDate); |
|
|
|
|
|
satisfactionEntity.setRemark(StringUtils.isNotBlank(formDTO.getFinishDesc())?formDTO.getFinishDesc():StrConstant.EPMETY_STR); |
|
|
|
|
|
demandSatisfactionDao.insert(satisfactionEntity); |
|
|
|
|
|
|
|
|
|
|
|
// 2.2插入评价操作日志
|
|
|
|
|
|
IcUserDemandOperateLogEntity evaluateEntity = ConvertUtils.sourceToTarget(formDTO,IcUserDemandOperateLogEntity.class); |
|
|
|
|
|
evaluateEntity.setActionCode(UserDemandConstant.EVALUATE); |
|
|
|
|
|
evaluateEntity.setOperateTime(nowDate); |
|
|
|
|
|
evaluateEntity.setId(null); |
|
|
|
|
|
operateLogDao.insert(evaluateEntity); |
|
|
|
|
|
|
|
|
|
|
|
//2.3更新主表已评价标识,是否解决标识。
|
|
|
|
|
|
entity.setEvaluateFlag(true); |
|
|
|
|
|
entity.setFinishResult(formDTO.getFinishResult()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(StringUtils.isNotBlank(formDTO.getFinishResult())){ |
|
|
|
|
|
// 评价
|
|
|
|
|
|
//2.1、插入评价得分记录
|
|
|
|
|
|
IcUserDemandSatisfactionEntity satisfactionEntity=ConvertUtils.sourceToTarget(formDTO,IcUserDemandSatisfactionEntity.class); |
|
|
|
|
|
satisfactionEntity.setEvaluateTime(nowDate); |
|
|
|
|
|
satisfactionEntity.setRemark(StringUtils.isNotBlank(formDTO.getFinishDesc())?formDTO.getFinishDesc():StrConstant.EPMETY_STR); |
|
|
|
|
|
demandSatisfactionDao.insert(satisfactionEntity); |
|
|
|
|
|
|
|
|
|
|
|
// 2.2插入评价操作日志
|
|
|
|
|
|
IcUserDemandOperateLogEntity evaluateEntity = ConvertUtils.sourceToTarget(formDTO,IcUserDemandOperateLogEntity.class); |
|
|
|
|
|
evaluateEntity.setActionCode(UserDemandConstant.EVALUATE); |
|
|
|
|
|
evaluateEntity.setOperateTime(nowDate); |
|
|
|
|
|
evaluateEntity.setId(null); |
|
|
|
|
|
operateLogDao.insert(evaluateEntity); |
|
|
|
|
|
|
|
|
|
|
|
//2.3更新主表已评价标识,是否解决标识。
|
|
|
|
|
|
entity.setEvaluateFlag(true); |
|
|
|
|
|
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); |
|
|
|
|
|
|
|
|