|
|
@@ -1,5 +1,6 @@
|
|
|
package thyyxxk.webserver.service.medicine;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
@@ -184,7 +185,10 @@ public class YpTempPurchaseService {
|
|
|
ypTempPurchase.setStorageId("");
|
|
|
ypTempPurchase.setStorageName("");
|
|
|
}
|
|
|
- num = dao.updateYpTempPurchaseFlagByApplyId(ypTempPurchase);
|
|
|
+ UpdateWrapper<YpTempPurchase> updateWrapper = new UpdateWrapper<>();
|
|
|
+ updateWrapper.eq("apply_id", ypTempPurchase.getApplyId());
|
|
|
+ num = dao.update(ypTempPurchase, updateWrapper);
|
|
|
+// num = dao.updateYpTempPurchaseFlagByApplyId(ypTempPurchase);
|
|
|
} else {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "未查到临购药品审核信息!");
|
|
|
}
|
|
|
@@ -194,6 +198,7 @@ public class YpTempPurchaseService {
|
|
|
resultMap.put("cg", "更新临购药品审核信息成功!");
|
|
|
return ResultVoUtil.success(resultMap);
|
|
|
} catch(Exception e){
|
|
|
+ log.info("更新临购药品审核信息失败: " + e.getMessage());
|
|
|
return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "更新临购药品审核信息失败!");
|
|
|
}
|
|
|
}
|