示例#1
0
 public String getPriceAppr() {
   Integer id = null;
   String type = null;
   if (servicePrice != null && servicePrice.getPriceId() != null) {
     id = servicePrice.getPriceId();
     type = RequestApproveType.ServicePrice.name();
   }
   if (subStepPrice != null && subStepPrice.getPriceId() != null) {
     id = subStepPrice.getPriceId();
     type = RequestApproveType.SubServicePrice.name();
   }
   if (id == null) {
     return "false";
   }
   Boolean approv =
       servService.checkPropertyApproved(id, type, RequestApproveType.ServicePrice.name());
   if (approv == false) {
     approv =
         servService.checkPropertyApproved(
             id,
             RequestApproveType.ServicePriceGroup.name(),
             RequestApproveType.ServicePrice.name());
   }
   return approv.toString();
 }