|
@ -1311,12 +1311,13 @@ public class RehabilitationManageService {
|
|
public Map<String,Object> updateNodeAndRelationRecordImg(String node,String image,String planDeatilId,String relationCode)throws Exception{
|
|
public Map<String,Object> updateNodeAndRelationRecordImg(String node,String image,String planDeatilId,String relationCode)throws Exception{
|
|
Map<String,Object> resultMap = new HashedMap();
|
|
Map<String,Object> resultMap = new HashedMap();
|
|
try{
|
|
try{
|
|
int i =0;
|
|
|
|
|
|
RehabilitationDetailDO detailDO = rehabilitationDetailDao.findById(planDeatilId);
|
|
|
|
detailDO.setStatus(1);
|
|
|
|
detailDO.setUpdateTime(new Date());
|
|
if (StringUtils.isNoneBlank(relationCode)){
|
|
if (StringUtils.isNoneBlank(relationCode)){
|
|
i=rehabilitationDetailDao.updateStatusAndRelationCodeById(1,planDeatilId,relationCode);
|
|
|
|
}else {
|
|
|
|
i=rehabilitationDetailDao.updateStatusById(1,planDeatilId);
|
|
|
|
|
|
detailDO.setRelationCode(relationCode);
|
|
}
|
|
}
|
|
|
|
rehabilitationDetailDao.save(detailDO);
|
|
int j = rehabilitationOperateRecordsDao.updateNodeAndRelationRecordImg(node,image,planDeatilId);
|
|
int j = rehabilitationOperateRecordsDao.updateNodeAndRelationRecordImg(node,image,planDeatilId);
|
|
//如果整个计划的服务项都完成了,整个计划也完成了
|
|
//如果整个计划的服务项都完成了,整个计划也完成了
|
|
String allSql ="SELECT * FROM wlyy_rehabilitation_plan_detail where plan_id = (SELECT plan_id FROM `wlyy_rehabilitation_plan_detail` WHERE id='"+planDeatilId+"')";
|
|
String allSql ="SELECT * FROM wlyy_rehabilitation_plan_detail where plan_id = (SELECT plan_id FROM `wlyy_rehabilitation_plan_detail` WHERE id='"+planDeatilId+"')";
|