|
@@ -13,6 +13,7 @@ import com.lantone.daqe.vo.AddOperationVO;
|
|
import com.lantone.daqe.vo.DelOperationByIdVO;
|
|
import com.lantone.daqe.vo.DelOperationByIdVO;
|
|
import com.lantone.daqe.vo.GetOperationPageVO;
|
|
import com.lantone.daqe.vo.GetOperationPageVO;
|
|
import com.lantone.daqe.vo.MatchingOperationVO;
|
|
import com.lantone.daqe.vo.MatchingOperationVO;
|
|
|
|
+import com.lantone.daqe.vo.UpOperationByIdVO;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
@@ -72,6 +73,21 @@ public class OperationManagementFacade {
|
|
return operationInfoFacade.save(operationInfo);
|
|
return operationInfoFacade.save(operationInfo);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 通过id修改手术
|
|
|
|
+ *
|
|
|
|
+ * @param upOperationByIdVO
|
|
|
|
+ * @return 是否修改成功
|
|
|
|
+ */
|
|
|
|
+ public Boolean upOperationById(UpOperationByIdVO upOperationByIdVO) {
|
|
|
|
+ if (operationInfoFacade.getById(upOperationByIdVO.getId()) == null) {
|
|
|
|
+ Asserts.fail("该药品不存在!");
|
|
|
|
+ }
|
|
|
|
+ OperationInfo operationInfo = new OperationInfo();
|
|
|
|
+ BeanUtil.copyProperties(upOperationByIdVO, operationInfo);
|
|
|
|
+ return operationInfoFacade.updateById(operationInfo);
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 通过id删除手术
|
|
* 通过id删除手术
|
|
*
|
|
*
|
|
@@ -86,14 +102,14 @@ public class OperationManagementFacade {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- *匹配手术信息
|
|
|
|
|
|
+ * 匹配手术信息
|
|
*
|
|
*
|
|
* @param matchingOperationVO
|
|
* @param matchingOperationVO
|
|
* @Return java.lang.Boolean
|
|
* @Return java.lang.Boolean
|
|
*/
|
|
*/
|
|
public Boolean matchingOperation(MatchingOperationVO matchingOperationVO) {
|
|
public Boolean matchingOperation(MatchingOperationVO matchingOperationVO) {
|
|
OperationInfo operationInfo = new OperationInfo();
|
|
OperationInfo operationInfo = new OperationInfo();
|
|
- BeanUtils.copyProperties(matchingOperationVO,operationInfo);
|
|
|
|
|
|
+ BeanUtils.copyProperties(matchingOperationVO, operationInfo);
|
|
return operationInfoFacade.updateById(operationInfo);
|
|
return operationInfoFacade.updateById(operationInfo);
|
|
}
|
|
}
|
|
}
|
|
}
|